bstraehle commited on
Commit
bee222e
·
1 Parent(s): cfda348

Update rag.py

Browse files
Files changed (1) hide show
  1. rag.py +1 -2
rag.py CHANGED
@@ -115,8 +115,7 @@ def rag_chain(config, openai_api_key, rag_option, prompt):
115
  retriever = db.as_retriever(search_kwargs = {"k": config["k"]}),
116
  return_source_documents = True)
117
 
118
- completion = rag_chain({"query": prompt}, include_run_info = True)
119
  print("###" + str(completion))
120
- print("###" + str(completion["run_info"]))
121
 
122
  return completion, rag_chain
 
115
  retriever = db.as_retriever(search_kwargs = {"k": config["k"]}),
116
  return_source_documents = True)
117
 
118
+ completion = rag_chain({"query": prompt})
119
  print("###" + str(completion))
 
120
 
121
  return completion, rag_chain