Open
Description
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)