From bc705705568dca5ce71ca4e6d7acc680f2b4862d Mon Sep 17 00:00:00 2001 From: Jiangzhou He Date: Sun, 28 Sep 2025 22:23:20 -0700 Subject: [PATCH] fix: format --- examples/code_embedding/main.py | 2 +- examples/docs_to_knowledge_graph/main.py | 3 ++- examples/patient_intake_extraction/main.py | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/code_embedding/main.py b/examples/code_embedding/main.py index bfd1ad935..053eacf9b 100644 --- a/examples/code_embedding/main.py +++ b/examples/code_embedding/main.py @@ -45,7 +45,7 @@ def code_embedding_flow( """ data_scope["files"] = flow_builder.add_source( cocoindex.sources.LocalFile( - path=os.path.join('..', '..'), + path=os.path.join("..", ".."), included_patterns=["*.py", "*.rs", "*.toml", "*.md", "*.mdx"], excluded_patterns=["**/.*", "target", "**/node_modules"], ) diff --git a/examples/docs_to_knowledge_graph/main.py b/examples/docs_to_knowledge_graph/main.py index d82f608c3..7150809e0 100644 --- a/examples/docs_to_knowledge_graph/main.py +++ b/examples/docs_to_knowledge_graph/main.py @@ -67,7 +67,8 @@ def docs_to_kg_flow( """ data_scope["documents"] = flow_builder.add_source( cocoindex.sources.LocalFile( - path=os.path.join('..', '..','docs','docs','core'), included_patterns=["*.md", "*.mdx"] + path=os.path.join("..", "..", "docs", "docs", "core"), + included_patterns=["*.md", "*.mdx"], ) ) diff --git a/examples/patient_intake_extraction/main.py b/examples/patient_intake_extraction/main.py index f23286fa2..fd7ec21bc 100644 --- a/examples/patient_intake_extraction/main.py +++ b/examples/patient_intake_extraction/main.py @@ -118,7 +118,9 @@ def patient_intake_extraction_flow( Define a flow that extracts patient information from intake forms. """ data_scope["documents"] = flow_builder.add_source( - cocoindex.sources.LocalFile(path=os.path.join('data', 'patient_forms'), binary=True) + cocoindex.sources.LocalFile( + path=os.path.join("data", "patient_forms"), binary=True + ) ) patients_index = data_scope.add_collector()