Find answers from the community

Updated 6 months ago

How we can get the final prompt after

At a glance

The post asks how to get the final prompt after using a retriever. A community member suggests printing all the LLM inputs/outputs to the console and provides some code to set up the global handler. However, there is no explicitly marked answer to the original question.

How we can get the final prompt after retriever?
L
1 comment
You can print all the LLM inputs/outputs to console

Plain Text
import llama_index.core

llama_index.core.set_global_handler("simple")
Add a reply
Sign up and join the conversation on Discord