support epsilla cloud vector database in langchain (#26065)

Description

- support epsilla cloud in langchain

---------

Co-authored-by: Leonid Ganeline <leo.gan.57@gmail.com>
Co-authored-by: Chester Curme <chester.curme@gmail.com>
This commit is contained in:
Eric 2024-09-21 01:14:23 +08:00 committed by GitHub
parent baef7639fd
commit 90031b1b3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -65,10 +65,12 @@ class Epsilla(VectorStore):
"Please install pyepsilla package with `pip install pyepsilla`."
) from e
if not isinstance(client, pyepsilla.vectordb.Client):
if not isinstance(
client, (pyepsilla.vectordb.Client, pyepsilla.cloud.client.Vectordb)
):
raise TypeError(
f"client should be an instance of pyepsilla.vectordb.Client, "
f"got {type(client)}"
"client should be an instance of pyepsilla.vectordb.Client or "
f"pyepsilla.cloud.client.Vectordb, got {type(client)}"
)
self._client: vectordb.Client = client