vislupus commited on
Commit
60867e9
1 Parent(s): 6f44203

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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
- base_dir = os.path.dirname(os.path.abspath(__file__))
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+"""