Update trace.py
Browse files
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
|
19 |
prompt_template = os.environ["LANGCHAIN_TEMPLATE"]
|
20 |
-
elif (rag_option
|
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"]
|