Skip to content

Commit b369a5d

Browse files
committed
minor cleanups
1 parent edbe29f commit b369a5d

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

examples/meeting_notes_graph/main.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
),
1717
)
1818

19-
GraphDbSpec = cocoindex.targets.Neo4j
20-
2119

2220
@dataclass
2321
class Person:
@@ -110,7 +108,7 @@ def meeting_notes_graph_flow(
110108

111109
meeting_nodes.export(
112110
"meeting_nodes",
113-
GraphDbSpec(
111+
cocoindex.targets.Neo4j(
114112
connection=conn_spec, mapping=cocoindex.targets.Nodes(label="Meeting")
115113
),
116114
primary_key_fields=["note_file", "time"],
@@ -131,7 +129,7 @@ def meeting_notes_graph_flow(
131129
)
132130
attended_rels.export(
133131
"attended_rels",
134-
GraphDbSpec(
132+
cocoindex.targets.Neo4j(
135133
connection=conn_spec,
136134
mapping=cocoindex.targets.Relationships(
137135
rel_type="ATTENDED",
@@ -156,7 +154,7 @@ def meeting_notes_graph_flow(
156154
)
157155
decided_tasks_rels.export(
158156
"decided_tasks_rels",
159-
GraphDbSpec(
157+
cocoindex.targets.Neo4j(
160158
connection=conn_spec,
161159
mapping=cocoindex.targets.Relationships(
162160
rel_type="DECIDED",
@@ -179,7 +177,7 @@ def meeting_notes_graph_flow(
179177
)
180178
assigned_rels.export(
181179
"assigned_rels",
182-
GraphDbSpec(
180+
cocoindex.targets.Neo4j(
183181
connection=conn_spec,
184182
mapping=cocoindex.targets.Relationships(
185183
rel_type="ASSIGNED_TO",

examples/meeting_notes_graph/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.11"
6-
dependencies = ["cocoindex>=0.2.8", "jinja2>=3.1.6"]
6+
dependencies = ["cocoindex>=0.3.8"]
77

88
[tool.setuptools]
99
packages = []

0 commit comments

Comments
 (0)