Find answers from the community

Updated 3 months ago

I am trying to build a simple chatbot

I am trying to build a simple chatbot over a PDF document

so its like , some experiences/trips catalogue
and if i ask lets say , give me all experiences related to "Fashion"
i just get normally 2 experiences, though there are more than 7 "fashion" related experiences

any idea what i am missing and how can i see each and every exprience which is Fashion related for example

here is the code screenshot
Attachment
image.png
L
j
3 comments
default top-k is two
index.as_chat_engine(..., similarity_top_k=2)
Thanks Logan , that helped ,
so i added this similarity_top_k=10
and now getting 4 matches , sometimes 5 , so its better

but i can see the relevent experiences in the document are 11, where i can see the word "Fashion" as an example

do you know what could be the reason
Add a reply
Sign up and join the conversation on Discord