Skip to content
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

Open
tstephen1 opened this issue Oct 23, 2024 · 2 comments
Open

Opensearch vector store bugs #1589

tstephen1 opened this issue Oct 23, 2024 · 2 comments

Comments

@tstephen1
Copy link

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
}
}

@garc33
Copy link

garc33 commented Oct 23, 2024

I had exactly the same issue. I fixed it by disabling the json indentation in Jackson ObjectMapper.

@tstephen1
Copy link
Author

tstephen1 commented Oct 24, 2024

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:
jackson:
serialization:
indent_output: false

Could you give an example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants