langchain/tests/integration_tests/vectorstores
Naveen Tatikonda 0118706fd6
Add Support for OpenSearch Vector database (#1191)
### Description
This PR adds a wrapper which adds support for the OpenSearch vector
database. Using opensearch-py client we are ingesting the embeddings of
given text into opensearch cluster using Bulk API. We can perform the
`similarity_search` on the index using the 3 popular searching methods
of OpenSearch k-NN plugin:

- `Approximate k-NN Search` use approximate nearest neighbor (ANN)
algorithms from the [nmslib](https://github.com/nmslib/nmslib),
[faiss](https://github.com/facebookresearch/faiss), and
[Lucene](https://lucene.apache.org/) libraries to power k-NN search.
- `Script Scoring` extends OpenSearch’s script scoring functionality to
execute a brute force, exact k-NN search.
- `Painless Scripting` adds the distance functions as painless
extensions that can be used in more complex combinations. Also, supports
brute force, exact k-NN search like Script Scoring.

### Issues Resolved 
https://github.com/hwchase17/langchain/issues/1054

---------

Signed-off-by: Naveen Tatikonda <navtat@amazon.com>
2023-02-20 18:39:34 -08:00
..
__init__.py add few shot example (#148) 2022-11-19 20:32:45 -08:00
fake_embeddings.py [Integration Tests] Cast fake embeddings to ALL float values (#1102) 2023-02-17 15:18:09 -08:00
test_chroma.py Chroma persistence (#1028) 2023-02-13 21:09:06 -08:00
test_elasticsearch.py Harrison/milvus (#856) 2023-02-02 22:05:47 -08:00
test_faiss.py Allow k to be higher than doc size in max_marginal_relevance_search (#1187) 2023-02-20 16:39:13 -08:00
test_milvus.py Harrison/milvus (#856) 2023-02-02 22:05:47 -08:00
test_opensearch.py Add Support for OpenSearch Vector database (#1191) 2023-02-20 18:39:34 -08:00
test_pinecone.py Add pinecone integration test (#911) 2023-02-06 18:13:35 -08:00
test_qdrant.py Harrison/milvus (#856) 2023-02-02 22:05:47 -08:00