bstraehle commited on
Commit
004cf23
·
1 Parent(s): 8048daf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -4,11 +4,11 @@ import os, time
4
  from dotenv import load_dotenv, find_dotenv
5
 
6
  from rag import run_llm_chain, run_rag_chain, run_rag_batch
7
- from trace import wandb_trace
8
 
9
  _ = load_dotenv(find_dotenv())
10
 
11
- RUN_RAG_BATCH = False # document loading, splitting, storage
12
 
13
  config = {
14
  "chunk_overlap": 150, # split documents
@@ -58,7 +58,7 @@ def invoke(openai_api_key, rag_option, prompt):
58
  finally:
59
  end_time_ms = round(time.time() * 1000)
60
 
61
- wandb_trace(config,
62
  rag_option == RAG_OFF,
63
  prompt,
64
  completion,
 
4
  from dotenv import load_dotenv, find_dotenv
5
 
6
  from rag import run_llm_chain, run_rag_chain, run_rag_batch
7
+ from trace import trace_wandb
8
 
9
  _ = load_dotenv(find_dotenv())
10
 
11
+ RUN_RAG_BATCH = False # load, split, embed, and store documents
12
 
13
  config = {
14
  "chunk_overlap": 150, # split documents
 
58
  finally:
59
  end_time_ms = round(time.time() * 1000)
60
 
61
+ trace_wandb(config,
62
  rag_option == RAG_OFF,
63
  prompt,
64
  completion,