Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,9 +12,7 @@ def rag_retriever(message, history, system_prompt, num_sources=4, temperature=0)
|
|
12 |
|
13 |
embeddings = HuggingFaceEmbeddings(model_name="avsolatorio/GIST-large-Embedding-v0")
|
14 |
|
15 |
-
|
16 |
-
db_path = os.path.join(base_dir, 'chroma.sqlite3')
|
17 |
-
store = Chroma(persist_directory='/home/user/app', embedding_function=embeddings, collection_name='ai_act')
|
18 |
|
19 |
prompt_template = ChatPromptTemplate.from_messages([
|
20 |
("system", system_prompt+"""
|
|
|
12 |
|
13 |
embeddings = HuggingFaceEmbeddings(model_name="avsolatorio/GIST-large-Embedding-v0")
|
14 |
|
15 |
+
store = Chroma(persist_directory='/home/user/app/db/', embedding_function=embeddings, collection_name='ai_act')
|
|
|
|
|
16 |
|
17 |
prompt_template = ChatPromptTemplate.from_messages([
|
18 |
("system", system_prompt+"""
|