Browse Source

feat: rag context logging

Timothy J. Baek 1 year ago
parent
commit
a6c154d839
1 changed files with 2 additions and 0 deletions
  1. 2 0
      backend/apps/rag/utils.py

+ 2 - 0
backend/apps/rag/utils.py

@@ -156,6 +156,8 @@ def rag_messages(docs, messages, template, k, embedding_function):
 
 
         relevant_contexts.append(context)
         relevant_contexts.append(context)
 
 
+    log.debug(f"relevant_contexts: {relevant_contexts}")
+
     context_string = ""
     context_string = ""
     for context in relevant_contexts:
     for context in relevant_contexts:
         if context:
         if context: