Update app.py
Browse files
app.py
CHANGED
@@ -117,7 +117,7 @@ def rag_chain(llm, prompt, db):
|
|
117 |
def wandb_log(prompt, completion, rag_option):
|
118 |
wandb.login(key = wandb_api_key)
|
119 |
wandb.init(project = "openai-llm-rag", config = config)
|
120 |
-
wandb.log({"prompt": str(
|
121 |
wandb.finish()
|
122 |
|
123 |
def invoke(openai_api_key, rag_option, prompt):
|
|
|
117 |
def wandb_log(prompt, completion, rag_option):
|
118 |
wandb.login(key = wandb_api_key)
|
119 |
wandb.init(project = "openai-llm-rag", config = config)
|
120 |
+
wandb.log({"prompt": str(prompt), "completion": str(completion), "rag_option": rag_option})
|
121 |
wandb.finish()
|
122 |
|
123 |
def invoke(openai_api_key, rag_option, prompt):
|