langchain/docs/modules/indexes/vectorstores/examples
Jeff Vestal d1f65d8dc1
Es knn index search 5346 (#5569)
# Create elastic_vector_search.ElasticKnnSearch class

This extends `langchain/vectorstores/elastic_vector_search.py` by adding
a new class `ElasticKnnSearch`

Features:
- Allow creating an index with the `dense_vector` mapping compataible
with kNN search
- Store embeddings in index for use with kNN search (correct mapping
creates HNSW data structure)
- Perform approximate kNN search
- Perform hybrid BM25 (`query{}`) + kNN (`knn{}`) search
- perform knn search by either providing a `query_vector` or passing a
hosted `model_id` to use query_vector_builder to automatically generate
a query_vector at search time

Connection options
- Using `cloud_id` from Elastic Cloud
- Passing elasticsearch client object

search options
- query
- k
- query_vector
- model_id
- size
- source
- knn_boost (hybrid search)
- query_boost (hybrid search)
- fields


This also adds examples to
`docs/modules/indexes/vectorstores/examples/elasticsearch.ipynb`


Fixes # [5346](https://github.com/hwchase17/langchain/issues/5346)

cc: @dev2049

 -->

---------

Co-authored-by: Dev 2049 <dev.dev2049@gmail.com>
2023-06-02 08:40:35 -07:00
..
analyticdb.ipynb docs: improved vectorstore notebooks (#3724) 2023-04-28 19:26:50 -07:00
annoy.ipynb docs: vectorstores, different updates and fixes (#4939) 2023-05-18 15:35:47 -07:00
atlas.ipynb docs: vectorstores, different updates and fixes (#4939) 2023-05-18 15:35:47 -07:00
chroma.ipynb Fix update_document function, add test and documentation. (#5359) 2023-05-29 06:39:25 -07:00
deeplake.ipynb docs: vectorstores, different updates and fixes (#4939) 2023-05-18 15:35:47 -07:00
docarray_hnsw.ipynb docs: vectorstores, different updates and fixes (#4939) 2023-05-18 15:35:47 -07:00
docarray_in_memory.ipynb docs: vectorstores, different updates and fixes (#4939) 2023-05-18 15:35:47 -07:00
elasticsearch.ipynb Es knn index search 5346 (#5569) 2023-06-02 08:40:35 -07:00
faiss.ipynb Faiss no avx2 (#4895) 2023-05-17 19:18:57 -07:00
lancedb.ipynb Rename and fix typo in lancedb (#5425) 2023-05-30 00:24:17 -07:00
matchingengine.ipynb Add matching engine vectorstore (#3350) 2023-05-31 02:28:02 -07:00
milvus.ipynb Update the milvus example (#4706) 2023-05-15 16:16:57 -07:00
mongodb_atlas_vector_search.ipynb adding MongoDBAtlasVectorSearch (#5338) 2023-05-30 07:59:01 -07:00
myscale.ipynb docs: improved vectorstore notebooks (#3724) 2023-04-28 19:26:50 -07:00
opensearch.ipynb OpenSearch top k parameter fix (#5216) 2023-05-25 09:51:23 -07:00
pgvector.ipynb added documentation on retrieving a PG vectorstore (#4578) 2023-05-12 13:04:06 -04:00
pinecone.ipynb docs retriever improvements (#4430) 2023-05-17 15:29:22 -07:00
qdrant.ipynb Qdrant self query (#5567) 2023-06-01 08:40:31 -07:00
redis.ipynb docs: vectorstores, different updates and fixes (#4939) 2023-05-18 15:35:47 -07:00
sklearn.ipynb Add SKLearnVectorStore (#5305) 2023-05-28 08:17:42 -07:00
supabase.ipynb docs supabase update (#4935) 2023-05-18 10:42:08 -07:00
tair.ipynb docs: vectorstores, different updates and fixes (#4939) 2023-05-18 15:35:47 -07:00
typesense.ipynb Add Typesense vector store (#1674) 2023-05-23 23:20:45 -07:00
vectara.ipynb Vectara (#5069) 2023-05-24 01:24:58 -07:00
weaviate.ipynb Weaviate: Add QnA with sources example (#5247) 2023-05-25 09:58:33 -04:00
zilliz.ipynb Update the milvus example (#4706) 2023-05-15 16:16:57 -07:00