Fix/qdrant support (#1253)

* Disable check same thread by default to enable disk-based Qdrant local client to work
This commit is contained in:
Iván Martínez
2023-11-16 13:29:17 +01:00
committed by GitHub
parent 23fa530c31
commit 2a417d2f61
5 changed files with 16 additions and 8 deletions

View File

@@ -153,6 +153,13 @@ class QdrantSettings(BaseModel):
description="Host name of Qdrant service. If url and host are None, set to 'localhost'.",
)
path: str | None = Field(None, description="Persistence path for QdrantLocal.")
force_disable_check_same_thread: bool | None = Field(
True,
description=(
"For QdrantLocal, force disable check_same_thread. Default: `True`"
"Only use this if you can guarantee that you can resolve the thread safety outside QdrantClient."
),
)
class Settings(BaseModel):