+As of today, the construct manages only one OpenSearch index. The index name is configured through the construct property [openSearchIndexName](https://github.com/awslabs/generative-ai-cdk-constructs/blob/main/src/patterns/gen-ai/aws-rag-appsync-stepfn-opensearch/index.ts#L742C27-L742C51). If the index doesn't exist, the construct will create it when ingesting a document. This means that the value of the field [knn_vector](https://opensearch.org/docs/latest/field-types/supported-field-types/knn-vector/) in the OpenSearch index will be set to the value of the length of the embedding vector for the embedding model selected. For instance, the model [Amazon Titan Embeddings Text model V2](https://docs.aws.amazon.com/bedrock/latest/userguide/titan-embedding-models.html) outputs a vector of size 1024 dimensions. Thus, if using this model, the OpenSearch vector index knn_vector field value will be set to 1024.
0 commit comments