-
Notifications
You must be signed in to change notification settings - Fork 842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opensearch vector store bugs #1589
Comments
I had exactly the same issue. I fixed it by disabling the json indentation in Jackson ObjectMapper. |
I tried this but it didnt work - spring: Could you give an example? |
@garc33 @tstephen1 does the updated docs helps your resolve the issue? |
@tzolov @garc33 - the updated docs change, adding documents to aws openseach works fine. But similarity search still causes error: org.opensearch.client.opensearch._types.OpenSearchException: Request failed: [search_phase_execution_exception] all shards failed Updating the object mapper with indent output to false as suggested above : generates this error when using ollama embedding model: 2024-10-25T14:27:04.111+01:00 DEBUG 11139 --- h.i.i.PoolingHttpClientConnectionManager : ep-0000000001 connection released [route: {}->http://localhost:11434][total available: 1; route allocated: 1 of 5; total allocated: 1 of 25] |
- Fix the embedding dimension configuration for opensearch client indices mapping - The dimension config is obtained by the underlying embedding model's dimension
- Fix the embedding dimension configuration for opensearch client indices mapping - The dimension config is obtained by the underlying embedding model's dimension Resolves spring-projects#1589
Following the walkthrough in spring ai documenation for opensearch vector store on aws, the following properties are incorrectly located:
spring.opensearch.aws.host
spring.opensearch.aws.service-name
spring.opensearch.aws.access-key
spring.opensearch.aws.secret-key
spring.opensearch.aws.region
these only work if located on
spring.ai.vectorstore.opensearch.*
else causes error:
Caused by: java.lang.NullPointerException: Access key ID cannot be blank.
Also similarity search for index with the following json mapping gives:
Similarity search results with error:
org.opensearch.client.opensearch._types.OpenSearchException: Request failed: [search_phase_execution_exception] all shards failed
for mapping json:
mappingJson: |
"properties": {
"embedding": {
"type": "knn_vector",
"dimension": 1536
}
}
The text was updated successfully, but these errors were encountered: