Skip to content

Document ID is not supported when adding embeddings to AWS OpenSearch #3818

@Sephlux

Description

@Sephlux

Spring AI Version: 1.0.0
Problem: When attempting to store embeddings in AWS OpenSearch(serverless), the following error occurs:

Document ID is not supported in create/index operation request

The AWS doc states the following (AWS doc):

For time series and vector search collections, you can't index by custom document ID or update by upsert requests. This operation is reserved for search use cases.

Solution: The OpenSearchVectorStore implementation should be modified to not set explicit Document IDs when adding documents. The code to update is located at org.springframework.ai.vectorstore.opensearch.OpenSearchVectorStore::doAdd(List<Document> documents)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions