J266501 commited on
Commit
cc2875a
·
1 Parent(s): 43da375

change file

Browse files
Files changed (1) hide show
  1. api_service.py +1 -1
api_service.py CHANGED
@@ -50,7 +50,7 @@ async def lifespan(app: FastAPI):
50
  )
51
  client = chromadb.PersistentClient(path=VECTOR_DB_DIR)
52
  vectorstore = Chroma(
53
- client=client,
54
  collection_name=COLLECTION_NAME,
55
  embedding_function=embeddings
56
  )
 
50
  )
51
  client = chromadb.PersistentClient(path=VECTOR_DB_DIR)
52
  vectorstore = Chroma(
53
+ persist_directory=VECTOR_DB_DIR,
54
  collection_name=COLLECTION_NAME,
55
  embedding_function=embeddings
56
  )