removes graph metrics from demos
This commit is contained in:
parent
dca58ff97b
commit
1fc381e51b
2 changed files with 2 additions and 11 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue