Skip to content

Support for Azure Cosmos DB as a vector store #1580

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

Conversation

TheovanKraay
Copy link
Contributor

Thank you for taking time to contribute this pull request!
You might have already read the [contributor guide][1], but as a reminder, please make sure to:

  • Sign the contributor license agreement
  • Rebase your changes on the latest main branch and squash your commits
  • Add/Update unit tests as needed
  • Run a build and make sure all tests pass prior to submission

@sobychacko
Copy link
Contributor

When running the tests in the PR, I get an error as below. I have a very basic cosmosdb environment setup.

 {\\\"Errors\\\":[\\\"A Container Vector Policy has been provided, but the capability has not been enabled on your account.

Could you tell me exactly what I need to run the tests? Thanks!

@TheovanKraay
Copy link
Contributor Author

TheovanKraay commented Oct 22, 2024

When running the tests in the PR, I get an error as below. I have a very basic cosmosdb environment setup.

 {\\\"Errors\\\":[\\\"A Container Vector Policy has been provided, but the capability has not been enabled on your account.

Could you tell me exactly what I need to run the tests? Thanks!

Sure, go to “features” tab under “settings” in Azure portal and there is “Vector Search for NoSQL API”. You can enable it there. After that the tests should pass 😊

@sobychacko sobychacko self-assigned this Oct 22, 2024
@sobychacko sobychacko added this to the 1.0.0-M4 milestone Oct 22, 2024
@sobychacko
Copy link
Contributor

@TheovanKraay Thank you for the PR. It looks good. I ran the tests, polished the code, and merged the changes upstream. We also needed to add the spring-ai-azure-cosmos-db-store module to the main pom.xml.

@sobychacko sobychacko closed this Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants