mirror of
https://github.com/hwchase17/langchain
synced 2024-11-13 19:10:52 +00:00
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:
parent
baef7639fd
commit
90031b1b3e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user