Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Inactive
Updated 8 months ago
0
Follow
how can i pass a filter in a
how can i pass a filter in a
Inactive
0
Follow
l
llm_dev
8 months ago
Β·
how can i pass a filter in a RouterQueryEngine ? any example pls
L
l
6 comments
Share
Open in Discord
L
Logan M
8 months ago
You can pass the filters to the underlying query engine tools
index.as_query_engine(filters=filters)
l
llm_dev
8 months ago
THx @Logan M , sorry but how can i pass the filter to the vectorAgent at runtime ? Attached screenshot, as how i have initialized my RouterQueryEngine
Attachments
L
Logan M
8 months ago
what is index.get_query_engine() doing? Thats probably where the filters should go
l
llm_dev
8 months ago
it return the already created query_engine from the vector index which i construct at start of the project. Question: should i reconstruct the
RouterQueryEngine
for every prompt with the new filter values ? if yes is that a good thing ?
L
Logan M
8 months ago
Constructing the query engine is basically a no-op, so I don't see an issue with doing that π
l
llm_dev
8 months ago
alrightyy, then I'm all set thx @Logan M .
Add a reply
Sign up and join the conversation on Discord
Join on Discord