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 3 months ago
0
Follow
When querying an index how do I define
When querying an index how do I define
Inactive
0
Follow
b
badcom
2 years ago
Β·
When querying an index, how do I define that I only want to return data from 1 source?
b
L
4 comments
Share
Open in Discord
b
badcom
2 years ago
Is it through the "response_kwargs" parameter? I tried passing {"k":1} to that but it didn't work
L
Logan M
2 years ago
try
index.as_query_engine(similarity_top_k=1)
L
Logan M
2 years ago
Assuming you are using a vector index of course
b
badcom
2 years ago
That did the trick. Thanks!
Add a reply
Sign up and join the conversation on Discord
Join on Discord