Find answers from the community

Updated 3 months ago

similarity_top_k

Question:

Do chat engines use similarity_top_k? If no, then how can I make the look inside more nodes to answer than it does now?
W
T
2 comments
Yes you can pass it like this and it should work
Plain Text
    # queries the index with the input text
    response = index.as_chat_engine(similarity_top_k=3).chat(input_text)
Thank you so much!
Add a reply
Sign up and join the conversation on Discord