Spaces:
Build error
Build error
Update rag_langchain.py
Browse files- 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,
|
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,
|
|
|
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
|