bstraehle commited on
Commit
345fd66
·
1 Parent(s): c6c193f

Update rag_langchain.py

Browse files
Files changed (1) hide show
  1. rag_langchain.py +2 -2
rag_langchain.py CHANGED
@@ -114,7 +114,7 @@ class LangChainRAG(BaseRAG):
114
  )
115
 
116
  with get_openai_callback() as callback:
117
- completion = llm_chain.generate([{"query_str": prompt}])
118
 
119
  return completion, llm_chain, callback
120
 
@@ -130,6 +130,6 @@ class LangChainRAG(BaseRAG):
130
  )
131
 
132
  with get_openai_callback() as callback:
133
- completion = rag_chain({"query_str": prompt})
134
 
135
  return completion, rag_chain, callback
 
114
  )
115
 
116
  with get_openai_callback() as callback:
117
+ completion = llm_chain.generate([{"question": prompt}])
118
 
119
  return completion, llm_chain, callback
120
 
 
130
  )
131
 
132
  with get_openai_callback() as callback:
133
+ completion = rag_chain({"query": prompt})
134
 
135
  return completion, rag_chain, callback