mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-04 04:28:58 +00:00
We found the [table of langchain milvus feature](https://python.langchain.com/docs/integrations/vectorstores/) is not consistent with the currently implemented code. So we change it with a PR. - searchByVector: code is [here](e29ff1bff5/libs/milvus/langchain_milvus/vectorstores/milvus.py (L1543)
) - passesStandardTests: All methods will be tested(including unittest and integration test) , see an example [here]( https://github.com/langchain-ai/langchain-milvus/actions/runs/15347213828/job/43186093988) , the test code it [here](https://github.com/langchain-ai/langchain-milvus/tree/main/libs/milvus/tests) and the github workflow is defined [here](https://github.com/langchain-ai/langchain-milvus/blob/main/.github/workflows/_test.yml) - multiTenancy: milvus supports different kinds of [multi tenancy](https://milvus.io/docs/multi_tenancy.md#Implement-Multi-tenancy), they also implemented by langchain_milvus - database level: specify the database name in [connection_args](e29ff1bff5/libs/milvus/langchain_milvus/vectorstores/milvus.py (L374)
) - collection level: specify the collection in [collection_name param](e29ff1bff5/libs/milvus/langchain_milvus/vectorstores/milvus.py (L337)
) - partition level: specify the [partition-related params ](e29ff1bff5/libs/milvus/langchain_milvus/vectorstores/milvus.py (L280)
) - idsInAddDocuments: [add document method](e29ff1bff5/libs/milvus/langchain_milvus/vectorstores/milvus.py (L2030)
) supports ids param passed in( then passed to add_texts method [here](e29ff1bff5/libs/milvus/langchain_milvus/vectorstores/milvus.py (L1102)
)) @ccurme please take a review, thanks. Signed-off-by: ChengZi <chen.zhang@zilliz.com>