forked from Archives/langchain
ab44c24333
Hello Folks, Thanks for creating and maintaining this great project. I'm excited to submit this PR to add Alibaba Cloud OpenSearch as a new vector store. OpenSearch is a one-stop platform to develop intelligent search services. OpenSearch was built based on the large-scale distributed search engine developed by Alibaba. OpenSearch serves more than 500 business cases in Alibaba Group and thousands of Alibaba Cloud customers. OpenSearch helps develop search services in different search scenarios, including e-commerce, O2O, multimedia, the content industry, communities and forums, and big data query in enterprises. OpenSearch provides the vector search feature. In specific scenarios, especially test question search and image search scenarios, you can use the vector search feature together with the multimodal search feature to improve the accuracy of search results. This PR includes: A AlibabaCloudOpenSearch class that can connect to the Alibaba Cloud OpenSearch instance. add embedings and metadata into a opensearch datasource. querying by squared euclidean and metadata. integration tests. ipython notebook and docs. I have read your contributing guidelines. And I have passed the tests below - [x] make format - [x] make lint - [x] make coverage - [x] make test --------- Co-authored-by: zhaoshengbo <shengbo.zsb@alibaba-inc.com>
76 lines
2.6 KiB
Python
76 lines
2.6 KiB
Python
"""Wrappers on top of vector stores."""
|
|
from langchain.vectorstores.alibabacloud_opensearch import (
|
|
AlibabaCloudOpenSearch,
|
|
AlibabaCloudOpenSearchSettings,
|
|
)
|
|
from langchain.vectorstores.analyticdb import AnalyticDB
|
|
from langchain.vectorstores.annoy import Annoy
|
|
from langchain.vectorstores.atlas import AtlasDB
|
|
from langchain.vectorstores.awadb import AwaDB
|
|
from langchain.vectorstores.azuresearch import AzureSearch
|
|
from langchain.vectorstores.base import VectorStore
|
|
from langchain.vectorstores.chroma import Chroma
|
|
from langchain.vectorstores.clickhouse import Clickhouse, ClickhouseSettings
|
|
from langchain.vectorstores.deeplake import DeepLake
|
|
from langchain.vectorstores.docarray import DocArrayHnswSearch, DocArrayInMemorySearch
|
|
from langchain.vectorstores.elastic_vector_search import ElasticVectorSearch
|
|
from langchain.vectorstores.faiss import FAISS
|
|
from langchain.vectorstores.hologres import Hologres
|
|
from langchain.vectorstores.lancedb import LanceDB
|
|
from langchain.vectorstores.matching_engine import MatchingEngine
|
|
from langchain.vectorstores.milvus import Milvus
|
|
from langchain.vectorstores.mongodb_atlas import MongoDBAtlasVectorSearch
|
|
from langchain.vectorstores.myscale import MyScale, MyScaleSettings
|
|
from langchain.vectorstores.opensearch_vector_search import OpenSearchVectorSearch
|
|
from langchain.vectorstores.pinecone import Pinecone
|
|
from langchain.vectorstores.qdrant import Qdrant
|
|
from langchain.vectorstores.redis import Redis
|
|
from langchain.vectorstores.singlestoredb import SingleStoreDB
|
|
from langchain.vectorstores.sklearn import SKLearnVectorStore
|
|
from langchain.vectorstores.supabase import SupabaseVectorStore
|
|
from langchain.vectorstores.tair import Tair
|
|
from langchain.vectorstores.tigris import Tigris
|
|
from langchain.vectorstores.typesense import Typesense
|
|
from langchain.vectorstores.vectara import Vectara
|
|
from langchain.vectorstores.weaviate import Weaviate
|
|
from langchain.vectorstores.zilliz import Zilliz
|
|
|
|
__all__ = [
|
|
"AlibabaCloudOpenSearch",
|
|
"AlibabaCloudOpenSearchSettings",
|
|
"AnalyticDB",
|
|
"Annoy",
|
|
"AtlasDB",
|
|
"AwaDB",
|
|
"AzureSearch",
|
|
"Chroma",
|
|
"Clickhouse",
|
|
"ClickhouseSettings",
|
|
"DeepLake",
|
|
"DocArrayHnswSearch",
|
|
"DocArrayInMemorySearch",
|
|
"ElasticVectorSearch",
|
|
"FAISS",
|
|
"Hologres",
|
|
"LanceDB",
|
|
"MatchingEngine",
|
|
"Milvus",
|
|
"MongoDBAtlasVectorSearch",
|
|
"MyScale",
|
|
"MyScaleSettings",
|
|
"OpenSearchVectorSearch",
|
|
"Pinecone",
|
|
"Qdrant",
|
|
"Redis",
|
|
"SKLearnVectorStore",
|
|
"SingleStoreDB",
|
|
"SupabaseVectorStore",
|
|
"Tair",
|
|
"Tigris",
|
|
"Typesense",
|
|
"Vectara",
|
|
"VectorStore",
|
|
"Weaviate",
|
|
"Zilliz",
|
|
]
|