Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added pipeline dynamic filters #45

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

tachyean
Copy link

@tachyean tachyean commented Feb 18, 2025

By defining a RAG retrieval pipeline, the filters can be defined only once when the MilvusEmbeddingRetriever class instance is created. If you need to query a different file for example using the same pipeline is not possible unless you allow changing the filters at run time.

Eg:

pipeline.run(
    {
        "retriever": {"filters": {"field": "file_path", "operator": "==", "value": "someDocument.txt"}},
        ...
    }
)

This is what i am trying to fix with this commit. I found no other way to achieve this. 😅

@mergify mergify bot added the needs-dco label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant