fix: missing set private to false for default generate.py (#194)

This commit is contained in:
Huu Le
2024-07-30 15:06:04 +07:00
committed by GitHub
parent af6ac9a444
commit c67daeb2be
2 changed files with 8 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"create-llama": patch
---
fix: missing set private to false for default generate.py
@@ -64,6 +64,9 @@ def generate_datasource():
# Get the stores and documents or create new ones
documents = get_documents()
# Set private=false to mark the document as public (required for filtering)
for doc in documents:
doc.metadata["private"] = "false"
docstore = get_doc_store()
vector_store = get_vector_store()