Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from langchain.prompts import ChatPromptTemplate
|
|
5 |
from langchain.chains import RetrievalQA, ConversationalRetrievalChain
|
6 |
from langchain.memory import ConversationBufferMemory
|
7 |
from langchain_huggingface.embeddings import HuggingFaceEmbeddings
|
8 |
-
from
|
9 |
|
10 |
def rag_retriever(message, history, system_prompt, num_sources=4, temperature=0):
|
11 |
chat = ChatGroq(temperature=temperature, model_name="llama3-70b-8192", api_key=os.getenv("GROQ_API_KEY"))
|
|
|
5 |
from langchain.chains import RetrievalQA, ConversationalRetrievalChain
|
6 |
from langchain.memory import ConversationBufferMemory
|
7 |
from langchain_huggingface.embeddings import HuggingFaceEmbeddings
|
8 |
+
from langchain_chroma import Chroma
|
9 |
|
10 |
def rag_retriever(message, history, system_prompt, num_sources=4, temperature=0):
|
11 |
chat = ChatGroq(temperature=temperature, model_name="llama3-70b-8192", api_key=os.getenv("GROQ_API_KEY"))
|