Debug
RAGChat provides a powerful debugging feature that allows you to see the inner workings of your RAG applications. By enabling debug mode, you can trace the entire process from user input to final response.
Enable Debugging
To activate the debugging feature, simply initialize RAGChat with the debug
option set to true
:
Debug Output
When debug mode is enabled, RAGChat will log detailed information about each step of the RAG process. Here’s a breakdown of the debug output:
-
SEND_PROMPT: Logs the initial user query.
-
RETRIEVE_CONTEXT: Shows the relevant context retrieved from the vector store.
-
RETRIEVE_HISTORY: Displays the chat history retrieved for context.
-
FORMAT_HISTORY: Shows how the chat history is formatted for the prompt.
-
FINAL_PROMPT: Displays the complete prompt sent to the language model.
-
LLM_RESPONSE: Shows the final response from the language model.
Was this page helpful?