chore: removes duplicated func def
This commit is contained in:
parent
fbb7d72461
commit
1d63da7923
1 changed files with 1 additions and 5 deletions
|
|
@ -11,7 +11,7 @@ from cognee.tasks.storage.exceptions import (
|
||||||
|
|
||||||
|
|
||||||
async def add_data_points(
|
async def add_data_points(
|
||||||
data_points: List[DataPoint], update_edge_collection=True
|
data_points: List[DataPoint], update_edge_collection: bool = True
|
||||||
) -> List[DataPoint]:
|
) -> List[DataPoint]:
|
||||||
"""
|
"""
|
||||||
Add a batch of data points to the graph database by extracting nodes and edges,
|
Add a batch of data points to the graph database by extracting nodes and edges,
|
||||||
|
|
@ -41,10 +41,6 @@ async def add_data_points(
|
||||||
- Optionally updates the edge index via `index_graph_edges`.
|
- Optionally updates the edge index via `index_graph_edges`.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
async def add_data_points(
|
|
||||||
data_points: List[DataPoint], update_edge_collection: bool = True
|
|
||||||
) -> List[DataPoint]:
|
|
||||||
if not isinstance(data_points, list):
|
if not isinstance(data_points, list):
|
||||||
raise InvalidDataPointsInAddDataPointsError("data_points must be a list.")
|
raise InvalidDataPointsInAddDataPointsError("data_points must be a list.")
|
||||||
if not all(isinstance(dp, DataPoint) for dp in data_points):
|
if not all(isinstance(dp, DataPoint) for dp in data_points):
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue