Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -116,9 +116,7 @@ def rag_chain(llm, prompt, db):
|
|
116 |
return completion, rag_chain
|
117 |
|
118 |
def wandb_trace(rag_option, prompt, completion, chain, status_msg, start_time_ms, end_time_ms):
|
119 |
-
#print(chain.
|
120 |
-
#print(chain.outputKey)
|
121 |
-
print(chain.retriever)
|
122 |
wandb.init(project = "openai-llm-rag")
|
123 |
if (rag_option == "Off" or str(status_msg) != ""):
|
124 |
result = completion
|
|
|
116 |
return completion, rag_chain
|
117 |
|
118 |
def wandb_trace(rag_option, prompt, completion, chain, status_msg, start_time_ms, end_time_ms):
|
119 |
+
#print(chain.retriever)
|
|
|
|
|
120 |
wandb.init(project = "openai-llm-rag")
|
121 |
if (rag_option == "Off" or str(status_msg) != ""):
|
122 |
result = completion
|