Skip to content

LangChain throws an exception when using with AzureCosmosNoSQLDB #25469

Answered by dosubot bot
balachander1964 asked this question in Q&A
Discussion options

You must be logged in to vote

To resolve the "CosmosHttpResponseError: (BadRequest) One of the input values is invalid" exception when using the LangChain Python package with Azure Cosmos NoSQL Vector Database for Question Answering, ensure that the following conditions are met:

  1. Indexing Policy: The indexing_policy must have a non-null and non-empty vectorIndexes field.
  2. Vector Embedding Policy: The vector_embedding_policy must have a non-null and non-empty vectorEmbeddings field.
  3. Container Properties: The cosmos_container_properties must have a non-null partition_key.
  4. Vector Search Configuration: Ensure that the vector_search configuration is properly set up with the necessary algorithms and profiles.

Here is the r…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cow-engineer
Comment options

Answer selected by balachander1964
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants