Amna2024 commited on
Commit
762431e
·
verified ·
1 Parent(s): 9b52091

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -3
main.py CHANGED
@@ -13,10 +13,10 @@ userdata = {
13
 
14
  GEMINI_KEY = userdata.get("GEMINI_API_KEY")
15
 
16
- #PERSIST_DIR = os.path.dirname(os.path.abspath(__file__))
17
- DATABASE_PATH = "/app/RAG/chroma.sqlite3"
18
  #os.path.join(PROJECT_ROOT, 'RAG/') # Make this configurable if needed
19
- v_store = load_vector_store(GEMINI_KEY, DATABASE_PATH)
20
  retriever = Retriever(v_store)
21
  gemini_llm = GeminiLLM(GEMINI_KEY)
22
 
 
13
 
14
  GEMINI_KEY = userdata.get("GEMINI_API_KEY")
15
 
16
+ PERSIST_DIR = os.path.dirname(os.path.abspath(__file__))
17
+ #DATABASE_PATH = "/app/RAG/chroma.sqlite3"
18
  #os.path.join(PROJECT_ROOT, 'RAG/') # Make this configurable if needed
19
+ v_store = load_vector_store(GEMINI_KEY, PERSIST_DIR)
20
  retriever = Retriever(v_store)
21
  gemini_llm = GeminiLLM(GEMINI_KEY)
22