Find answers from the community

Updated 9 months ago

Hello,

Hello,
How I can see exactly what nodes (similarity_top_k=2) are extracted for vector_retrievers and bm25_retrievers, for each index, In order to understand what exactly will be used in QueryFusionRetriever

vector_retrievers = []
bm25_retrievers = []

for table in tabels:
...
vector_retrievers.append(index.as_retriever(similarity_top_k=2))
....
bm25_retrievers.append(BM25Retriever.from_defaults(nodes=nodes, similarity_top_k=2))
retrievers = vector_retrievers + bm25_retrievers
retriever = QueryFusionRetriever(
retrievers=retrievers,
llm=llm,
mode=RECIPROCAL_RANK,
similarity_top_k=8
)

query_engine = RetrieverQueryEngine.from_args(retriever, llm=llm)
...
W
1 comment
Add a reply
Sign up and join the conversation on Discord