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

Invalid request for vector_store.add_documents #216

Open
varsha1288 opened this issue Mar 25, 2024 · 2 comments
Open

Invalid request for vector_store.add_documents #216

varsha1288 opened this issue Mar 25, 2024 · 2 comments

Comments

@varsha1288
Copy link

HttpResponseError: () The request is invalid. Details: The property 'content' does not exist on type 'search.documentFields'. Make sure to only use property names that are defined by the type.
Code:
Message: The request is invalid. Details: The property 'content' does not exist on type 'search.documentFields'. Make sure to only use property names that are defined by the type.

vector_store.add_documents - this method runs into issues.

@mattgotteiner
Copy link
Member

Thanks for the bug report - I'll try to fix this issue

@mattgotteiner
Copy link
Member

I could not reproduce the issue. here's some things to check:

  1. did your index already exist? try deleting it and recreating it using the sample code
  2. langchain allows overriding what the content field is called

https://github.com/langchain-ai/langchain/blob/ebd24bb5d64078d7567eca4da0297260eb33dc31/libs/community/langchain_community/vectorstores/azuresearch.py#L48-L51

I recommend double checking that these environment variables are not accidentally set

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