> **Experimental**
>
> `@aws-cdk/aws-bedrock-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# OpenSearchServerlessVectorStoreProps

Properties for an Amazon OpenSearch Serverless vector store.

The collection and its vector index must already exist. Amazon Bedrock
validates at creation time that the index exists in the collection and
that its vector field matches the embeddings model. Specify the field
names exactly as they are defined in the index.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`bedrock/knowledge-bases/vector-store.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0-alpha.0/packages/@aws-cdk/aws-bedrock-alpha/bedrock/knowledge-bases/vector-store.ts#L15)
- Type last changed: v2.274.0-alpha.0 · 21 Oct 2026

## Example

```ts
declare const collection: opensearchserverless.ICollectionRef;

const knowledgeBase = new bedrock.KnowledgeBase(this, 'KnowledgeBase', {
  type: bedrock.KnowledgeBaseType.vector({
    embeddingsModel: bedrock.BedrockFoundationModel.TITAN_EMBED_TEXT_V2_1024,
    vectorStore: bedrock.VectorStore.openSearchServerless({
      collection,
      vectorIndexName: 'bedrock-knowledge-base-default-index',
      vectorField: 'bedrock-knowledge-base-default-vector',
      textField: 'AMAZON_BEDROCK_TEXT_CHUNK',
      metadataField: 'AMAZON_BEDROCK_METADATA',
    }),
  }),
});
```

## Properties

- `collection`: [ICollectionRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_opensearchserverless.ICollectionRef.html) (required) — The OpenSearch Serverless collection that contains the vector index.

- `metadataField`: string (required) — The name of the index field that stores the metadata of each chunk.

- `textField`: string (required) — The name of the index field that stores the raw text of each chunk.

- `vectorField`: string (required) — The name of the index field that stores the vector embeddings.

- `vectorIndexName`: string (required) — The name of the vector index in the collection.
