----------------------
Yes, within the LlamaIndex Framework, you can monitor the prompt formatting by enabling the verbose mode for the query engines. This can be done by setting the
verbose
parameter to
True
when building and configuring a query engine. Here is an example of how to do it:
query_engine = index.as_query_engine(
response_mode="tree_summarize",
verbose=True,
)
This line of code will directly build and configure a query engine from an index in just one line of code. The
verbose=True
part is what enables the verbose mode, allowing you to see the complete query sent to the LLM.
You can find more details about this in the
LlamaIndex documentation ().
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------