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. #27973

Closed
wants to merge 2 commits into from

Conversation

willsmithDB
Copy link
Contributor

Thank you for contributing to LangChain!

- **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:** No twitter handle, only github! 

…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()
@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 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 7, 2024 11:46pm

@dosubot dosubot bot added community Related to langchain-community Ɑ: vector store Related to vector store module labels Nov 7, 2024
@willsmithDB willsmithDB changed the title langchain_community: updated query constructor for Databricks Vector Search due to deprecation of 'filters' for filter. Updated the error handling as well to output acceptable operators. 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. Nov 7, 2024
…e to deprecation of 'filters' for Databricks Vector Search.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Related to langchain-community 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.

1 participant