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

langchain_community: updated query constructor for Databricks Vector Search due to LangChainDeprecationWarning: filters was deprecated since langchain-community 0.2.11 and will be removed in 0.3. Please use filter instead. #27974

Merged
merged 5 commits into from
Dec 4, 2024

Conversation

willsmithDB
Copy link
Contributor

  • Description: Updated the kwargs for the structured query from filters to filter due to deprecation of 'filters' for Databricks Vector Search. Also changed the error messages as the allowed operators and comparators are different which can cause issues with functions such as get_query_constructor_prompt()

  • Issue: Fixes the Key Error for filters due to deprecation in favor for 'filter':

LangChainDeprecationWarning: DatabricksVectorSearch received a key filters in search_kwargs. filters was deprecated since langchain-community 0.2.11 and will be removed in 0.3. Please use filter instead.

  • Dependencies: N/A
  • Twitter handle: N/A

…e to deprecation of 'filters' for Databricks Vector Search.

Also changed the error messages as the allowed operators and comparators are different which can cause issues with functions such as get_query_constructor_prompt()
…e to deprecation of 'filters' for Databricks Vector Search.
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Nov 7, 2024
Copy link

vercel bot commented Nov 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchain 🛑 Canceled (Inspect) Dec 4, 2024 0:18am

@dosubot dosubot bot added community Related to langchain-community Ɑ: vector store Related to vector store module labels Nov 7, 2024
@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Nov 20, 2024
@efriis efriis self-assigned this Nov 20, 2024
@efriis efriis enabled auto-merge (squash) November 20, 2024 19:09
@efriis efriis disabled auto-merge December 4, 2024 00:03
@efriis efriis merged commit 15e7353 into langchain-ai:master Dec 4, 2024
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Related to langchain-community lgtm PR looks good. Use to confirm that a PR is ready for merging. size:XS This PR changes 0-9 lines, ignoring generated files. Ɑ: vector store Related to vector store module
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants