Find answers from the community

Updated 7 months ago

TopK

Hi, I have built a VectorStoreIndex from 9 sql ddl queries and when I am using the index as chat engine.
when I query the the chat engine asking "give me all tables having 'abc' column", It seems to take only 2 tables in context at a time and not all 9. I have tried all chat modes but none seems to work, how can I make it so it takes all tables in context
W
1 comment
You need to add the topK value, by default it is two

chat_engine = index.as_chat_engine(similarity_top_k=10,...)
Add a reply
Sign up and join the conversation on Discord