langchain/libs/community/tests/unit_tests/query_constructors
William Smith 15e7353168
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)
- **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

---------

Co-authored-by: Erick Friis <erick@langchain.dev>
2024-12-03 16:03:53 -08:00
..
__init__.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
test_astradb.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
test_chroma.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
test_dashvector.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
test_databricks_vector_search.py 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) 2024-12-03 16:03:53 -08:00
test_deeplake.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
test_dingo.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
test_elasticsearch.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
test_hanavector.py community[minor]: Self query retriever for HANA Cloud Vector Engine (#24494) 2024-07-26 06:56:51 +00:00
test_milvus.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
test_mongodb_atlas.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
test_myscale.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
test_neo4j.py add neo4j query constructor for self query (#25288) 2024-08-30 14:54:33 +00:00
test_opensearch.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
test_pgvector.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
test_pinecone.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
test_redis.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
test_supabase.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
test_tencentvectordb.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
test_timescalevector.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
test_vectara.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
test_weaviate.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00