langchain/libs/community/langchain_community/query_constructors
André Quintino a26c786bc5
community: refactor opensearch query constructor to use wildcard instead of match in the contain comparator (#26653)
- **Description:** Changed the comparator to use a wildcard query
instead of match. This modification allows for partial text matching on
analyzed fields, which improves the flexibility of the search by
performing full-text searches that aren't limited to exact matches.
- **Issue:** The previous implementation used a match query, which
performs exact matches on analyzed fields. This approach limited the
search capabilities by requiring the query terms to align with the
indexed text. The modification to use a wildcard query instead addresses
this limitation. The wildcard query allows for partial text matching,
which means the search can return results even if only a portion of the
term matches the text. This makes the search more flexible and suitable
for use cases where exact matches aren't necessary or expected, enabling
broader full-text searches across analyzed fields.
In short, the problem was that match queries were too restrictive, and
the change to wildcard queries enhances the ability to perform partial
matches.
- **Dependencies:** none
- **Twitter handle:** @Andre_Q_Pereira

---------

Co-authored-by: André Quintino <andre.quintino@tui.com>
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com>
Co-authored-by: Chester Curme <chester.curme@gmail.com>
2024-12-16 11:16:34 -05:00
..
__init__.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
astradb.py infra: update mypy 1.10, ruff 0.5 (#23721) 2024-07-03 10:33:27 -07:00
chroma.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
dashvector.py infra: update mypy 1.10, ruff 0.5 (#23721) 2024-07-03 10:33:27 -07:00
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
deeplake.py infra: update mypy 1.10, ruff 0.5 (#23721) 2024-07-03 10:33:27 -07:00
dingo.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
elasticsearch.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
hanavector.py community[minor]: Self query retriever for HANA Cloud Vector Engine (#24494) 2024-07-26 06:56:51 +00:00
milvus.py infra: update mypy 1.10, ruff 0.5 (#23721) 2024-07-03 10:33:27 -07:00
mongodb_atlas.py infra: update mypy 1.10, ruff 0.5 (#23721) 2024-07-03 10:33:27 -07:00
myscale.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
neo4j.py community[patch]: Neo4j community deprecation (#28130) 2024-11-25 10:34:22 -08:00
opensearch.py community: refactor opensearch query constructor to use wildcard instead of match in the contain comparator (#26653) 2024-12-16 11:16:34 -05:00
pgvector.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
pinecone.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
qdrant.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
redis.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
supabase.py community[patch]: Add missing annotations (#24890) 2024-07-31 18:13:44 +00:00
tencentvectordb.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
timescalevector.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
vectara.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
weaviate.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00