similarity_top_k
can be set directly when initializing a VectorStoreIndex as a query engine but not as a chat engine?BaseChatEngine
, SimpleChatEngine
and ContextChatEngine
and couldn't find the parameter setting for it.RetrieverQueryEngine
, I notice it's not there either. I always saw top_k
set when the index is used as a query engine, so I just assumed it'd be in the __init__
method, but I guess it's buried in the **kwargs
or something.ReActAgent
and AgentRunner
and cannot find where similarity_top_k
is finally used.as_retriever()
method in VectorStoreIndex, which is called by both as_query_engine()
and as_chat_engine()
in BaseIndex.