Skip to content

Valid Azure Index structure for vector_store #25208

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

You must be logged in to vote

Hey, @aayushrajj! 👋 I'm here to help you with your bug, answer your questions, and maybe even inspire you to become a contributor!

Yes, there are defined field names and structures accepted by vector_store in LangChain while using Azure AI Index. The fields are:

  • FIELDS_ID: Default is "id"
  • FIELDS_CONTENT: Default is "content"
  • FIELDS_CONTENT_VECTOR: Default is "content_vector"
  • FIELDS_METADATA: Default is "metadata"

These fields can be overridden using environment variables AZURESEARCH_FIELDS_ID, AZURESEARCH_FIELDS_CONTENT, AZURESEARCH_FIELDS_CONTENT_VECTOR, and AZURESEARCH_FIELDS_TAG respectively.

Here is the relevant code snippet:

# Allow overriding field names for Azure Search
FIELDS_ID =

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@dosubot
Comment options

@aayushrajj
Comment options

@dosubot
Comment options

@aayushrajj
Comment options

@dosubot
Comment options

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