You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I will get an answer from other sources like Wikipedia, if the answer to my question is not in the docs provided.
However, if I use the following code to use k=1, i.e. just return one doc, docs = search_index.similarity_search(query, k=1)
then I will not get an answer from the "outside" sources, if the answer to my query is in the docs provided. It only says something like "I don't know the answer".
The prompt is also the same for both cases. Why are the outputs different?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I found something strange which I don't understand how it works.
With the following code
I will get an answer from other sources like Wikipedia, if the answer to my question is not in the docs provided.
However, if I use the following code to use k=1, i.e. just return one doc,
docs = search_index.similarity_search(query, k=1)
then I will not get an answer from the "outside" sources, if the answer to my query is in the docs provided. It only says something like "I don't know the answer".
The prompt is also the same for both cases. Why are the outputs different?
Beta Was this translation helpful? Give feedback.
All reactions