mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-07 21:50:25 +00:00
Improvement: Weaviate multitenant adddocs (#13827)
<!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** Added a line to pass the tenant parameter to add_data_object - **Issue:** An extra line added from the fix for #9956 - **Dependencies:** n/a - **Tag maintainer:** @baskaryan Tested locally, works as expected with the line change. --------- Co-authored-by: Simon Dai <simon6752@gmail.com>
This commit is contained in:
parent
3e30cd8261
commit
cd77fba562
@ -164,6 +164,7 @@ class Weaviate(VectorStore):
|
||||
class_name=self._index_name,
|
||||
uuid=_id,
|
||||
vector=embeddings[i] if embeddings else None,
|
||||
tenant=kwargs.get("tenant"),
|
||||
)
|
||||
ids.append(_id)
|
||||
return ids
|
||||
|
Loading…
Reference in New Issue
Block a user