bstraehle commited on
Commit
c097673
·
1 Parent(s): 9294813

Update trace.py

Browse files
Files changed (1) hide show
  1. trace.py +2 -0
trace.py CHANGED
@@ -12,6 +12,7 @@ def wandb_trace(config,
12
  generation_info,
13
  llm_output,
14
  chain,
 
15
  err_msg,
16
  start_time_ms,
17
  end_time_ms):
@@ -32,6 +33,7 @@ def wandb_trace(config,
32
  "source_documents": "" if (is_rag_off) else str([doc.metadata["source"] for doc in completion["source_documents"]]),
33
  } if (str(err_msg) == "") else {},
34
  outputs = {"result": result,
 
35
  "generation_info": str(generation_info),
36
  "llm_output": str(llm_output),
37
  "completion": str(completion),
 
12
  generation_info,
13
  llm_output,
14
  chain,
15
+ cb,
16
  err_msg,
17
  start_time_ms,
18
  end_time_ms):
 
33
  "source_documents": "" if (is_rag_off) else str([doc.metadata["source"] for doc in completion["source_documents"]]),
34
  } if (str(err_msg) == "") else {},
35
  outputs = {"result": result,
36
+ "cb": cb,
37
  "generation_info": str(generation_info),
38
  "llm_output": str(llm_output),
39
  "completion": str(completion),