Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/code_embedding/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
)
Expand Down
3 changes: 2 additions & 1 deletion examples/docs_to_knowledge_graph/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
)
)

Expand Down
4 changes: 3 additions & 1 deletion examples/patient_intake_extraction/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down