Replies: 1 comment 1 reply
-
Hi @pepenotti I am facing the same issue at the moment. Were you able to find a potential workaround to independently set the nearest Neighbours parameter? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checked
Feature request
Azure AI Search vector search
top
andk_nearest_neighbors
values should be able to receive different values since both of them have different purposes.langchain/libs/community/langchain_community/vectorstores/azuresearch.py
Lines 419 to 445 in bcb8ab5
Motivation
I'm working on an index where large content is chunked and indexed. This means that later on I'll be needing to search lots of documents (up to 50) when doing the similarity search.
At the same time, I might have smaller documents with less chunks.
The problem is that setting
k
as50
will end up getting 50k_nearest_neighbors
. In my test cases, I ended up having a lot of noise when the document I was looking was small, and its nearest neighbors weren't as relevant as it should.Proposal (If applicable)
No response
Beta Was this translation helpful? Give feedback.
All reactions