Explorar o código

feat: rag context logging

Timothy J. Baek hai 1 ano
pai
achega
a6c154d839
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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)
 
+    log.debug(f"relevant_contexts: {relevant_contexts}")
+
     context_string = ""
     for context in relevant_contexts:
         if context: