mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-18 18:53:10 +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`."
|
"Please install pyepsilla package with `pip install pyepsilla`."
|
||||||
) from e
|
) from e
|
||||||
|
|
||||||
if not isinstance(client, pyepsilla.vectordb.Client):
|
if not isinstance(
|
||||||
|
client, (pyepsilla.vectordb.Client, pyepsilla.cloud.client.Vectordb)
|
||||||
|
):
|
||||||
raise TypeError(
|
raise TypeError(
|
||||||
f"client should be an instance of pyepsilla.vectordb.Client, "
|
"client should be an instance of pyepsilla.vectordb.Client or "
|
||||||
f"got {type(client)}"
|
f"pyepsilla.cloud.client.Vectordb, got {type(client)}"
|
||||||
)
|
)
|
||||||
|
|
||||||
self._client: vectordb.Client = client
|
self._client: vectordb.Client = client
|
||||||
|
Loading…
Reference in New Issue
Block a user