Skip to content
Snippets Groups Projects
Unverified Commit c67daeb2 authored by Huu Le's avatar Huu Le Committed by GitHub
Browse files

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

parent af6ac9a4
No related branches found
No related tags found
No related merge requests found
---
"create-llama": patch
---
fix: missing set private to false for default generate.py
...@@ -64,6 +64,9 @@ def generate_datasource(): ...@@ -64,6 +64,9 @@ def generate_datasource():
# Get the stores and documents or create new ones # Get the stores and documents or create new ones
documents = get_documents() 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() docstore = get_doc_store()
vector_store = get_vector_store() vector_store = get_vector_store()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment