bstraehle commited on
Commit
300737c
·
1 Parent(s): 05bcaa4

Update rag_langchain.py

Browse files
Files changed (1) hide show
  1. rag_langchain.py +2 -2
rag_langchain.py CHANGED
@@ -116,7 +116,7 @@ class LangChainRAG(BaseRAG):
116
  with get_openai_callback() as callback:
117
  completion = llm_chain.generate([{"question": prompt}])
118
 
119
- return completion, llm_chain, callback
120
 
121
  def rag_chain(self, config, prompt):
122
  #vector_store = self.get_vector_store_chroma()
@@ -132,4 +132,4 @@ class LangChainRAG(BaseRAG):
132
  with get_openai_callback() as callback:
133
  completion = rag_chain({"query": prompt})
134
 
135
- return completion, rag_chain, callback
 
116
  with get_openai_callback() as callback:
117
  completion = llm_chain.generate([{"question": prompt}])
118
 
119
+ return completion, callback
120
 
121
  def rag_chain(self, config, prompt):
122
  #vector_store = self.get_vector_store_chroma()
 
132
  with get_openai_callback() as callback:
133
  completion = rag_chain({"query": prompt})
134
 
135
+ return completion, callback