Find answers from the community

Updated 5 months ago

out.txt

At a glance
https://gist.github.com/devxpy/0c83edaa31841442615aff0a52e267c0

How can I see the query that the chat engine is making to the vector store?
I tried printing token_counter.embedding_token_counts[0].prompt but that prints the embedded text, not the query being made to the vector store to fetch the context.
L
f
D
3 comments
The embedded text is the text being used to retrieve from the vector store no?
if you want to see the context "source_nodes" this is what I use
Plain Text
    query_engine = RetrieverQueryEngine.from_args(
        retriever, response_mode='no_text')
    ######
    response = query_engine.query(chat_query.query)

    # context = response.source_nodes[0].node.text
Thanks, yes. I enabled python debug logger so I can see everything now
Add a reply
Sign up and join the conversation on Discord