Skip to content

Commit 144c3a1

Browse files
committed
chore: further cleanups for examples
1 parent 1812488 commit 144c3a1

File tree

6 files changed

+6
-22
lines changed

6 files changed

+6
-22
lines changed

examples/code_embedding/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def code_embedding_flow(flow_builder: cocoindex.FlowBuilder, data_scope: cocoind
2525
data_scope["files"] = flow_builder.add_source(
2626
cocoindex.sources.LocalFile(path="../..",
2727
included_patterns=["*.py", "*.rs", "*.toml", "*.md", "*.mdx"],
28-
excluded_patterns=[".*", "target", "**/node_modules"]))
28+
excluded_patterns=["**/.*", "target", "**/node_modules"]))
2929
code_embeddings = data_scope.add_collector()
3030

3131
with data_scope["files"].row() as file:

examples/docs_to_knowledge_graph/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "manuals-to-kg"
33
version = "0.1.0"
44
description = "Simple example for cocoindex: extract triples from files and build knowledge graph."
55
requires-python = ">=3.10"
6-
dependencies = ["cocoindex>=0.1.42", "python-dotenv>=1.0.1"]
6+
dependencies = ["cocoindex>=0.1.42"]
77

88
[tool.setuptools]
99
packages = []

examples/manuals_llm_extraction/main.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,4 @@ def manual_extraction_flow(flow_builder: cocoindex.FlowBuilder, data_scope: coco
114114
"modules",
115115
cocoindex.storages.Postgres(table_name="modules_info"),
116116
primary_key_fields=["filename"],
117-
)
118-
119-
def _run():
120-
pass
121-
122-
if __name__ == "__main__":
123-
_run()
117+
)

examples/manuals_llm_extraction/pyproject.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ name = "manuals-llm-extraction"
33
version = "0.1.0"
44
description = "Simple example for cocoindex: extract structured information from a Markdown file using LLM."
55
requires-python = ">=3.10"
6-
dependencies = [
7-
"cocoindex>=0.1.42",
8-
"python-dotenv>=1.0.1",
9-
"marker-pdf>=1.5.2",
10-
]
6+
dependencies = ["cocoindex>=0.1.42", "marker-pdf>=1.5.2"]
117

128
[tool.setuptools]
139
packages = []

examples/product_recommendation/main.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,4 @@ def store_product_flow(flow_builder: cocoindex.FlowBuilder, data_scope: cocoinde
173173
),
174174
),
175175
primary_key_fields=["id"],
176-
)
177-
178-
def _run():
179-
pass
180-
181-
if __name__ == "__main__":
182-
_run()
176+
)

examples/product_recommendation/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "cocoindex-ecommerce-taxonomy"
33
version = "0.1.0"
44
description = "Simple example for CocoIndex: extract taxonomy from e-commerce products and build knowledge graph."
55
requires-python = ">=3.10"
6-
dependencies = ["cocoindex>=0.1.42", "python-dotenv>=1.0.1", "jinja2>=3.1.6"]
6+
dependencies = ["cocoindex>=0.1.42", "jinja2>=3.1.6"]
77

88
[tool.setuptools]
99
packages = []

0 commit comments

Comments
 (0)