mirror of
https://github.com/langchain-ai/langchain-milvus.git
synced 2026-07-01 19:54:58 -04:00
[PR #48] [MERGED] feat: add search by metadata function and test #66
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langchain-ai/langchain-milvus/pull/48
Author: @sunwupark
Created: 3/13/2025
Status: ✅ Merged
Merged: 3/31/2025
Merged by: @zc277584121
Base:
main← Head:main📝 Commits (2)
aed2ea2feat: add search by metadata function and test32ae92dfeat: applied linting📊 Changes
2 files changed (+83 additions, -0 deletions)
View changed files
📝
libs/milvus/langchain_milvus/vectorstores/milvus.py(+38 -0)📝
libs/milvus/tests/integration_tests/vectorstores/test_milvus.py(+45 -0)📄 Description
I have implemented a new method, search_by_metadata, for the Milvus vector store. This method allows users to query documents based on metadata conditions without performing a vector similarity search.
Issue
#47
Key Features:
Code Implementation:
Testing:
I have also written a test function to verify the functionality of search_by_metadata. Let me know if any modifications or additional tests are needed.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.