Parcourir la source

feat: rag context logging

Timothy J. Baek il y a 1 an
Parent
commit
a6c154d839
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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: