removes graph metrics from demos

This commit is contained in:
hajdul88 2025-06-03 15:34:54 +02:00
parent dca58ff97b
commit 1fc381e51b
2 changed files with 2 additions and 11 deletions

View file

@ -180,14 +180,9 @@ async def main(enable_steps):
# Step 3: Create knowledge graph
if enable_steps.get("cognify"):
pipeline_run = await cognee.cognify()
await cognee.cognify()
print("Knowledge graph created.")
# Step 4: Calculate descriptive metrics
if enable_steps.get("graph_metrics"):
await get_pipeline_run_metrics(pipeline_run, include_optional=True)
print("Descriptive graph metrics saved to database.")
# Step 5: Query insights
if enable_steps.get("retriever"):
search_results = await cognee.search(

View file

@ -62,13 +62,9 @@ async def main():
os.path.dirname(os.path.abspath(__file__)), "ontology_input_example/basic_ontology.owl"
)
pipeline_run = await cognee.cognify(ontology_file_path=ontology_path)
await cognee.cognify(ontology_file_path=ontology_path)
print("Knowledge with ontology created.")
# Step 4: Calculate descriptive metrics
await get_pipeline_run_metrics(pipeline_run, include_optional=True)
print("Descriptive graph metrics saved to database.")
# Step 5: Query insights
search_results = await cognee.search(
query_type=SearchType.GRAPH_COMPLETION,