Update app/llm.py
Browse files- app/llm.py +2 -2
app/llm.py
CHANGED
@@ -36,10 +36,10 @@ class RagChat:
|
|
36 |
vectorstore = Chroma.from_documents(documents=self.agent, embedding=GPT4AllEmbeddings())
|
37 |
return vectorstore
|
38 |
|
39 |
-
def
|
40 |
chain = (
|
41 |
RunnablePassthrough.assign(context=RunnablePick("context") | format_docs)
|
42 |
-
|
|
43 |
| llm
|
44 |
| StrOutputParser()
|
45 |
)
|
|
|
36 |
vectorstore = Chroma.from_documents(documents=self.agent, embedding=GPT4AllEmbeddings())
|
37 |
return vectorstore
|
38 |
|
39 |
+
def chat(self, question):
|
40 |
chain = (
|
41 |
RunnablePassthrough.assign(context=RunnablePick("context") | format_docs)
|
42 |
+
| rag_prompt_llama
|
43 |
| llm
|
44 |
| StrOutputParser()
|
45 |
)
|