1MR commited on
Commit
a23be4c
·
verified ·
1 Parent(s): a0d2df7

Update RAG.py

Browse files
Files changed (1) hide show
  1. RAG.py +1 -3
RAG.py CHANGED
@@ -52,9 +52,7 @@ def create_database(embedding, documents):
52
  # Use a local directory for Chroma database storage
53
  vector_store = Chroma.from_documents(
54
  documents,
55
- embedding=embedding,
56
- persist_directory="/chroma_db" # Hugging Face Spaces allows usage of this directory
57
- )
58
  return vector_store
59
 
60
 
 
52
  # Use a local directory for Chroma database storage
53
  vector_store = Chroma.from_documents(
54
  documents,
55
+ embedding=embedding)
 
 
56
  return vector_store
57
 
58