bstraehle commited on
Commit
8a75a06
1 Parent(s): 2d0d484

Update trace.py

Browse files
Files changed (1) hide show
  1. trace.py +2 -2
trace.py CHANGED
@@ -15,9 +15,9 @@ def trace_wandb(config,
15
  end_time_ms):
16
  wandb.init(project = "openai-llm-rag")
17
 
18
- if (rag_option = RAG_LANGCHAIN):
19
  prompt_template = os.environ["LANGCHAIN_TEMPLATE"]
20
- elif (rag_option = RAG_LLAMAINDEX):
21
  prompt_template = os.environ["LLAMAINDEX_TEMPLATE"]
22
  else:
23
  prompt_template = os.environ["TEMPLATE"]
 
15
  end_time_ms):
16
  wandb.init(project = "openai-llm-rag")
17
 
18
+ if (rag_option == RAG_LANGCHAIN):
19
  prompt_template = os.environ["LANGCHAIN_TEMPLATE"]
20
+ elif (rag_option == RAG_LLAMAINDEX):
21
  prompt_template = os.environ["LLAMAINDEX_TEMPLATE"]
22
  else:
23
  prompt_template = os.environ["TEMPLATE"]