bstraehle commited on
Commit
cde25a7
·
1 Parent(s): 5edb564

Update rag.py

Browse files
Files changed (1) hide show
  1. rag.py +4 -4
rag.py CHANGED
@@ -119,10 +119,10 @@ def rag_chain(config, openai_api_key, rag_option, prompt):
119
  retriever = db.as_retriever(search_kwargs = {"k": config["k"]}),
120
  return_source_documents = True)
121
 
122
- completion = rag_chain({"query": prompt})
123
- print("###" + str(completion))
124
-
125
  with get_openai_callback() as cb:
 
126
  print(cb)
127
-
 
 
128
  return completion, rag_chain
 
119
  retriever = db.as_retriever(search_kwargs = {"k": config["k"]}),
120
  return_source_documents = True)
121
 
 
 
 
122
  with get_openai_callback() as cb:
123
+ completion = rag_chain({"query": prompt})
124
  print(cb)
125
+
126
+ print("###" + str(completion))
127
+
128
  return completion, rag_chain