Find answers from the community

Updated last year

Call

At a glance
Hi everyone, why is the response of using VectorStoreIndex.from_documents(documents, service_context=service_context).as_query_engine much more different from RetrieverQueryEngine( retriever=vector_retriever, response_synthesizer=response_synthesizer)?
I mean when i use RetrieverQueryEngine with get_response_synthesizer, the information in the response is more accurate and compact, even when I tried to run it 3 times to see if the response between two ways could be the same
L
1 comment
Those two things aren't comparable? I think you meant to compare as_query_engine() and RetrieverQueryEngine.from_args() ?

The two will be the same when you use default settings. But if you modify things like the response mode or response synthesizer, the top k, etc, they will be different
Add a reply
Sign up and join the conversation on Discord