AI Slop Code RIsk Monitor

topoteretes/cognee

Cognee is the open-source AI memory platform for agents. Give your AI agents persistent long-term memory with small models for free

29.6 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for topoteretes/cognee, a Python project with 31,974 GitHub stars. SynthScan examined 630,364 lines of code across 3874 source files, recording 14481 pattern matches distributed across 26 syntactic categories. The legacy adjusted pattern signal is 29.6 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

29.6
Adjusted Signal
29.6
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
32.0K
Stars
Python
Language
630.4K
Lines of Code
3.9K
Files
14.5K
Pattern Hits
2026-10-12
Scan Date
0.12
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 58.6/100 · HIGH

Can maintainers explain intent, assumptions, and trade-offs? 10208 finding(s).

Hallucinated Dependency & Supply Chain Risk 15.2/100 · LOW

Are imports declared and package/API names verified? 1906 finding(s).

Agent Over-Engineering Ratio 69.5/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 11565 finding(s).

PR Review Velocity Impact 77.2/100 · CRITICAL

Which changes need focused human review? 14481 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 3HIGH 453MEDIUM 929LOW 13096

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 14481 distinct pattern matches across 26 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers9098 hits · 9372 pts
SeverityFileLineSnippetContext
LOWcognee/base_config.py16def _tracing_explicitly_disabled() -> bool:CODE
LOWcognee/base_config.py63 def validate_personalization_knobs(self):CODE
LOWcognee/context_global_variables.py44async def set_session_user_context_variable(user):CODE
LOWcognee/context_global_variables.py48def multi_user_support_possible():CODE
LOWcognee/context_global_variables.py98def backend_access_control_enabled():CODE
LOWcognee/context_global_variables.py177 async def apply_database_context_variables(CODE
LOWcognee/context_global_variables.py403def set_database_global_context_variables(CODE
LOWcognee/run_migrations.py11async def run_relational_migrations():CODE
LOWcognee/tasks/memify/extract_feedback_qas.py24def build_implicit_rating_map(context_rows: Any) -> dict[str, tuple[int, str]]:CODE
LOWcognee/tasks/memify/cognify_agent_trace_feedback.py31async def cognify_agent_trace_feedback(CODE
LOWcognee/tasks/memify/extract_agent_trace_feedbacks.py101async def extract_agent_trace_feedbacks(CODE
LOWcognee/tasks/memify/get_triplet_datapoints.py15def _build_datapoint_type_index_mapping() -> dict[str, list[str]]:CODE
LOWcognee/tasks/memify/get_triplet_datapoints.py74def _extract_relationship_text(CODE
LOW…y/consolidate_entity_descriptions/read_neighborhood.py69def format_edges_with_endpoints(CODE
LOW…y/consolidate_entity_descriptions/read_neighborhood.py154async def get_entities_with_neighborhood(args) -> list[dict[str, Any]]:CODE
LOW…mify/consolidate_entity_descriptions/describe_types.py27async def generate_type_descriptions(CODE
LOW…fy/consolidate_entity_descriptions/rewrite_entities.py50def build_node_neighborhood_prompt(CODE
LOW…fy/consolidate_entity_descriptions/rewrite_entities.py173async def generate_consolidated_entity(CODE
LOW…fy/consolidate_entity_descriptions/rewrite_entities.py202async def generate_consolidated_entities(CODE
LOWcognee/tasks/memify/global_context_index/update.py39def validate_global_context_index_config(CODE
LOWcognee/tasks/memify/global_context_index/update.py66def validate_graph_dataset_context(CODE
LOWcognee/tasks/memify/global_context_index/update.py74async def filter_graph_dataset_text_summaries(CODE
LOWcognee/tasks/memify/global_context_index/update.py93async def select_text_summaries_for_strategy(CODE
LOWcognee/tasks/memify/global_context_index/update.py104async def load_graph_bucketing_data_if_needed(CODE
LOWcognee/tasks/memify/global_context_index/update.py118async def reset_context_index_for_rebuild(CODE
LOWcognee/tasks/memify/global_context_index/update.py133def select_new_context_index_items(CODE
LOWcognee/tasks/memify/global_context_index/update.py142def validate_existing_buckets_for_strategy(CODE
LOWcognee/tasks/memify/global_context_index/update.py177async def prepare_existing_context_index(CODE
LOWcognee/tasks/memify/global_context_index/update.py203async def ensure_graph_bucketing_inputs(CODE
LOWcognee/tasks/memify/global_context_index/update.py220def unpack_graph_bucketing_inputs(CODE
LOWcognee/tasks/memify/global_context_index/update.py228async def build_and_persist_context_index(CODE
LOWcognee/tasks/memify/global_context_index/update.py261async def update_global_context_index(CODE
LOWcognee/tasks/memify/global_context_index/build.py57def source_collection_for_level(level: int) -> str:CODE
LOWcognee/tasks/memify/global_context_index/build.py160def merge_existing_and_new_buckets(CODE
LOWcognee/tasks/memify/global_context_index/persist.py19async def safe_delete_context_vectors(vector_engine: Any, ids: list[str]) -> None:CODE
LOWcognee/tasks/memify/global_context_index/persist.py32async def delete_context_index_nodes(unified_engine: Any, bucket_ids: list[str]) -> None:CODE
LOWcognee/tasks/memify/global_context_index/persist.py39def ensure_global_context_storage_context(CODE
LOWcognee/tasks/memify/global_context_index/persist.py52def build_context_index_edges(assignments: list[BucketAssignment]) -> list:CODE
LOWcognee/tasks/memify/global_context_index/persist.py74async def persist_context_summaries(CODE
LOWcognee/tasks/memify/global_context_index/persist.py85def _context_index_source_ref(ctx: PipelineContext | None) -> tuple[str | None, str | None]:CODE
LOWcognee/tasks/memify/global_context_index/persist.py109async def persist_context_index_edges(CODE
LOWcognee/tasks/memify/global_context_index/summarize.py31async def generate_global_context_summary(children: list[SummaryNode]) -> str:CODE
LOWcognee/tasks/memify/global_context_index/summarize.py35async def build_bucket_summary_datapoint(CODE
LOWcognee/tasks/memify/global_context_index/summarize.py61async def generate_bucket_summary_datapoints(CODE
LOWcognee/tasks/memify/global_context_index/summarize.py71async def build_global_context_summary_datapoint(CODE
LOW⚡cognee/tasks/memify/global_context_index/load.py19def global_context_summary_level(attributes: dict[str, Any]) -> int | None:CODE
LOW⚡cognee/tasks/memify/global_context_index/load.py26def is_root_global_context_summary(attributes: dict[str, Any]) -> bool:CODE
LOW⚡cognee/tasks/memify/global_context_index/load.py35def graph_bucket_entity_ids_from_attributes(CODE
LOWcognee/tasks/memify/global_context_index/load.py50def extract_context_index_input(CODE
LOWcognee/tasks/memify/global_context_index/load.py136def rebuild_child_ids_from_parent_pointers(CODE
LOWcognee/tasks/memify/global_context_index/load.py152async def load_context_index_input_from_graph(CODE
LOWcognee/tasks/memify/global_context_index/load.py160async def get_context_index_memory_fragment() -> CogneeGraph:CODE
LOWcognee/tasks/memify/global_context_index/load.py177async def extract_global_context_index_input(CODE
LOW…/tasks/memify/global_context_index/bucketing/common.py47def mark_bucket_for_persistence(CODE
LOW…/memify/global_context_index/bucketing/graph/inputs.py15async def load_graph_bucketing_inputs(CODE
LOW…/memify/global_context_index/bucketing/graph/inputs.py45def validate_graph_bucketing_inputs(missing_made_from_summary_ids: set[str]) -> None:CODE
LOW…mify/global_context_index/bucketing/graph/placement.py15def rebuild_graph_buckets_for_level(CODE
LOW…mify/global_context_index/bucketing/graph/placement.py76def place_graph_summaries_incrementally(CODE
LOW…mify/global_context_index/bucketing/graph/placement.py151def validate_graph_buckets_can_be_extended(existing_buckets: list[SummaryNode]) -> None:CODE
LOW…mify/global_context_index/bucketing/graph/placement.py161def validate_vector_buckets_can_be_extended(existing_buckets: list[SummaryNode]) -> None:CODE
9038 more matches not shown…
Decorative Section Separators736 hits · 2539 pts
SeverityFileLineSnippetContext
MEDIUMslack-app-manifest.yml8# ── Local testing steps ──────────────────────────────────────────────────COMMENT
MEDIUMcognee/__init__.py37# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/__init__.py39# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/__init__.py73# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/__init__.py75# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/resolve_dlt_sources.py508# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/resolve_dlt_sources.py510# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/linear.py154# ---------------------------------------------------------------------------STRING
MEDIUMcognee/tasks/ingestion/connectors/linear.py156# ---------------------------------------------------------------------------STRING
MEDIUMcognee/tasks/ingestion/connectors/linear.py185# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/linear.py187# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/linear.py316# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/linear.py318# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/linear.py391# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/linear.py393# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/linear.py699# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/linear.py701# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/gmail.py102# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/gmail.py104# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/gmail.py139# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/gmail.py141# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/gmail.py205# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/gmail.py207# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/gmail.py313# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/gmail.py315# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡cognee/tasks/ingestion/connectors/gmail.py392# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡cognee/tasks/ingestion/connectors/gmail.py394# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/gmail.py579# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/gmail.py581# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/notion.py125# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/notion.py127# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/notion.py259# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/notion.py261# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/notion.py469# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/notion.py471# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/notion.py718# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/notion.py720# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/google_drive.py100# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/google_drive.py102# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/google_drive.py197# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/google_drive.py199# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/google_drive.py259# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/google_drive.py261# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/google_drive.py597# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/google_drive.py599# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_delete_two_documents_empty_store.py136 # ------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_delete_two_documents_empty_store.py140 # ------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_delete_two_documents_empty_store.py220 # ------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_delete_two_documents_empty_store.py222 # ------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_delete_two_documents_empty_store.py297 # ------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_delete_two_documents_empty_store.py299 # ------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_delete_two_documents_empty_store.py313 # ------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_delete_two_documents_empty_store.py315 # ------------------------------------------------------------------COMMENT
MEDIUM⚡cognee/tests/test_video_loader.py94# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡cognee/tests/test_video_loader.py96# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡cognee/tests/test_video_loader.py123# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡cognee/tests/test_video_loader.py125# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡cognee/tests/test_video_loader.py282# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡cognee/tests/test_video_loader.py284# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡cognee/tests/test_video_loader.py330# ---------------------------------------------------------------------------COMMENT
676 more matches not shown…
Unused Imports1765 hits · 1664 pts
SeverityFileLineSnippetContext
LOWcognee/__init__.py40CODE
LOWcognee/__init__.py41CODE
LOWcognee/__init__.py42CODE
LOWcognee/__init__.py43CODE
LOWcognee/__init__.py44CODE
LOWcognee/__init__.py45CODE
LOWcognee/__init__.py46CODE
LOWcognee/__init__.py47CODE
LOWcognee/__init__.py48CODE
LOWcognee/__init__.py49CODE
LOWcognee/__init__.py50CODE
LOWcognee/__init__.py50CODE
LOWcognee/__init__.py51CODE
LOWcognee/__init__.py52CODE
LOWcognee/__init__.py52CODE
LOWcognee/__init__.py52CODE
LOWcognee/__init__.py52CODE
LOWcognee/__init__.py53CODE
LOWcognee/__init__.py53CODE
LOWcognee/__init__.py53CODE
LOWcognee/__init__.py53CODE
LOWcognee/__init__.py53CODE
LOWcognee/__init__.py60CODE
LOWcognee/__init__.py63CODE
LOWcognee/__init__.py64CODE
LOWcognee/__init__.py67CODE
LOWcognee/__init__.py68CODE
LOWcognee/__init__.py71CODE
LOWcognee/__init__.py76CODE
LOWcognee/__init__.py76CODE
LOWcognee/__init__.py76CODE
LOWcognee/__init__.py76CODE
LOWcognee/__init__.py76CODE
LOWcognee/__init__.py76CODE
LOWcognee/__init__.py76CODE
LOWcognee/__init__.py76CODE
LOWcognee/__init__.py76CODE
LOWcognee/__init__.py76CODE
LOWcognee/__init__.py76CODE
LOWcognee/__init__.py76CODE
LOWcognee/__init__.py90CODE
LOWcognee/__init__.py90CODE
LOWcognee/__init__.py90CODE
LOWcognee/__init__.py90CODE
LOWcognee/__init__.py94CODE
LOWcognee/__init__.py98CODE
LOWcognee/__init__.py101CODE
LOWcognee/__init__.py101CODE
LOWcognee/__init__.py101CODE
LOWcognee/__init__.py101CODE
LOWcognee/__init__.py101CODE
LOWcognee/__init__.py110CODE
LOWcognee/__init__.py113CODE
LOWcognee/__init__.py116CODE
LOWcognee/__init__.py116CODE
LOWcognee/__init__.py117CODE
LOWcognee/__init__.py118CODE
LOWcognee/__init__.py119CODE
LOWcognee/low_level.py1CODE
LOWcognee/low_level.py1CODE
1705 more matches not shown…
Cross-File Repetition214 hits · 1070 pts
SeverityFileLineSnippetContext
HIGHcognee/tasks/summarization/exceptions/__init__.py0custom exceptions for the cognee api. this module defines a set of exceptions for handling various user errorsSTRING
HIGHcognee/tasks/graph/exceptions/__init__.py0custom exceptions for the cognee api. this module defines a set of exceptions for handling various user errorsSTRING
HIGHcognee/tasks/storage/exceptions/__init__.py0custom exceptions for the cognee api. this module defines a set of exceptions for handling various user errorsSTRING
HIGHcognee/tasks/documents/exceptions/__init__.py0custom exceptions for the cognee api. this module defines a set of exceptions for handling various user errorsSTRING
HIGHcognee/api/v1/exceptions/__init__.py0custom exceptions for the cognee api. this module defines a set of exceptions for handling various user errorsSTRING
HIGHcognee/infrastructure/data/exceptions/__init__.py0custom exceptions for the cognee api. this module defines a set of exceptions for handling various user errorsSTRING
HIGHcognee/modules/ontology/exceptions/__init__.py0custom exceptions for the cognee api. this module defines a set of exceptions for handling various user errorsSTRING
HIGHcognee/modules/search/exceptions/__init__.py0custom exceptions for the cognee api. this module defines a set of exceptions for handling various user errorsSTRING
HIGHcognee/modules/retrieval/exceptions/__init__.py0custom exceptions for the cognee api. this module defines a set of exceptions for handling various user errorsSTRING
HIGHcognee/modules/data/exceptions/__init__.py0custom exceptions for the cognee api. this module defines a set of exceptions for handling various user errorsSTRING
HIGHcognee/tasks/completion/exceptions/__init__.py0custom exceptions for the cognee api. this module defines a set of exceptions for handling various user errorsSTRING
HIGHcognee/infrastructure/databases/exceptions/__init__.py0custom exceptions for the cognee api. this module defines a set of exceptions for handling various user errorsSTRING
HIGHcognee/modules/ingestion/exceptions/__init__.py0custom exceptions for the cognee api. this module defines a set of exceptions for handling various user errorsSTRING
HIGHcognee/modules/graph/exceptions/__init__.py0custom exceptions for the cognee api. this module defines a set of exceptions for handling various user errorsSTRING
HIGHcognee/modules/users/exceptions/__init__.py0custom exceptions for the cognee api. this module defines a set of exceptions for handling various user errorsSTRING
HIGHcognee/tests/test_custom_data_label.py0natural language processing (nlp) is an interdisciplinary subfield of computer science and information retrieval.STRING
HIGHcognee/tests/test_delete_data_and_dataset_if_empty.py0natural language processing (nlp) is an interdisciplinary subfield of computer science and information retrieval.STRING
HIGHcognee/tests/test_dataset_database_handler.py0natural language processing (nlp) is an interdisciplinary subfield of computer science and information retrieval.STRING
HIGHcognee/tests/test_dataset_delete.py0natural language processing (nlp) is an interdisciplinary subfield of computer science and information retrieval.STRING
HIGHexamples/guides/simple_cognee_example.py0natural language processing (nlp) is an interdisciplinary subfield of computer science and information retrieval.STRING
HIGH…os/custom_pipelines/custom_cognify_pipeline_example.py0natural language processing (nlp) is an interdisciplinary subfield of computer science and information retrieval.STRING
HIGHcognee/tests/test_multi_tenancy.py0a quantum computer is a computer that takes advantage of quantum mechanical phenomena. at small scales, physical matter STRING
HIGHcognee/tests/test_permissions.py0a quantum computer is a computer that takes advantage of quantum mechanical phenomena. at small scales, physical matter STRING
HIGH…s/demos/permissions/tenant_role_constraints_example.py0a quantum computer is a computer that takes advantage of quantum mechanical phenomena. at small scales, physical matter STRING
HIGH…issions/user_permissions_and_access_control_example.py0a quantum computer is a computer that takes advantage of quantum mechanical phenomena. at small scales, physical matter STRING
HIGHexamples/demos/permissions/tenant_role_setup_example.py0a quantum computer is a computer that takes advantage of quantum mechanical phenomena. at small scales, physical matter STRING
HIGH…mples/demos/permissions/data_access_control_example.py0a quantum computer is a computer that takes advantage of quantum mechanical phenomena. at small scales, physical matter STRING
HIGH…tests/unit/users/test_parent_reaches_agent_datasets.py0point cognee at a database of its own so these rows never touch dev data.STRING
HIGH…ee/tests/unit/users/test_agents_follow_their_parent.py0point cognee at a database of its own so these rows never touch dev data.STRING
HIGHcognee/tests/unit/users/test_manage_users_capability.py0point cognee at a database of its own so these rows never touch dev data.STRING
HIGH…t/users/permissions/test_get_effective_capabilities.py0point cognee at a database of its own so these rows never touch dev data.STRING
HIGH…rastructure/databases/cache/test_redis_adapter_crud.py0create_qa_entry with used_graph_element_ids stores and returns it.STRING
HIGH…infrastructure/databases/cache/test_fs_adapter_crud.py0create_qa_entry with used_graph_element_ids stores and returns it.STRING
HIGH…nfrastructure/databases/cache/test_sql_adapter_crud.py0create_qa_entry with used_graph_element_ids stores and returns it.STRING
HIGH…rastructure/databases/cache/test_redis_adapter_crud.py0create_qa_entry with invalid used_graph_element_ids (disallowed keys) raises.STRING
HIGH…infrastructure/databases/cache/test_fs_adapter_crud.py0create_qa_entry with invalid used_graph_element_ids (disallowed keys) raises.STRING
HIGH…nfrastructure/databases/cache/test_sql_adapter_crud.py0create_qa_entry with invalid used_graph_element_ids (disallowed keys) raises.STRING
HIGH…rastructure/databases/cache/test_redis_adapter_crud.py0append trace steps and retrieve them as a flat ordered session list.STRING
HIGH…infrastructure/databases/cache/test_fs_adapter_crud.py0append trace steps and retrieve them as a flat ordered session list.STRING
HIGH…nfrastructure/databases/cache/test_sql_adapter_crud.py0append trace steps and retrieve them as a flat ordered session list.STRING
HIGH…rastructure/databases/cache/test_redis_adapter_crud.py0trace count helper returns the number of stored steps.STRING
HIGH…infrastructure/databases/cache/test_fs_adapter_crud.py0trace count helper returns the number of stored steps.STRING
HIGH…nfrastructure/databases/cache/test_sql_adapter_crud.py0trace count helper returns the number of stored steps.STRING
HIGH…rastructure/databases/cache/test_redis_adapter_crud.py0trace persistence sanitizes uuids, datetimes, and custom objects into json-safe values.STRING
HIGH…infrastructure/databases/cache/test_fs_adapter_crud.py0trace persistence sanitizes uuids, datetimes, and custom objects into json-safe values.STRING
HIGH…nfrastructure/databases/cache/test_sql_adapter_crud.py0trace persistence sanitizes uuids, datetimes, and custom objects into json-safe values.STRING
HIGH…rastructure/databases/cache/test_redis_adapter_crud.py0delete_feedback sets feedback_text and feedback_score to none.STRING
HIGH…infrastructure/databases/cache/test_fs_adapter_crud.py0delete_feedback sets feedback_text and feedback_score to none.STRING
HIGH…nfrastructure/databases/cache/test_sql_adapter_crud.py0delete_feedback sets feedback_text and feedback_score to none.STRING
HIGH…rastructure/databases/cache/test_redis_adapter_crud.py0update_qa_entry merges memify_metadata keys instead of replacing the map.STRING
HIGH…infrastructure/databases/cache/test_fs_adapter_crud.py0update_qa_entry merges memify_metadata keys instead of replacing the map.STRING
HIGH…nfrastructure/databases/cache/test_sql_adapter_crud.py0update_qa_entry merges memify_metadata keys instead of replacing the map.STRING
HIGH…rastructure/databases/cache/test_redis_adapter_crud.py0delete the entire session, including qa and trace entries.STRING
HIGH…infrastructure/databases/cache/test_fs_adapter_crud.py0delete the entire session, including qa and trace entries.STRING
HIGH…nfrastructure/databases/cache/test_sql_adapter_crud.py0delete the entire session, including qa and trace entries.STRING
HIGH…rastructure/databases/cache/test_redis_adapter_crud.py0legacy add_qa stores entry with auto-generated qa_id.STRING
HIGH…infrastructure/databases/cache/test_fs_adapter_crud.py0legacy add_qa stores entry with auto-generated qa_id.STRING
HIGH…nfrastructure/databases/cache/test_sql_adapter_crud.py0legacy add_qa stores entry with auto-generated qa_id.STRING
HIGH…rastructure/databases/cache/test_redis_adapter_crud.py0legacy get_all_qas returns same as get_all_qa_entries.STRING
HIGH…infrastructure/databases/cache/test_fs_adapter_crud.py0legacy get_all_qas returns same as get_all_qa_entries.STRING
154 more matches not shown…
Excessive Try-Catch Wrapping1057 hits · 1050 pts
SeverityFileLineSnippetContext
LOWcognee/tasks/codingagents/coding_rule_associations.py86 except Exception as e:CODE
LOWcognee/tasks/memify/cognify_agent_trace_feedback.py118 except Exception as error:CODE
LOWcognee/tasks/memify/extract_agent_trace_feedbacks.py259 except Exception as error:CODE
LOWcognee/tasks/memify/extract_agent_trace_feedbacks.py275 except Exception as error:CODE
LOWcognee/tasks/memify/get_triplet_datapoints.py251 except Exception as e:CODE
LOWcognee/tasks/memify/get_triplet_datapoints.py288 except Exception:CODE
LOWcognee/tasks/memify/consolidate_entities.py426 except Exception as error: # reconstruction is best-effortCODE
LOWcognee/tasks/memify/apply_feedback_weights.py278 except Exception as error:CODE
LOWcognee/tasks/memify/apply_feedback_weights.py394 except Exception as error:CODE
LOWcognee/tasks/memify/cross_connect_entities.py204 except Exception as error:CODE
LOWcognee/tasks/memify/cognify_session.py124 except Exception as e:CODE
LOWcognee/tasks/memify/extract_user_sessions.py109 except Exception as e:CODE
LOWcognee/tasks/memify/extract_user_sessions.py119 except Exception as e:CODE
LOW…mify/consolidate_entity_descriptions/describe_types.py93 except Exception as error:CODE
LOW…fy/consolidate_entity_descriptions/rewrite_entities.py228 except Exception as error:CODE
LOW…completion/entity_extractors/regex_entity_extractor.py68 except Exception:CODE
LOW…y_completion/entity_extractors/llm_entity_extractor.py68 except Exception:CODE
LOWcognee/tasks/ingestion/resolve_dlt_sources.py948 except Exception:CODE
LOWcognee/tasks/ingestion/resolve_dlt_sources.py953 except Exception:CODE
LOW…ee/tasks/ingestion/purge_stale_dlt_source_artifacts.py68 except Exception as error:CODE
LOWcognee/tasks/ingestion/ingest_dlt_source.py129 except Exception as e:CODE
LOWcognee/tasks/ingestion/ingest_dlt_source.py180 except Exception as e:CODE
LOWcognee/tasks/ingestion/ingest_dlt_source.py199 except Exception as e:CODE
LOWcognee/tasks/ingestion/ingest_dlt_source.py371 except Exception as e:CODE
LOWcognee/tasks/ingestion/utils.py28 except Exception:CODE
LOWcognee/tasks/ingestion/connectors/gmail.py369 except Exception as exc:CODE
LOW⚡cognee/tasks/ingestion/connectors/gmail.py387 except Exception as exc: # pragma: no cover - network dependentCODE
LOWcognee/tasks/ingestion/connectors/gmail.py492 except Exception as exc:CODE
LOWcognee/tasks/ingestion/connectors/google_drive.py231 except Exception as exc:CODE
LOWcognee/tasks/ingestion/connectors/google_drive.py324 except Exception as e:CODE
LOWcognee/tasks/ingestion/connectors/google_drive.py395 except Exception as e:CODE
LOWcognee/tasks/ingestion/connectors/google_drive.py458 except Exception as e:CODE
LOWcognee/tasks/ingestion/connectors/google_drive.py478 except Exception as e:CODE
LOWcognee/tasks/ingestion/connectors/google_drive.py507 except Exception as e:CODE
LOWcognee/tasks/web_scraper/default_url_crawler.py127 except Exception:CODE
LOWcognee/tasks/web_scraper/default_url_crawler.py212 except Exception as e:CODE
LOWcognee/tasks/web_scraper/default_url_crawler.py260 except Exception as e:CODE
LOWcognee/tasks/web_scraper/default_url_crawler.py282 except Exception:CODE
LOWcognee/tasks/web_scraper/default_url_crawler.py316 except Exception as exc:CODE
LOWcognee/tasks/web_scraper/default_url_crawler.py380 except Exception as exc:CODE
LOWcognee/tasks/web_scraper/default_url_crawler.py453 except Exception:CODE
LOWcognee/tasks/web_scraper/utils.py101 except Exception as e:CODE
LOWcognee/tasks/translation/translate_content.py172 except Exception:CODE
LOWcognee/tasks/translation/detect_language.py161 except Exception as e:CODE
LOWcognee/tasks/translation/providers/azure_provider.py99 except Exception as e:CODE
LOWcognee/tasks/translation/providers/azure_provider.py184 except Exception as e:CODE
LOWcognee/tasks/translation/providers/llm_provider.py101 except Exception as e:CODE
LOWcognee/tasks/translation/providers/llm_provider.py141 except Exception:CODE
LOWcognee/tasks/translation/providers/google_provider.py40 except Exception as e:CODE
LOWcognee/tasks/translation/providers/google_provider.py50 except Exception as e:CODE
LOWcognee/tasks/translation/providers/google_provider.py99 except Exception as e:CODE
LOWcognee/tasks/translation/providers/google_provider.py155 except Exception as e:CODE
LOWcognee/tasks/presort/check_cognee_status.py81 except Exception as error:CODE
LOWcognee/tasks/presort/relations.py176 except Exception as error: # LLM failures must not abort presortCODE
LOWcognee/tasks/presort/classify_files.py128 except Exception as error: # LLM failures must not abort presortCODE
LOWcognee/tasks/presort/group_files.py181 except Exception as error: # embedding failures must not abort presortCODE
LOWcognee/tasks/presort/detect_duplicates.py44 except Exception as error: # hashing must never abort the scanCODE
LOWcognee/tasks/presort/scan_folder.py118 except Exception as error: # sniffing must never abort the scanCODE
LOWcognee/tasks/presort/detect_pii.py231 except Exception as error: # LLM failures must not abort presortCODE
LOWcognee/tasks/graph/resolve_temporal_contradictions.py108 except Exception as error:CODE
997 more matches not shown…
Empty Error Handlers114 hits · 570 pts
SeverityFileLineSnippetContext
HIGHcognee/tasks/ingestion/data_item_to_text_file.py88except OSError:CODE
HIGHcognee/tests/test_incremental_update_stress.py140except (ImportError, AttributeError):CODE
HIGHcognee/tests/test_docling_slim_loader.py21except ImportError:CODE
HIGHcognee/tests/test_release_multi_user_e2e.py508except (urllib.error.URLError, ConnectionError, TimeoutError):CODE
HIGHcognee/tests/test_release_multi_user_e2e.py556except ProcessLookupError:CODE
HIGHcognee/tests/unit/test_ladybug_requirement.py80except ImportError:CODE
HIGH…tructure/databases/test_subprocess_session_failures.py873except SubprocessTransportError:CODE
HIGH…nit/infrastructure/dataset_queue/test_dataset_queue.py37except (ImportError, AttributeError):CODE
HIGH…nit/infrastructure/dataset_queue/test_dataset_queue.py103except (ImportError, AttributeError):CODE
HIGH…nit/infrastructure/dataset_queue/test_dataset_queue.py147except (ImportError, AttributeError):CODE
HIGH…nit/infrastructure/dataset_queue/test_dataset_queue.py207except (ImportError, AttributeError):CODE
HIGH…nit/infrastructure/dataset_queue/test_dataset_queue.py302except (ImportError, AttributeError):CODE
HIGH…nit/infrastructure/dataset_queue/test_dataset_queue.py421except (ImportError, AttributeError):CODE
HIGH…nit/infrastructure/dataset_queue/test_dataset_queue.py741except RuntimeError:CODE
HIGH…nit/infrastructure/dataset_queue/test_dataset_queue.py328except asyncio.CancelledError:CODE
HIGH…/modules/pipelines/test_telemetry_failure_isolation.py119except (ValueError, RuntimeError):CODE
HIGHcognee/tests/unit/modules/data/test_open_data_file.py106except FileNotFoundError:CODE
HIGHcognee/tests/tasks/translation/providers_test.py83except (TranslationError, ValueError):CODE
HIGHcognee/tests/tasks/translation/providers_test.py149except TranslationError:CODE
HIGHcognee/tests/tasks/translation/config_test.py69except ValidationError:CODE
HIGHcognee/tests/tasks/translation/config_test.py80except ValidationError:CODE
HIGH…ee/tests/integration/tasks/test_update_id_stability.py290except IngestionError:CODE
HIGH…ee/tests/integration/tasks/test_update_id_stability.py69except (ImportError, AttributeError):CODE
HIGH…sts/integration/tasks/test_add_ingestion_regression.py70except (ImportError, AttributeError):CODE
HIGH…ee/tests/integration/tasks/test_dataset_scoped_data.py323except IngestionError:CODE
HIGH…ee/tests/integration/tasks/test_dataset_scoped_data.py66except (ImportError, AttributeError):CODE
HIGH…nee/tests/integration/tasks/test_add_s3_call_counts.py104except (ImportError, AttributeError):CODE
HIGH…ucture/dataset_queue/test_dataset_queue_integration.py27except (ImportError, AttributeError):CODE
HIGH…ucture/dataset_queue/test_dataset_queue_integration.py120except RuntimeError:CODE
HIGH…/tests/cli_tests/cli_unit_tests/test_cli_edge_cases.py609except (AttributeError, CliCommandException):CODE
HIGH…/tests/cli_tests/cli_unit_tests/test_cli_edge_cases.py627except AttributeError:CODE
HIGHcognee/tests/journeys/mock_ai.py230except ValidationError:CODE
HIGHcognee/tests/performance/locust_performance_analysis.py347except FileNotFoundError:CODE
HIGHcognee/tests/performance/locust_performance_analysis.py405except ProcessLookupError:CODE
HIGHcognee/tests/performance/locust_performance_analysis.py328except (urllib.error.URLError, ConnectionError, TimeoutError):CODE
HIGHcognee/tests/performance/locust_performance_analysis.py410except ProcessLookupError:CODE
HIGHcognee/tests/performance/batch_add_cognify_test.py112except (urllib.error.URLError, ConnectionError, TimeoutError):CODE
HIGHcognee/tests/performance/batch_add_cognify_test.py187except FileNotFoundError:CODE
HIGHcognee/tests/performance/batch_add_cognify_test.py227except ProcessLookupError:CODE
HIGHcognee/tests/performance/batch_add_cognify_test.py232except ProcessLookupError:CODE
HIGH…/e2e/docker/test_docker_multi_tenant_access_control.py146except httpx.HTTPError:CODE
HIGH…/e2e/incremental_update/test_legacy_chunk_id_compat.py81except (ImportError, AttributeError):CODE
HIGH…ts/e2e/incremental_update/test_chunk_ownership_refs.py74except (ImportError, AttributeError):CODE
HIGH…2e/incremental_update/test_chunk_budget_persistence.py70except (ImportError, AttributeError):CODE
HIGH…e/incremental_update/test_chunk_ownership_semantics.py106except (ImportError, AttributeError):CODE
HIGH…ests/e2e/incremental_update/test_update_chunk_index.py67except (ImportError, AttributeError):CODE
HIGH…ee/tests/e2e/incremental_update/test_staged_publish.py76except (ImportError, AttributeError):CODE
HIGH…s/e2e/incremental_update/test_add_existing_document.py60except (ImportError, AttributeError):CODE
HIGH…/incremental_update/test_update_fallback_durability.py65except (ImportError, AttributeError):CODE
HIGH…ests/e2e/incremental_update/test_incremental_update.py75except (ImportError, AttributeError):CODE
HIGHcognee/tests/e2e/serve_routing/test_serve_routing.py89except (ImportError, AttributeError):CODE
HIGHcognee/shared/utils.py660except RuntimeError:CODE
HIGHcognee/shared/logging_utils.py121except OSError: # not writable here, try the next candidateCODE
HIGHcognee/shared/logging_utils.py129except OSError: # not writable here, fall through to the next candidateCODE
HIGHcognee/shared/logging_utils.py411except Exception:CODE
HIGHcognee/cli/_cognee.py271except (BrokenPipeError, OSError):CODE
HIGHcognee/cli/_cognee.py285except (BrokenPipeError, OSError):CODE
HIGHcognee/cli/_cognee.py292except (BrokenPipeError, OSError):CODE
HIGHcognee/eval_framework/beam/eval/metrics/kendall_tau.py97except json.JSONDecodeError:CODE
HIGHcognee/eval_framework/beam/eval/metrics/kendall_tau.py126except (json.JSONDecodeError, ValueError):CODE
54 more matches not shown…
Docstring Block Structure59 hits · 295 pts
SeverityFileLineSnippetContext
HIGHcognee/tasks/memify/extract_agent_trace_feedbacks.py107 Extract not-yet-persisted agent trace steps for the current user. For each session, reads the trace persist waSTRING
HIGHcognee/tasks/memify/extract_user_sessions.py18 Extract not-yet-persisted Q&A entries for the current user via SessionManager. For each session, reads the perSTRING
HIGHcognee/tasks/web_scraper/web_scraper_task.py56Schedule or run a web scraping task. This function schedules a recurring web scraping task using APScheduler or runSTRING
HIGHcognee/tasks/web_scraper/web_scraper_task.py138Scrape URLs and store data points in a Graph database. This function scrapes content from the provided URLs, createSTRING
HIGHcognee/tasks/web_scraper/web_scraper_task.py357Validate and configure arguments for web_scraper_task. Args: tavily_api_key: API key for Tavily. exSTRING
HIGHcognee/tasks/web_scraper/web_scraper_task.py400Extract the path after the base URL. Args: base_url: The base URL (e.g., "https://example.com"). urSTRING
HIGHcognee/tasks/web_scraper/default_url_crawler.py190Fetch and cache robots.txt data. Args: domain_root: The root URL (e.g., "https://example.com"). STRING
HIGHcognee/tasks/web_scraper/default_url_crawler.py289Fetch a URL using HTTPX with retries. Args: url: The URL to fetch. Returns: stSTRING
HIGHcognee/tasks/web_scraper/default_url_crawler.py331Fetch and render a URL using Playwright for JavaScript content. Args: url: The URL to fetch. STRING
HIGHcognee/tasks/web_scraper/default_url_crawler.py398Fetch and extract content from URLs using BeautifulSoup or Playwright. Args: urls: A single URL, liSTRING
HIGHcognee/tasks/web_scraper/utils.py28Fetch content from one or more URLs using the specified tool. This function retrieves web page content using BeautiSTRING
HIGHcognee/tasks/web_scraper/utils.py117Fetch content from URLs using the Tavily API. Args: urls: A single URL (str) or a list of URLs (List[str]) STRING
HIGHcognee/tasks/web_scraper/utils.py177Fetch content from URLs using the Keenable API. Uses Keenable's /v1/fetch endpoint (https://docs.keenable.ai) to exSTRING
HIGHcognee/tasks/translation/detect_language.py92 Detect the language of the given text. Uses the langdetect library which is already a dependency of cognee. STRING
HIGHcognee/tasks/translation/providers/__init__.py17 Factory function to get the appropriate translation provider. Args: provider_name: Name of the provideSTRING
HIGHcognee/tasks/graph/extract_graph_from_data.py127Convert extracted graphs into linked data points for later storage. Graphs take the pure construction path when no STRING
HIGHcognee/tasks/chunks/create_chunk_associations.py110Create semantic association edges between document chunks in the knowledge graph. For each valid chunk, performs a STRING
HIGHcognee/shared/usage_logger.py321Inner decorator that wraps the function with usage logging. Args: func: The async function to wrap STRING
HIGHcognee/shared/usage_logger.py342Wrapper function that executes the original function and logs usage. This wrapper: - Extracts uSTRING
HIGHcognee/api/v1/ontologies/ontologies.py124 Upload ontology files with their respective keys. Args: ontology_key: List of unique keys STRING
HIGHcognee/api/v1/ontologies/ontologies.py159 Retrieve ontology content for one or more keys. Args: ontology_key: List of ontology keys STRING
HIGHcognee/api/v1/visualize/start_visualization_server.py7 Start a visualization server on the specified port. Args: port (int): The port number to run the serveSTRING
HIGHcognee/api/v1/search/search.py73 Search and query the knowledge graph for insights, information, and connections. This is the final step in theSTRING
HIGHcognee/api/v1/serve/serve.py26Connect the local Cognee SDK to a remote or local Cognee instance. Two modes: **Local / direct mode** — when `STRING
HIGHcognee/api/v1/sync/sync.py108 Sync local Cognee data to Cognee Cloud. This function handles synchronization of multiple datasets, knowledge STRING
HIGH…gnee/infrastructure/databases/graph/ladybug/adapter.py3963 Retrieve a batch of triplets (start_node, relationship, end_node) from the graph. Parameters: STRING
HIGH…ucture/databases/graph/neptune_driver/neptune_utils.py17 Parse a Neptune Analytics URL to extract graph ID and region. Expected format: neptune-graph://<GRAPH_ID>?regiSTRING
HIGH…ucture/databases/graph/neptune_driver/neptune_utils.py110 Build a configuration dictionary for Neptune Analytics connection. Parameters: ----------- - graphSTRING
HIGH…utput_framework/litellm_instructor/llm/rate_limiter.py237 Manage rate limiting for the wrapped function's execution. This decorator checks if the rate limit forSTRING
HIGH…utput_framework/litellm_instructor/llm/rate_limiter.py286 Handle rate limiting for LLM API calls in an asynchronous context. This wrapper function first ensuresSTRING
HIGH…utput_framework/litellm_instructor/llm/rate_limiter.py413 Handle retries for a function call in case of errors, specifically for rate limit errors. STRING
HIGH…utput_framework/litellm_instructor/llm/rate_limiter.py499 Handle retries for a given async function in case of errors, with rate limit check and backoff STRING
HIGH…tput_framework/litellm_instructor/llm/llm_interface.py55 Generate an audio transcript from a user query. This method creates a transcript from the specified auSTRING
HIGHcognee/infrastructure/engine/models/DataPoint.py375 Convert the DataPoint instance to a dictionary representation. This method uses the model's built-in fSTRING
HIGHcognee/infrastructure/loaders/LoaderInterface.py77 Load and process the file, returning standardized result. Args: file_path: Path to the filSTRING
HIGHcognee/infrastructure/loaders/core/video_loader.py120 Load and process the video file. Args: file_path: Path to the file to load **kSTRING
HIGHcognee/infrastructure/loaders/core/csv_loader.py50 Load and process the csv file. Args: file_path: Path to the file to load encodSTRING
HIGHcognee/infrastructure/loaders/core/audio_loader.py69 Load and process the audio file. Args: file_path: Path to the file to load **kSTRING
HIGHcognee/infrastructure/loaders/core/image_loader.py88 Transcribe the image and return the extracted text. When IMAGE_EXIF_ENABLED=true, extracts EXIF metadaSTRING
HIGHcognee/infrastructure/loaders/core/text_loader.py57 Load and process the text file. Args: file_path: Path to the file to load encoSTRING
HIGH…frastructure/loaders/external/beautiful_soup_loader.py235Normalize an extraction rule to an ExtractionRule dataclass. Args: rule: A string (CSS selector) orSTRING
HIGH…frastructure/loaders/external/beautiful_soup_loader.py265Extract content from a BeautifulSoup parsed document. Args: soup: BeautifulSoup parsed document. STRING
HIGHcognee/infrastructure/loaders/external/pypdf_loader.py40 Load PDF file and extract text content. Args: file_path: Path to the PDF file STRING
HIGH…infrastructure/loaders/external/unstructured_loader.py77 Load document using unstructured library. Args: file_path: Path to the document file STRING
HIGHcognee/modules/tools/execute_tool.py38 Execute a tool call with permission and scope enforcement. Args: user: Authenticated user; permission STRING
HIGH…gnee/modules/ontology/get_default_ontology_resolver.py67 Create and return an ontology resolver instance based on environment parameters. Currently, this function suppSTRING
HIGHcognee/modules/search/methods/search.py80Run one search type over the datasets a user may read and return per-dataset results. This is the internal entry poSTRING
HIGH…ules/retrieval/utils/description_to_codepart_search.py29 Maps a code description query to relevant code parts using a CodeGraph pipeline. Args: query (str): ThSTRING
HIGH…les/users/capabilities/methods/get_capability_scope.py13 Work out which tenant a capability change on this principal targets. Derived when the principal carrieSTRING
HIGH…ities/methods/authorized_get_effective_capabilities.py10 Return the capabilities the requester has in a tenant they belong to. Capabilities are tenant-scoped aSTRING
HIGHcognee/modules/users/roles/methods/create_role.py18 Create a new role with the given name in the request owner's current tenant, if they can manage users iSTRING
HIGHcognee/modules/users/roles/methods/add_user_to_role.py28 Add a user with the given id to the role with the given id, if the request owner can manage users in thSTRING
HIGH…/permissions/methods/has_user_management_permission.py10 Check if requester is allowed to manage users for a tenant. The requester is allowed if they hold the MANAGE_USTRING
HIGH…rmissions/methods/authorized_get_principal_datasets.py21 Return the datasets a principal holds a permission on, if the requester is allowed to ask about that prSTRING
HIGH…ules/users/permissions/methods/has_grant_permission.py16 Check if requester holds a capability in a tenant. The requester is allowed if the capability was granted to tSTRING
HIGH…users/permissions/methods/require_tenant_membership.py12 Assert that the user belongs to the tenant, for endpoints that take a tenant_id straight from the requeSTRING
HIGH…ee/modules/users/tenants/methods/add_user_to_tenant.py20 Add a user with the given id to the tenant with the given id. This can only be successful if the requesSTRING
HIGHcognee/modules/sync/methods/update_sync_operation.py16 Retry database operations with exponential backoff for transient failures. Args: operation_func: AsyncSTRING
HIGHcognee/modules/data/methods/get_data.py19Retrieve data by ID. Every id ever issued keeps resolving. With ``dataset_id`` the lookup is precise: exact id STRING
Over-Commented Block270 hits · 256 pts
SeverityFileLineSnippetContext
LOWpyproject.toml81 # onnxruntime 1.23.2 only ships wheels through cp313; cp314 wheels startCOMMENT
LOWpyproject.toml301[tool.uv]COMMENT
LOWslack-app-manifest.yml1# Slack app manifest for the Cognee Slack integration.COMMENT
LOWslack-app-manifest.yml21# http://localhost:3000.COMMENT
LOWdocker-compose.yml81 # Same storage volumes as the main service: shared memory between theCOMMENT
LOWentrypoint.sh21# initial revision carries the frozen base schema — no stamp is written;COMMENT
LOWcognee/base_config.py41 # Deliberately higher than the 0.1 used for global feedback_weight: a globalCOMMENT
LOWcognee/alembic.ini1# A generic, single database configuration.COMMENT
LOWcognee/alembic.ini21# Any required deps can installed by adding `alembic[tz]` to the pip requirementsCOMMENT
LOWcognee/alembic.ini41# The path separator used here should be the separator specified by "version_path_separator" below.COMMENT
LOWcognee/alembic.ini61# are written from script.py.makoCOMMENT
LOWcognee/context_global_variables.py221 except BaseException:COMMENT
LOW…ks/memify/consolidate_entity_descriptions/constants.py21# One cap per job, because the three jobs bound different things.COMMENT
LOW…ks/memify/consolidate_entity_descriptions/constants.py41# type summary and the merge - returns one short paragraph (~500 chars, ~125COMMENT
LOWcognee/tasks/ingestion/save_data_item_to_storage.py101 elif (COMMENT
LOWcognee/tasks/ingestion/resolve_dlt_sources.py281 # failed between deletion and commit, the orphans would be gone and theCOMMENT
LOWcognee/tasks/ingestion/resolve_dlt_sources.py921 # datasets.delete_data routing). Without it, cleanup resolves the *default*COMMENT
LOWcognee/tasks/ingestion/config.py1from functools import lru_cacheCOMMENT
LOWcognee/tasks/ingestion/config.py21 # Env: DLT_COLUMN_VALUE_COLUMNS as JSON, or add(..., column_value_columns=...).COMMENT
LOWcognee/tasks/ingestion/connectors/google_drive.py701 # Opt into the document ingestion path: each file row (id/title/content/url)COMMENT
LOWcognee/tasks/graph/gliner_demo/extractor.py81COMMENT
LOWcognee/tasks/storage/add_data_points.py141 else:COMMENT
LOWcognee/tasks/storage/add_data_points.py201 await session.commit()COMMENT
LOWcognee/tasks/code_graph/code_files.py21COMMENT
LOWcognee/tests/unit/infrastructure/llm/test_llm_config.py201 # Adapters now derive their default from the table. OpenAIAdapter is usedCOMMENT
LOWcognee/tests/e2e/bundled_extension/run_offline_e2e.sh1#!/usr/bin/env bashCOMMENT
LOWcognee/shared/utils.py121 return persistent_idCOMMENT
LOWcognee/shared/utils.py661 # No running event loop (shutdown, sync context, etc.) — telemetry isCOMMENT
LOWcognee/shared/logging_utils.py161 self.stream = self._open()COMMENT
LOWcognee/exceptions/remediation.py41from __future__ import annotationsCOMMENT
LOWcognee/api/client.py81# Keeps the WebSocket ?token= auth fallback out of uvicorn's own access/errorCOMMENT
LOWcognee/api/v1/update/incremental.py621COMMENT
LOWcognee/api/v1/update/incremental.py1061 for chunk_id, index in plan.reused.items()COMMENT
LOWcognee/api/v1/responses/default_tools.py121 },COMMENT
LOWcognee/api/v1/visualize/live_updates.py81# that. Not single-flighted: a handful of connections racing a cache refreshCOMMENT
LOWcognee/api/v1/visualize/memory_provenance.py801 # A dataset scope is a caller who may read only some of the workspace,COMMENT
LOWcognee/api/v1/cognify/cognify.py481 # requires — DLT-source manifests run the deterministic DLT list, codeCOMMENT
LOWcognee/api/v1/recall/recall.py461COMMENT
LOWcognee/api/v1/recall/query_router.py61# `for` takes a quantity as readily as a date (`for 2000 users`, `for 1500COMMENT
LOW…api/v1/integrations/routers/get_integrations_router.py301# so a relayed authorize link completed by somebody else is refused instead ofCOMMENT
LOWcognee/api/v1/serve/cloud_client.py61 self.service_url = service_url.rstrip("/")COMMENT
LOWcognee/alembic/env.py21# This line sets up loggers basically. Programmatic invocations (cognee'sCOMMENT
LOWcognee/infrastructure/locks/session_lock.py101 yieldCOMMENT
LOW…e/databases/relational/sqlalchemy/SqlAlchemyAdapter.py121 # deadlock against another reader's lock. Because cognify() fansCOMMENT
LOW…e/infrastructure/databases/graph/graph_db_interface.py121 ``supports_incremental_chunk_updates``. A new backend also needs aCOMMENT
LOW…gnee/infrastructure/databases/graph/ladybug/adapter.py61# Rows per bulk MERGE statement (same convention as the Postgres/TursoCOMMENT
LOW…gnee/infrastructure/databases/graph/ladybug/adapter.py381 # this — see ``close()``'s docstring for the cross-loop reason.COMMENT
LOW…gnee/infrastructure/databases/graph/ladybug/adapter.py701 # Submit + check-closed atomically underCOMMENT
LOW…gnee/infrastructure/databases/graph/ladybug/adapter.py961 # Idempotent — a second close() sees the flag and returns.COMMENT
LOW…gnee/infrastructure/databases/graph/ladybug/adapter.py3561COMMENT
LOW…tabases/graph/ladybug/LadybugDatasetDatabaseHandler.py61 base_config.system_root_directory, "databases", str(dataset_database.owner_id)COMMENT
LOW…abases/graph/turso/TursoGraphDatasetDatabaseHandler.py81 # handler name by apply_database_context_variables) differs from theCOMMENT
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py61# ------------------------------------------------------------------COMMENT
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py601 return await self.query(query, params)COMMENT
LOW…ture/databases/utils/get_or_create_dataset_database.py101 if existing_dataset_database:COMMENT
LOW…ee/infrastructure/databases/utils/closing_lru_cache.py141COMMENT
LOW…ee/infrastructure/databases/utils/closing_lru_cache.py281 # ``logger.warning`` channel as the ``asyncio.run()`` branch. WithoutCOMMENT
LOW…ee/infrastructure/databases/utils/closing_lru_cache.py501 self._lock = Lock()COMMENT
LOW…ee/infrastructure/databases/utils/closing_lru_cache.py701 asyncio.get_running_loop()COMMENT
LOW…nfrastructure/databases/vector/create_vector_engine.py321# ``.aevict_for_database``.COMMENT
210 more matches not shown…
Deep Nesting272 hits · 251 pts
SeverityFileLineSnippetContext
LOWcognee/tasks/codingagents/coding_rule_associations.py55CODE
LOWcognee/tasks/memify/extract_agent_trace_feedbacks.py101CODE
LOWcognee/tasks/memify/get_triplet_datapoints.py15CODE
LOWcognee/tasks/memify/get_triplet_datapoints.py177CODE
LOWcognee/tasks/memify/consolidate_entities.py96CODE
LOWcognee/tasks/memify/consolidate_entities.py134CODE
LOWcognee/tasks/memify/apply_feedback_weights.py108CODE
LOWcognee/tasks/memify/extract_user_sessions.py14CODE
LOW…fy/consolidate_entity_descriptions/rewrite_entities.py50CODE
LOW…ify/global_context_index/bucketing/vector/placement.py179CODE
LOWcognee/tasks/ingestion/save_data_item_to_storage.py49CODE
LOWcognee/tasks/ingestion/resolve_dlt_sources.py341CODE
LOWcognee/tasks/ingestion/extract_dlt_source_edges.py24CODE
LOWcognee/tasks/ingestion/resolve_data_directories.py24CODE
LOWcognee/tasks/ingestion/ingest_data.py143CODE
LOWcognee/tasks/ingestion/ingest_data.py181CODE
LOWcognee/tasks/ingestion/data_item_to_text_file.py48CODE
LOWcognee/tasks/ingestion/migrate_relational_database.py155CODE
LOWcognee/tasks/ingestion/connectors/linear.py463CODE
LOWcognee/tasks/ingestion/connectors/gmail.py447CODE
LOWcognee/tasks/ingestion/connectors/notion.py321CODE
LOWcognee/tasks/ingestion/connectors/google_drive.py262CODE
LOWcognee/tasks/ingestion/connectors/google_drive.py364CODE
LOWcognee/tasks/web_scraper/default_url_crawler.py328CODE
LOWcognee/tasks/web_scraper/utils.py21CODE
LOWcognee/tasks/presort/check_cognee_status.py25CODE
LOWcognee/tasks/presort/relations.py202CODE
LOWcognee/tasks/presort/group_files.py141CODE
LOWcognee/tasks/graph/gliner_demo/mapping.py104CODE
LOWcognee/tasks/storage/add_data_points.py70CODE
LOWcognee/tasks/storage/chunk_ownership.py142CODE
LOWcognee/tasks/chunks/chunk_by_sentence.py37CODE
LOWcognee/tasks/provenance/record_provenance.py99CODE
LOWcognee/tasks/code_graph/code_repo.py167CODE
LOWcognee/tasks/code_graph/enola.py339CODE
LOWcognee/tasks/code_graph/extract_code_graph.py359CODE
LOWcognee/tests/test_relational_db_migration.py49CODE
LOWcognee/tests/test_relational_db_migration.py215CODE
LOWcognee/tests/test_incremental_update_stress.py373CODE
LOWcognee/tests/test_release_multi_user_e2e.py501CODE
LOWcognee/tests/unit/test_telemetry_aggregate_extract.py354CODE
LOW…ee/tests/unit/exceptions/test_cognee_error_contract.py120CODE
LOW…ee/tests/unit/api/test_cognee_api_error_propagation.py70CODE
LOW…e/tests/unit/infrastructure/llm/test_litellm_native.py213CODE
LOW…sts/unit/modules/chunking/test_incremental_chunking.py83CODE
LOW…sts/unit/modules/chunking/test_incremental_chunking.py155CODE
LOWcognee/tests/unit/modules/chunking/test_diff_spans.py102CODE
LOW…infrastructure/session/test_session_sdk_integration.py60CODE
LOWcognee/tests/utils/filter_overlapping_entities.py1CODE
LOWcognee/tests/utils/filter_overlapping_relationships.py4CODE
LOWcognee/tests/journeys/_support.py98CODE
LOWcognee/tests/journeys/_support.py289CODE
LOWcognee/tests/journeys/_support.py109CODE
LOWcognee/tests/performance/locust_performance_analysis.py321CODE
LOWcognee/tests/performance/batch_add_cognify_test.py105CODE
LOW…ests/performance/statistics_percentile/capture_mock.py82CODE
LOW…ests/performance/statistics_percentile/bench_cognee.py490CODE
LOW…ests/performance/statistics_percentile/bench_cognee.py656CODE
LOW…ests/performance/statistics_percentile/bench_cognee.py722CODE
LOW…ts/e2e/incremental_update/test_chunk_ownership_refs.py115CODE
212 more matches not shown…
Modern Structural Boilerplate239 hits · 241 pts
SeverityFileLineSnippetContext
LOW…sks/memify/consolidate_entity_descriptions/__init__.py5__all__ = [CODE
LOW…s/memify/consolidate_entity_descriptions/type_links.py53def set_type_links(entity: Entity, entity_types: list[EntityType]) -> None:CODE
LOWcognee/tasks/memify/global_context_index/__init__.py4__all__ = ["extract_global_context_index_input", "update_global_context_index"]CODE
LOW…e/tasks/ingestion/refuse_changed_existing_documents.py135__all__ = ["refuse_changed_existing_documents"]CODE
LOWcognee/tasks/ingestion/migrate_relational_database.py15logger = logging.getLogger(__name__)CODE
LOWcognee/tasks/ingestion/connectors/linear.py65logger = logging.getLogger(__name__)CODE
LOWcognee/tasks/ingestion/connectors/__init__.py14__all__ = [CODE
LOWcognee/tasks/web_scraper/__init__.py29__all__ = [CODE
LOWcognee/tasks/translation/__init__.py67__all__ = [CODE
LOWcognee/tasks/translation/providers/__init__.py6__all__ = [CODE
LOWcognee/tasks/presort/__init__.py29__all__ = [CODE
LOWcognee/tasks/graph/gliner_demo/__init__.py55__all__ = [CODE
LOWcognee/tasks/storage/close_node.py14logger = logging.getLogger(__name__)CODE
LOWcognee/tasks/provenance/__init__.py3__all__ = ["record_provenance"]CODE
LOWcognee/tasks/documents/extract_chunks_from_documents.py17async def update_document_token_count(document_id: UUID, token_count: int) -> None:CODE
LOWcognee/memory/__init__.py11__all__ = [CODE
LOWcognee/tests/test_chunk_associations.py15logger = logging.getLogger(__name__)CODE
LOWcognee/tests/test_incremental_update_stress.py97def _setup_environment() -> None:CODE
LOWcognee/tests/test_delete_by_id.py13logger = logging.getLogger(__name__)CODE
LOWcognee/tests/test_search_db.py33logger = logging.getLogger(__name__)CODE
LOWcognee/tests/test_agent_memory_e2e.py20logger = logging.getLogger(__name__)CODE
LOWcognee/tests/test_subprocess_rss.py114logger = logging.getLogger(__name__)CODE
LOWcognee/tests/test_usage_logger_e2e.py15logger = logging.getLogger(__name__)CODE
LOWcognee/tests/test_permissions.py29logger = logging.getLogger(__name__)CODE
LOW⚡cognee/tests/unit/conftest.py26logger = logging.getLogger(__name__)CODE
LOWcognee/tests/unit/processing/chunks/test_input.py112__all__ = ["pad"]CODE
LOW…ee/tests/unit/exceptions/test_cognee_error_contract.py33logger = logging.getLogger(__name__)CODE
LOW…/tests/unit/infrastructure/test_rate_limiting_retry.py11logger = logging.getLogger(__name__)CODE
LOW…ucture/databases/test_subprocess_session_concurrent.py32logger = logging.getLogger(__name__)CODE
LOW…tructure/databases/test_subprocess_session_failures.py32logger = logging.getLogger(__name__)CODE
LOW…ucture/databases/test_index_schema_reference_fields.py13logger = logging.getLogger(__name__)CODE
LOW…ses/provenance/test_unified_graph_provenance_delete.py136 async def set_graph_metadata(self, metadata: dict[str, str]) -> None:CODE
LOW⚡cognee/tests/unit/modules/graph/test_graph_methods.py41logger = logging.getLogger(__name__)CODE
LOW⚡…ests/unit/modules/observability/test_memory_semconv.py12logger = logging.getLogger(__name__)CODE
LOW…dules/retrieval/graph_completion_retriever_cot_test.py14logger = logging.getLogger(__name__)CODE
LOW…ests/unit/modules/retrieval/temporal_retriever_test.py13logger = logging.getLogger(__name__)CODE
LOW…e/tests/integration/tasks/test_dlt_background_mixed.py30logger = logging.getLogger(__name__)CODE
LOWcognee/tests/integration/tasks/test_add_data_points.py17logger = logging.getLogger(__name__)CODE
LOW…ts/integration/tasks/test_cognify_rollback_recovery.py37logger = logging.getLogger(__name__)CODE
LOW…integration/tasks/test_timestamp_datapoints_storage.py29logger = logging.getLogger(__name__)CODE
LOW…gration/tasks/test_consolidate_entities_integration.py39logger = logging.getLogger(__name__)CODE
LOW…ntegration/tasks/test_add_foreground_orphan_cleanup.py25logger = logging.getLogger(__name__)CODE
LOW…nee/tests/integration/tasks/test_add_s3_call_counts.py32logger = logging.getLogger(__name__)CODE
LOW…ntegration/tasks/test_dlt_orphan_graph_vector_purge.py39logger = logging.getLogger(__name__)CODE
LOW…e/tests/integration/tasks/test_dlt_csv_loader_route.py30logger = logging.getLogger(__name__)CODE
LOW…ests/integration/tasks/test_dlt_stable_id_reprocess.py31logger = logging.getLogger(__name__)CODE
LOW…ts/integration/shared/test_usage_logger_integration.py20logger = logging.getLogger(__name__)CODE
LOW…integration/retrieval/test_rag_completion_retriever.py19logger = logging.getLogger(__name__)CODE
LOW…tests/integration/retrieval/test_temporal_retriever.py16logger = logging.getLogger(__name__)CODE
LOW…l/test_graph_completion_retriever_context_extension.py16logger = logging.getLogger(__name__)CODE
LOW…/tests/integration/retrieval/test_triplet_retriever.py15logger = logging.getLogger(__name__)CODE
LOW…tegration/retrieval/test_graph_completion_retriever.py14logger = logging.getLogger(__name__)CODE
LOW…ieval/test_graph_completion_decomposition_retriever.py20logger = logging.getLogger(__name__)CODE
LOW…ests/integration/retrieval/test_only_context_prompt.py24logger = logging.getLogger(__name__)CODE
LOW…/tests/integration/retrieval/test_structured_output.py24logger = logging.getLogger(__name__)CODE
LOW…ests/integration/retrieval/test_summaries_retriever.py18logger = logging.getLogger(__name__)CODE
LOW…rieval/test_brute_force_triplet_search_with_cognify.py14logger = logging.getLogger(__name__)CODE
LOW…e/tests/integration/retrieval/test_chunks_retriever.py18logger = logging.getLogger(__name__)CODE
LOW…nee/tests/integration/retrieval/test_bm25_retriever.py14logger = logging.getLogger(__name__)CODE
LOW…ation/retrieval/test_graph_completion_retriever_cot.py13logger = logging.getLogger(__name__)CODE
179 more matches not shown…
Self-Referential Comments75 hits · 227 pts
SeverityFileLineSnippetContext
MEDIUMcognee/tasks/ingestion/migrate_relational_database.py33 # Create a mapping of node_id to node objects for referencing in edge creationCOMMENT
MEDIUM⚡cognee/tasks/ingestion/migrate_relational_database.py157 # Create a mapping of node_id to node objects for referencing in edge creationCOMMENT
MEDIUM⚡cognee/tasks/ingestion/migrate_relational_database.py163 # Create a TableType node for each tableCOMMENT
MEDIUMcognee/tasks/ingestion/migrate_relational_database.py193 # Create a node ID in the format "table_name:primary_key_value"COMMENT
MEDIUMcognee/tasks/ingestion/migrate_relational_database.py196 # Create a TableRow nodeCOMMENT
MEDIUMcognee/tests/test_custom_data_label.py9 # Create a clean slate for cognee -- reset data and system stateCOMMENT
MEDIUMcognee/tests/test_delete_data_and_dataset_if_empty.py41 # Create a clean slate for cognee -- reset data and system stateCOMMENT
MEDIUMcognee/tests/test_relational_db_migration.py56 # Create the dataset so search can find it by nameCOMMENT
MEDIUMcognee/tests/test_graph_visualization_permissions.py125 # Create a user without any permissions to the datasetCOMMENT
MEDIUMcognee/tests/test_graph_model_from_schema.py13 # Create a clean slate for cognee -- reset data and system stateCOMMENT
MEDIUMcognee/tests/test_graph_model_from_schema.py26 # Define a custom graph model for programming languages.COMMENT
MEDIUMcognee/tests/test_custom_model.py15 # Define a custom graph model for programming languages.COMMENT
MEDIUMcognee/tests/test_dataset_database_handler.py93 # Create a clean slate for cognee -- reset data and system stateCOMMENT
MEDIUMcognee/tests/test_dataset_delete.py37 # Create a clean slate for cognee -- reset data and system stateCOMMENT
MEDIUMcognee/tests/test_multi_tenancy.py17 # Create a clean slate for cognee -- reset data and system stateCOMMENT
MEDIUM…unit/entity_extraction/regex_entity_extraction_test.py268 # Create a minimal test config fileCOMMENT
MEDIUMcognee/tests/unit/api/test_health_checker.py18 # Create a dummy file that simulates existing user data that happens to be named "health_check_test"COMMENT
MEDIUM…sts/unit/infrastructure/databases/test_rate_limiter.py108 # Create a fresh instanceCOMMENT
MEDIUM…sts/unit/infrastructure/databases/test_rate_limiter.py129 # Create a fresh instanceCOMMENT
MEDIUM…bases/vector/test_lancedb_external_metadata_payload.py75 # Create the table first, as the storage task does before indexing.COMMENT
MEDIUM…l/graph_completion_retriever_context_extension_test.py169 # Create a second edge for extension roundsCOMMENT
MEDIUM…l/graph_completion_retriever_context_extension_test.py633 # Create a second edge for extension roundsCOMMENT
MEDIUM…l/graph_completion_retriever_context_extension_test.py882 # Create a second edge for extension roundsCOMMENT
MEDIUM⚡…t/modules/retrieval/test_brute_force_triplet_search.py575 # Create a mock fragment that will raise EntityNotFoundError when project_graph_from_db is calledCOMMENT
MEDIUM…gnee/tests/tasks/translation/translate_content_test.py23 # Create a minimal Document for the is_part_of fieldCOMMENT
MEDIUM…/tests/cli_tests/cli_unit_tests/test_cli_edge_cases.py27 # Create an event loop and run the coroutineCOMMENT
MEDIUM…ee/tests/cli_tests/cli_unit_tests/test_cli_commands.py30 # Create an event loop and run the coroutineCOMMENT
MEDIUMcognee/tests/api/test_backend_auth.py74 # Create an API key using the bearer tokenCOMMENT
MEDIUMcognee/tests/api/test_backend_auth.py161 # Create an API key with HASH_API_KEY=True activeCOMMENT
MEDIUMcognee/tests/e2e/postgres/test_postgres_adapter.py629 # Create a fake type with __name__ == "Entity"COMMENT
MEDIUMcognee/shared/graph_model_utils.py116 # Create a clean slate for cognee -- reset data and system stateCOMMENT
MEDIUMcognee/shared/graph_model_utils.py129 # Define a custom graph model for programming languages.COMMENT
MEDIUMcognee/shared/utils.py713 # Create the serverCOMMENT
MEDIUMcognee/shared/logging_utils.py205 # Create the log entryCOMMENT
MEDIUMcognee/shared/logging_utils.py579 # Create a new log file name with the cognee start timeCOMMENT
MEDIUM…eval_framework/benchmark_adapters/hotpot_qa_adapter.py27 # Create a mapping of title to sentences for easy lookupCOMMENT
MEDIUMcognee/api/v1/ui/node_setup.py99 # Create a temporary script fileCOMMENT
MEDIUMcognee/api/v1/ui/ui.py251 # Create a temporary directory for downloadCOMMENT
MEDIUMcognee/api/v1/config/config.py1"""This module is used to set the configuration of the system."""STRING
MEDIUMcognee/api/v1/responses/routers/get_responses_router.py137 # Create a format the dispatcher can handleCOMMENT
MEDIUMcognee/api/v1/responses/routers/get_responses_router.py165 # Create the response object with all processed tool callsCOMMENT
MEDIUMcognee/api/v1/agents/agents.py52 # Create an agent with read/write on a datasetSTRING
MEDIUMcognee/api/v1/serve/management_api.py145 # Create a new key with retriesCOMMENT
MEDIUMcognee/api/v1/sync/sync.py731 # Create a temporary file-like object from the bytesCOMMENT
MEDIUM⚡…e/databases/relational/sqlalchemy/SqlAlchemyAdapter.py530 # Create a MetaData instance to load table informationCOMMENT
MEDIUM⚡…e/databases/relational/sqlalchemy/SqlAlchemyAdapter.py534 # Define the full table nameCOMMENT
MEDIUM…e/databases/relational/sqlalchemy/SqlAlchemyAdapter.py773 # Create a MetaData instance to load table informationCOMMENT
MEDIUMcognee/infrastructure/databases/dataset_queue/queue.py210 # Create the slot dict for this task up front so callers can writeCOMMENT
MEDIUM…gres_demo/PostgresGraphSharedDatasetDatabaseHandler.py58 # Create the graph tables inside the dataset schema. The engine is pinnedCOMMENT
MEDIUM…frastructure/databases/graph/neptune_driver/adapter.py601 # Create the bulk-edge OpenCypher query using UNWINDSTRING
MEDIUM…ector/pgvector/PGVectorSharedDatasetDatabaseHandler.py54 # Create the dataset schema (and ensure the pgvector extension exists) inCOMMENT
MEDIUM…utput_framework/litellm_instructor/llm/rate_limiter.py163 # Create a fresh rate limit item for each checkCOMMENT
MEDIUM…put_framework/litellm_instructor/llm/get_llm_client.py72# Define an Enum for LLM ProvidersCOMMENT
MEDIUMcognee/modules/storage/utils/__init__.py49 # Create a base class with the same configuration as DataPointCOMMENT
MEDIUMcognee/modules/storage/utils/__init__.py53 # Create the model inheriting from the configured baseCOMMENT
MEDIUM…/old/hotpot_qa_24_2025/src/analysis/analyze_results.py52 # Create a copy with just the metric mean, sorted descendingCOMMENT
MEDIUM…ls/old/hotpot_qa_24_2025/src/qa/qa_benchmark_cognee.py94 # Create a clean slate for cogneeCOMMENT
MEDIUMevals/old/mem0_01042025/hotpot_qa_mem0.py30 # Create a conversation that includes the document contentCOMMENT
MEDIUM…-frontend/src/app/(app)/onboarding/ConnectionSteps.tsx540 "# Create an API key",CODE
MEDIUMcognee-starter-kit/src/pipelines/custom-model.py31 # Define a custom graph model for programming languages.COMMENT
15 more matches not shown…
Cross-Language Confusion49 hits · 205 pts
SeverityFileLineSnippetContext
HIGHcognee/tasks/ingestion/exceptions/exceptions.py88 'external_metadata must be a JSON array of objects, e.g. [{"source": "crm"}, null].'CODE
HIGHcognee/tests/test_neptune_analytics_vector.py126 # Always return trueCOMMENT
HIGHcognee/tests/unit/test_litellm_embedding_sanitize.py84 # drives this through its OpenAI handler (the branch that injected the null),COMMENT
HIGHcognee/tests/unit/api/v1/test_add_remember_label.py8('[{"source": "crm"}, null]'), which Swagger transmits intact. Entries pairSTRING
HIGHcognee/tests/unit/api/v1/test_add_remember_label.py285 "external_metadata": '[{"source": "crm", "ticket": 42}, null]',CODE
HIGHcognee/tests/unit/migration/test_export_roundtrip.py331 ``COGXArchiveSource`` — the path ``cognee.push()`` and restore actually use.STRING
HIGHcognee/tests/unit/migration/test_push.py297 result = asyncio.run(push_module.push("main_dataset", mode="hybrid"))CODE
HIGHcognee/tests/unit/migration/test_push.py331 result = asyncio.run(push_module.push("local_name", target_dataset="remote_name"))CODE
HIGHcognee/tests/unit/migration/test_push.py350 asyncio.run(push_module.push("main_dataset"))CODE
HIGHcognee/tests/unit/migration/test_push.py368 asyncio.run(push_module.push("main_dataset"))CODE
HIGHcognee/tests/unit/migration/test_push.py392 result = asyncio.run(push_module.push("main_dataset"))CODE
HIGHcognee/tests/unit/migration/test_push.py1"""Unit tests for cognee.push() and the COGX archive transport helpers.STRING
HIGH…gnee/tests/e2e/temporal/test_timestamp_range_lookup.py221 carry the field and some do not (or store null). Both lookups must still runSTRING
HIGH…gnee/tests/e2e/temporal/test_timestamp_range_lookup.py249 # And a stored JSON null, the shape a non-int time_at produces through the model.COMMENT
HIGHcognee/cli/commands/push_command.py100 return await cognee.push(STRING
HIGH⚡cognee/api/v1/activity/routers/get_activity_router.py88 - **kind** (str): `"pipeline"` or `"operation"` (never null).STRING
HIGH⚡cognee/api/v1/activity/routers/get_activity_router.py89 - **operation_name** (str|null): Operation name; for pipeline rows thisSTRING
HIGH⚡cognee/api/v1/activity/routers/get_activity_router.py91 - **origin** (str|null): Initiating surface — `sdk`/`api`/`cli`/`mcp`/`background`.STRING
HIGH⚡cognee/api/v1/activity/routers/get_activity_router.py92 - **outcome** (str|null): `"succeeded"` / `"failed"` / `"noop"` (the call ranSTRING
HIGH⚡cognee/api/v1/activity/routers/get_activity_router.py98 - **background** (bool|null): True when the call launched background work.STRING
HIGH⚡cognee/api/v1/activity/routers/get_activity_router.py100 - **error_class** (str|null): Exception class name when `outcome="failed"`.STRING
HIGH⚡cognee/api/v1/activity/routers/get_activity_router.py101 - **tokens_in** / **tokens_out** (int|null): Provider-billed token counts.STRING
HIGH⚡cognee/api/v1/activity/routers/get_activity_router.py103 - **started_at** / **ended_at** (str|null): ISO-8601 timestamps.STRING
HIGH⚡cognee/api/v1/activity/routers/get_activity_router.py104 - **user_id** (str|null): Triggering user.STRING
HIGH⚡cognee/api/v1/activity/routers/get_activity_router.py105 - **session_id** (str|null): Session-cache id; joins `session_model_usage`.STRING
HIGH⚡cognee/api/v1/activity/routers/get_activity_router.py106 - **parent_operation_id** (str|null): Parent's `pipeline_run_id`.STRING
HIGHcognee/api/v1/visualize/live_updates.py208 - ``{"kind": "ready", "dataset_id": str, "cursor": str | null}`` — once,STRING
HIGHcognee/api/v1/recall/routers/get_recall_router.py33 "Omit (or pass null) to let cognee auto-route the query (rule-based, no LLM "CODE
HIGHcognee/api/v1/recall/routers/get_recall_router.py42 "Dataset names to search within. Omit (null) to search all datasets "CODE
HIGHcognee/api/v1/recall/routers/get_recall_router.py229 (default: null) to auto-route the query with the rule-based routerSTRING
HIGHcognee/api/v1/push/push.py27 """Outcome of a ``cognee.push()`` call."""STRING
HIGHcognee/api/v1/add/routers/get_add_router.py83 '[{"source": "crm", "ticket": 42}, null]. Paired positionally like labels: 'CODE
HIGHcognee/api/v1/add/routers/get_add_router.py132 e.g. [{"source": "crm"}, null], paired positionally with the data itemsSTRING
HIGHcognee/api/v1/users/routers/get_visualize_router.py682 - `{"kind": "ready", "dataset_id": str, "cursor": str | null}` — sentSTRING
HIGHcognee/api/v1/remember/remember.py1053 "cognee.push() to upload the data to the remote instance."CODE
HIGHcognee/api/v1/remember/routers/get_remember_router.py41 """Import uploaded COGX archive tarballs (produced by ``cognee.push()``)."""STRING
HIGHcognee/api/v1/remember/routers/get_remember_router.py157 '[{"source": "crm", "ticket": 42}, null]. Paired positionally like labels: 'CODE
HIGHcognee/api/v1/remember/routers/get_remember_router.py326 e.g. [{"source": "crm"}, null], paired positionally with the uploaded filesSTRING
HIGH…/databases/vector/embeddings/LiteLLMEmbeddingEngine.py226 # Older LiteLLM releases serialize an omitted encoding format as null,COMMENT
HIGHcognee/modules/session_lifecycle/metrics.py148 """Attribute an existing session to an agent connection (fill-if-null).STRING
HIGH⚡cognee/modules/agents/registry.py181 # (fill-if-null), so agent↔session attribution survives registryCOMMENT
HIGHcognee/modules/retrieval/utils/references.py179 Missing, null, non-string, or empty/whitespace-only values are treated asSTRING
HIGHcognee/modules/retrieval/temporal_hybrid/matching.py23- "Until X", "through X", "up to X" include X: start null, end at X's upper bound.CODE
HIGHcognee/modules/migration/archive.py6``cognee.push()`` on the sending side and the remember endpoint on theSTRING
HIGHcognee/modules/migration/sources/cogx_archive.py24 zero-LLM — matching the default of ``cognee.push()`` and the rememberSTRING
HIGHdistributed/deploy/modal_app.py10 1. pip install modal && modal setupSTRING
HIGH⚡distributed/deploy/daytona_sandbox.py100 sandbox.process.exec("pkill -f uvicorn || true", timeout=5)CODE
HIGH…docker-sandbox-kit/brainbox/tasks/code_architecture.py10 3. promote — `cognee.push(...)`: export the local graph as a COGX archive andSTRING
HIGH…docker-sandbox-kit/brainbox/tasks/code_architecture.py115 pushed = await cognee.push(args.dataset, target_dataset=args.target, mode="preserve")CODE
Verbosity Indicators87 hits · 155 pts
SeverityFileLineSnippetContext
LOWcognee/tasks/graph/gliner_demo/schema.py176# Step 2: ontologyCOMMENT
LOWcognee/tasks/graph/gliner_demo/schema.py265# Step 3: label bank probeCOMMENT
LOW⚡cognee/tests/unit/api/test_ontology_endpoint.py162 # Step 1: Upload two ontologies (one-by-one)COMMENT
LOW⚡cognee/tests/unit/api/test_ontology_endpoint.py191 # Step 2: Verify ontologies are listedCOMMENT
LOW⚡cognee/tests/unit/api/test_ontology_endpoint.py198 # Step 3: Test cognify with multiple ontologiesCOMMENT
LOW⚡cognee/eval_framework/run_beam_eval.py49 # Step 1: Build corpus (ingest conversation into cognee)COMMENT
LOW⚡cognee/eval_framework/run_beam_eval.py55 # Step 2: Answer probing questions (routed by question type)COMMENT
LOW⚡cognee/eval_framework/run_beam_eval.py59 # Step 3: Evaluate with rubric metricCOMMENT
LOW⚡cognee/eval_framework/run_beam_eval.py63 # Step 4: DashboardCOMMENT
LOW⚡…nee/eval_framework/evaluation/run_evaluation_module.py63 # Step 1: Evaluate answers if requestedCOMMENT
LOW⚡…nee/eval_framework/evaluation/run_evaluation_module.py69 # Step 2: Calculate metrics if requestedCOMMENT
LOW⚡cognee/api/v1/add/add.py157 # Step 1: Add your data (text content or file path)STRING
LOW⚡cognee/api/v1/add/add.py162 # Step 2: Process into knowledge graphSTRING
LOW⚡cognee/api/v1/add/add.py165 # Step 3: Search and querySTRING
LOWcognee/api/v1/serve/serve.py170 # Step 1: Check for saved credentialsCOMMENT
LOW⚡cognee/api/v1/serve/serve.py220 # Step 2: Device Code Flow — only possible with an Auth0 device client ID.COMMENT
LOW⚡cognee/api/v1/serve/serve.py264 # Step 3: Discover or create tenantCOMMENT
LOW⚡cognee/api/v1/serve/serve.py274 # Step 4: Get service URLCOMMENT
LOW⚡cognee/api/v1/serve/serve.py277 # Step 5: Get or create API keyCOMMENT
LOW⚡cognee/api/v1/serve/serve.py280 # Step 6: Build credentials — saved in Step 7 only after the tenantCOMMENT
LOWcognee/api/v1/serve/serve.py293 # Step 7: ConnectCOMMENT
LOWcognee/api/v1/serve/device_auth.py65 # Step 1: Request device codeCOMMENT
LOWcognee/api/v1/serve/device_auth.py87 # Step 2: Show the user what to doCOMMENT
LOWcognee/api/v1/serve/device_auth.py98 # Step 3: Poll for tokenCOMMENT
LOW⚡cognee/api/v1/sync/sync.py328 # Step 2: Trigger cognify processing once for all datasets (only if any files were uploaded)COMMENT
LOW⚡cognee/api/v1/sync/sync.py350 # Step 3: Trigger local cognify processing if any files were downloadedCOMMENT
LOW⚡cognee/api/v1/sync/sync.py427 # Step 1: Extract local file info with stored hashesCOMMENT
LOW⚡cognee/api/v1/sync/sync.py435 # Step 2: Check what files are missing on cloudCOMMENT
LOW⚡cognee/api/v1/sync/sync.py448 # Step 3: Upload files that are missing on cloudCOMMENT
LOW⚡cognee/api/v1/sync/sync.py456 # Step 4: Download files that are missing locallyCOMMENT
LOWcognee/api/v1/sync/sync.py263 # Step 1: Sync files for all datasets concurrentlyCOMMENT
LOW⚡…infrastructure/databases/graph/neo4j_driver/adapter.py1323 // Step 1: Collect all nodesCOMMENT
LOW⚡…infrastructure/databases/graph/neo4j_driver/adapter.py1327 // Step 2: Find all connected componentsCOMMENT
LOW⚡…infrastructure/databases/graph/neo4j_driver/adapter.py1337 // Step 3: Aggregate componentsCOMMENT
LOW⚡…infrastructure/databases/graph/neo4j_driver/adapter.py1340 // Step 4: Identify the largest connected componentCOMMENT
LOW⚡…infrastructure/databases/graph/neo4j_driver/adapter.py1347 // Step 5: Find nodes not in the largest connected componentCOMMENT
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py1936 # Step 2: Fetch all nodesSTRING
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py1948 # Step 3: Fetch all edges between collected nodesSTRING
LOW⚡…frastructure/databases/graph/neptune_driver/adapter.py761 # Step 2: Fetch all nodesSTRING
LOW⚡…frastructure/databases/graph/neptune_driver/adapter.py770 # Step 3: Fetch all edges between collected nodesSTRING
LOW…frastructure/databases/graph/neptune_driver/adapter.py741 # Step 1: Find all neighbor node IDs within depth hopsSTRING
LOW⚡cognee/modules/truth_subspace/build.py224 # Step 1: accepted learning statements from session_learnings.COMMENT
LOW⚡cognee/modules/truth_subspace/build.py333 # Step 3: LOAD nodes — ALL DocumentChunk nodes in the dataset (the chunkCOMMENT
LOW⚡cognee/modules/truth_subspace/build.py407 # Step 5: PERSIST per-node coordinate vectors at epoch N+1 first ...COMMENT
LOWcognee/modules/truth_subspace/build.py206 # Step 0: capability gate, before any embedding call. Only LadybugCOMMENT
LOWcognee/modules/truth_subspace/build.py297 # Step 2: decide the epoch. New centroids are held in memory until theCOMMENT
LOWcognee/modules/truth_subspace/build.py373 # Step 4: EMBED node texts (batched) and compute coords per node at theCOMMENT
LOWcognee/modules/truth_subspace/build.py432 # Step 6: ... and only then move the centroids to N+1. Until this writeCOMMENT
LOWcognee/modules/user_preferences/update.py272 # Step 1: advance the clock once for every not-yet-counted turn, rated or not.COMMENT
LOW⚡cognee/modules/user_preferences/update.py356 # Step 6: prune whenever the counter moved — the clock advances on unratedCOMMENT
LOWcognee/modules/user_preferences/update.py389 # Step 5: mark processed. update_qa MERGES the metadata dict into theCOMMENT
LOW…rontend/src/app/(setup)/onboarding/ServeOnboarding.tsx55// Step 1: Verify connectionCOMMENT
LOW…rontend/src/app/(setup)/onboarding/ServeOnboarding.tsx85// Step 2: SDK quickstartCOMMENT
LOW…rontend/src/app/(setup)/onboarding/ServeOnboarding.tsx123// Step 3: Test from UICOMMENT
LOW…rontend/src/app/(setup)/onboarding/ServeOnboarding.tsx210// Step 4: DoneCOMMENT
LOW⚡distributed/deploy/daytona_sandbox.py93 # Step 1: Install Cognee (streamed)COMMENT
LOW⚡distributed/deploy/daytona_sandbox.py98 # Step 2: Kill any existing server, then start freshCOMMENT
LOW⚡examples/guides/fact_validity.py23 # Step 1: start clean and remember the original fact.COMMENT
LOW⚡examples/guides/fact_validity.py27 # Step 2: entity node ids are deterministic — derive Acme's id from its name.COMMENT
LOW⚡examples/guides/fact_validity.py30 # Step 3: Alice changes jobs — close the old fact instead of deleting it.COMMENT
27 more matches not shown…
Structural Annotation Overuse86 hits · 153 pts
SeverityFileLineSnippetContext
LOWcognee/tasks/graph/gliner_demo/schema.py176# Step 2: ontologyCOMMENT
LOWcognee/tasks/graph/gliner_demo/schema.py265# Step 3: label bank probeCOMMENT
LOW⚡cognee/tests/unit/api/test_ontology_endpoint.py162 # Step 1: Upload two ontologies (one-by-one)COMMENT
LOW⚡cognee/tests/unit/api/test_ontology_endpoint.py191 # Step 2: Verify ontologies are listedCOMMENT
LOW⚡cognee/tests/unit/api/test_ontology_endpoint.py198 # Step 3: Test cognify with multiple ontologiesCOMMENT
LOW⚡cognee/eval_framework/run_beam_eval.py49 # Step 1: Build corpus (ingest conversation into cognee)COMMENT
LOW⚡cognee/eval_framework/run_beam_eval.py55 # Step 2: Answer probing questions (routed by question type)COMMENT
LOW⚡cognee/eval_framework/run_beam_eval.py59 # Step 3: Evaluate with rubric metricCOMMENT
LOW⚡cognee/eval_framework/run_beam_eval.py63 # Step 4: DashboardCOMMENT
LOW⚡…nee/eval_framework/evaluation/run_evaluation_module.py63 # Step 1: Evaluate answers if requestedCOMMENT
LOW⚡…nee/eval_framework/evaluation/run_evaluation_module.py69 # Step 2: Calculate metrics if requestedCOMMENT
LOW⚡cognee/api/v1/add/add.py157 # Step 1: Add your data (text content or file path)STRING
LOW⚡cognee/api/v1/add/add.py162 # Step 2: Process into knowledge graphSTRING
LOW⚡cognee/api/v1/add/add.py165 # Step 3: Search and querySTRING
LOWcognee/api/v1/serve/serve.py170 # Step 1: Check for saved credentialsCOMMENT
LOW⚡cognee/api/v1/serve/serve.py220 # Step 2: Device Code Flow — only possible with an Auth0 device client ID.COMMENT
LOW⚡cognee/api/v1/serve/serve.py264 # Step 3: Discover or create tenantCOMMENT
LOW⚡cognee/api/v1/serve/serve.py274 # Step 4: Get service URLCOMMENT
LOW⚡cognee/api/v1/serve/serve.py277 # Step 5: Get or create API keyCOMMENT
LOW⚡cognee/api/v1/serve/serve.py280 # Step 6: Build credentials — saved in Step 7 only after the tenantCOMMENT
LOWcognee/api/v1/serve/serve.py293 # Step 7: ConnectCOMMENT
LOWcognee/api/v1/serve/device_auth.py65 # Step 1: Request device codeCOMMENT
LOWcognee/api/v1/serve/device_auth.py87 # Step 2: Show the user what to doCOMMENT
LOWcognee/api/v1/serve/device_auth.py98 # Step 3: Poll for tokenCOMMENT
LOW⚡cognee/api/v1/sync/sync.py328 # Step 2: Trigger cognify processing once for all datasets (only if any files were uploaded)COMMENT
LOW⚡cognee/api/v1/sync/sync.py350 # Step 3: Trigger local cognify processing if any files were downloadedCOMMENT
LOW⚡cognee/api/v1/sync/sync.py427 # Step 1: Extract local file info with stored hashesCOMMENT
LOW⚡cognee/api/v1/sync/sync.py435 # Step 2: Check what files are missing on cloudCOMMENT
LOW⚡cognee/api/v1/sync/sync.py448 # Step 3: Upload files that are missing on cloudCOMMENT
LOW⚡cognee/api/v1/sync/sync.py456 # Step 4: Download files that are missing locallyCOMMENT
LOWcognee/api/v1/sync/sync.py263 # Step 1: Sync files for all datasets concurrentlyCOMMENT
LOW⚡…infrastructure/databases/graph/neo4j_driver/adapter.py1323 // Step 1: Collect all nodesCOMMENT
LOW⚡…infrastructure/databases/graph/neo4j_driver/adapter.py1327 // Step 2: Find all connected componentsCOMMENT
LOW⚡…infrastructure/databases/graph/neo4j_driver/adapter.py1337 // Step 3: Aggregate componentsCOMMENT
LOW⚡…infrastructure/databases/graph/neo4j_driver/adapter.py1340 // Step 4: Identify the largest connected componentCOMMENT
LOW⚡…infrastructure/databases/graph/neo4j_driver/adapter.py1347 // Step 5: Find nodes not in the largest connected componentCOMMENT
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py1936 # Step 2: Fetch all nodesSTRING
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py1948 # Step 3: Fetch all edges between collected nodesSTRING
LOW⚡…frastructure/databases/graph/neptune_driver/adapter.py761 # Step 2: Fetch all nodesSTRING
LOW⚡…frastructure/databases/graph/neptune_driver/adapter.py770 # Step 3: Fetch all edges between collected nodesSTRING
LOW…frastructure/databases/graph/neptune_driver/adapter.py741 # Step 1: Find all neighbor node IDs within depth hopsSTRING
LOW⚡cognee/modules/truth_subspace/build.py224 # Step 1: accepted learning statements from session_learnings.COMMENT
LOW⚡cognee/modules/truth_subspace/build.py333 # Step 3: LOAD nodes — ALL DocumentChunk nodes in the dataset (the chunkCOMMENT
LOW⚡cognee/modules/truth_subspace/build.py407 # Step 5: PERSIST per-node coordinate vectors at epoch N+1 first ...COMMENT
LOWcognee/modules/truth_subspace/build.py206 # Step 0: capability gate, before any embedding call. Only LadybugCOMMENT
LOWcognee/modules/truth_subspace/build.py297 # Step 2: decide the epoch. New centroids are held in memory until theCOMMENT
LOWcognee/modules/truth_subspace/build.py373 # Step 4: EMBED node texts (batched) and compute coords per node at theCOMMENT
LOWcognee/modules/user_preferences/update.py272 # Step 1: advance the clock once for every not-yet-counted turn, rated or not.COMMENT
LOW⚡cognee/modules/user_preferences/update.py356 # Step 6: prune whenever the counter moved — the clock advances on unratedCOMMENT
LOWcognee/modules/user_preferences/update.py389 # Step 5: mark processed. update_qa MERGES the metadata dict into theCOMMENT
LOW…rontend/src/app/(setup)/onboarding/ServeOnboarding.tsx55// Step 1: Verify connectionCOMMENT
LOW…rontend/src/app/(setup)/onboarding/ServeOnboarding.tsx85// Step 2: SDK quickstartCOMMENT
LOW…rontend/src/app/(setup)/onboarding/ServeOnboarding.tsx123// Step 3: Test from UICOMMENT
LOW…rontend/src/app/(setup)/onboarding/ServeOnboarding.tsx210// Step 4: DoneCOMMENT
LOW⚡distributed/deploy/daytona_sandbox.py93 # Step 1: Install Cognee (streamed)COMMENT
LOW⚡distributed/deploy/daytona_sandbox.py98 # Step 2: Kill any existing server, then start freshCOMMENT
LOW⚡examples/guides/fact_validity.py23 # Step 1: start clean and remember the original fact.COMMENT
LOW⚡examples/guides/fact_validity.py27 # Step 2: entity node ids are deterministic — derive Acme's id from its name.COMMENT
LOW⚡examples/guides/fact_validity.py30 # Step 3: Alice changes jobs — close the old fact instead of deleting it.COMMENT
LOW⚡examples/guides/fact_validity.py34 # Step 4: remember the replacement fact.COMMENT
26 more matches not shown…
Modern AI Meta-Vocabulary33 hits · 104 pts
SeverityFileLineSnippetContext
MEDIUM⚡cognee/tests/unit/eval_framework/test_eval_runner.py228# Runner orchestration (mocked steps, no LLM/DB)COMMENT
MEDIUM⚡cognee/tests/unit/api/v1/validate/test_validate.py180 # NodeSet has no index_fields — it's structural scaffolding, never embedded.COMMENT
MEDIUM…ests/unit/infrastructure/test_embedding_input_limit.py81 # A TikToken fallback says nothing about the embedding model.COMMENT
MEDIUM⚡…tests/unit/modules/visualization/test_subgraph_data.py192# --- fetch orchestration ---------------------------------------------------COMMENT
MEDIUM…/unit/modules/retrieval/test_graph_report_retriever.py37 # Membership scaffolding (belongs_to_set -> NodeSet container).COMMENT
MEDIUM…/unit/modules/retrieval/test_graph_report_retriever.py46 # Structural scaffolding (DERIVED).COMMENT
MEDIUM⚡…it/modules/retrieval/test_include_references_wiring.py31# CompletionRetriever (RAG / chunk evidence)COMMENT
MEDIUM⚡cognee/cli/_cognee.py372 # in-process. This is the correct mode for concurrent / multi-agent useCOMMENT
MEDIUMcognee/eval_framework/runner.py113# seams the tests patch to exercise orchestration without an LLM or database.COMMENT
MEDIUM…ture/databases/utils/get_or_create_dataset_database.py117 # Record the embedding model that will build this dataset's vectors, soCOMMENT
MEDIUM…rastructure/databases/vector/embeddings/input_limit.py28# hosted embedding model's limit (OpenAI 8191, Mistral 8192, Voyage 32000) andCOMMENT
MEDIUM…s/vector/embeddings/OpenAICompatibleEmbeddingEngine.py190 # Handle context window exceeded by splitting inputCOMMENT
MEDIUM…structure/databases/vector/turso/TursoVectorAdapter.py552 # the graph/RAG hot path wants only id + distance, and payloads are largeCOMMENT
MEDIUMcognee/infrastructure/llm/tokenizer/resolver.py164 # (e.g. a newly released embedding model), so guard the "never raises"COMMENT
MEDIUMcognee/infrastructure/llm/tokenizer/resolver.py204 # override wins, otherwise use the embedding model's own repo.COMMENT
MEDIUMcognee/modules/search/methods/search.py543 # A populated graph whose retriever still found nothing to search, e.g. RAG'sCOMMENT
MEDIUMcognee/modules/retrieval/agentic_retriever.py82 # Answers through a multi-step loop on the agentic templates; the inheritedCOMMENT
MEDIUMcognee/modules/retrieval/agentic_retriever.py275 # Ungraded agentic executions use the neutral default score untilCOMMENT
MEDIUMcognee/modules/retrieval/graph_report_retriever.py118 # content edges only (drop membership scaffolding).COMMENT
MEDIUMcognee/modules/retrieval/graph_completion_retriever.py142 # loudly (404 over the API) the same way the RAG retriever raisesCOMMENT
MEDIUMcognee/modules/retrieval/base_retriever.py38 # legitimately answer without retrieval context (e.g. tool-driven agenticCOMMENT
MEDIUMcognee/modules/data/deletion/prune_system.py58 # embedding model so the next use does not report a false mismatch.COMMENT
MEDIUMevals/old/hotpot_50_corpus.json1["Lomonosov Moscow State University (MSU; Russian: \u041c\u043e\u0441\u043a\u043e\u0432\u0441\u043a\u0438\u0439 \u0433\uCODE
MEDIUM⚡evals/old/hotpot_qa_24_2025/src/qa/qa_benchmark_base.py101 # Get answer from RAG systemCOMMENT
MEDIUMevals/old/hotpot_qa_24_2025/src/qa/qa_benchmark_base.py132 # Initialize RAG systemCOMMENT
MEDIUMevals/old/comparative_eval/hotpot_50_corpus.json1["Lomonosov Moscow State University (MSU; Russian: \u041c\u043e\u0441\u043a\u043e\u0432\u0441\u043a\u0438\u0439 \u0433\uCODE
MEDIUMtools/docs_issue_filter.py38# lists or scaffolding, none of which describe a documentation problem.COMMENT
MEDIUMdocs/recall-vs-search.md68# Low level: raw SearchResult objects, agentic parameters as keywords.COMMENT
MEDIUMexamples/README.md148### [`agentic/`](demos/agentic/) — agents reasoning over memoryCOMMENT
MEDIUM…pelines/memify_coding_agent_rule_extraction_example.py83 # Memify accepts these tasks and orchestrates forwarding of graph data through these tasks (if data is not specifiedSTRING
MEDIUM…ional_database_to_knowledge_graph_migration_example.py113 # the invoices related to the two customers, without any hallucinations or additional informationCOMMENT
MEDIUM.github/workflows/e2e_tests.yml169 # Every stored chunk must fit the embedding model's window and be embeddedCOMMENT
MEDIUMcognee_db_workers/harness.py487 # prefer the HANDLE-based watchdog (event-driven, immune to PID reuse)COMMENT
Redundant / Tautological Comments74 hits · 102 pts
SeverityFileLineSnippetContext
LOWcognee/root_dir.py23 # Check if it's an S3 URL - S3 URLs are absolute by definitionCOMMENT
LOWcognee/tasks/ingestion/resolve_data_directories.py75 if isinstance(item, str): # Check if the item is a pathCODE
LOWcognee/tasks/translation/detect_language.py145 # Check if translation is neededCOMMENT
LOWcognee/tasks/translation/providers/llm_provider.py139 # Check if API key is configured (required for most providers)COMMENT
LOWcognee/tests/test_shared_node_preservation.py276 # Check if Germany is still in vector indexCOMMENT
LOWcognee/tests/test_custom_data_label.py37 # Display resultsSTRING
LOWcognee/tests/test_custom_data_label.py53 # Check if label is properly added and storedSTRING
LOWcognee/tests/test_delete_data_and_dataset_if_empty.py79 # Check if databases are properly created and exist before deletionSTRING
LOWcognee/tests/test_search_db.py142 # Check if Triplet_text collection was createdCOMMENT
LOWcognee/tests/test_graph_model_from_schema.py65 # Display resultsCOMMENT
LOWcognee/tests/test_dataset_database_handler.py124 # Display resultsSTRING
LOWcognee/tests/test_starter_pipelines.py18 # Check if required environment variables are setCOMMENT
LOWcognee/tests/test_dataset_delete.py68 # Check if databases are properly created and exist before deletionSTRING
LOWcognee/tests/test_cognee_server_start.py44 # Check if server started with errorsCOMMENT
LOW…sts/unit/infrastructure/databases/test_rate_limiter.py147 # Print the resultsCOMMENT
LOWcognee/shared/graph_model_utils.py168 # Display resultsCOMMENT
LOWcognee/shared/cache.py176 # Check if already cached and validCOMMENT
LOWcognee/shared/logging_utils.py159 # Check if stream is available before trying to writeCOMMENT
LOWcognee/shared/logging_utils.py379 # Check if this is a LiteLLM-related loggerCOMMENT
LOWcognee/shared/logging_utils.py449 # Check if there's an exc_info that needs to be processedCOMMENT
LOWcognee/shared/logging_utils.py573 # Check if we already have a log file path from the environmentCOMMENT
LOWcognee/api/v1/ui/node_setup.py37 # Check if nvm is available in the shellCOMMENT
LOWcognee/api/v1/ui/node_setup.py243 # Check if nvm is installedCOMMENT
LOWcognee/api/v1/ui/node_setup.py333 # Check if nvm is installedCOMMENT
LOWcognee/api/v1/ui/ui.py214 # Check if already downloaded and up to dateCOMMENT
LOWcognee/api/v1/ui/ui.py887 # Check if process is still runningCOMMENT
LOWcognee/api/v1/responses/routers/get_responses_router.py124 # Check if there are function tool calls in the outputCOMMENT
LOWcognee/api/v1/sync/routers/get_sync_router.py112 # Check if user has any running sync operationsCOMMENT
LOW…bic/versions/211ab850ef3d_add_sync_operations_table.py25 # Check if table already exists (it might be created by Base.metadata.create_all() in initial migration)COMMENT
LOW…s/6ee94db7381f_remove_unique_constraint_tenant_name.py81 # Check if there's a unique index on the name column. If third element in row is 1, it's a unique indexCOMMENT
LOW…ons/46a6ce2bd2b2_expand_dataset_database_with_json_.py278 # Check if the constraint covers ONLY the target columnSTRING
LOW…ons/46a6ce2bd2b2_expand_dataset_database_with_json_.py285 # Check if the constraint covers ONLY the target columnSTRING
LOW⚡…e/databases/relational/sqlalchemy/SqlAlchemyAdapter.py539 # Check if table is in list of tables for the given schemaCOMMENT
LOWcognee/infrastructure/databases/graph/config.py107 # Check if absolute path is providedCOMMENT
LOWcognee/infrastructure/llm/config.py318 # Check if BAML is selected as structured output framework but not availableCOMMENT
LOW…tructured_output_framework/baml/baml_client/runtime.py131 # Check if already abortedCOMMENT
LOW…tructured_output_framework/baml/baml_client/runtime.py160 # Check if already abortedCOMMENT
LOW…ured_output_framework/baml/baml_client/async_client.py87 # Check if on_tick is providedCOMMENT
LOW…tured_output_framework/baml/baml_client/sync_client.py100 # Check if on_tick is providedCOMMENT
LOW…put_framework/litellm_instructor/llm/get_llm_client.py418 # Check if max_token value is defined in liteLLM for given modelCOMMENT
LOW…nfrastructure/llm/extraction/extract_event_entities.py31 # Check if the prompt path is an absolute path or just a filenameCOMMENT
LOW…lm/extraction/knowledge_graph/extract_content_graph.py37 # Check if the prompt path is an absolute path or just a filenameCOMMENT
LOW…/llm/extraction/knowledge_graph/extract_event_graph.py32 # Check if the prompt path is an absolute path or just a filenameCOMMENT
LOWcognee/infrastructure/files/utils/open_data_file.py17 # Check if this is a file URI BEFORE normalizing (which corrupts URIs)COMMENT
LOWcognee/infrastructure/files/storage/LocalFileStorage.py14 # Check if this is actually a URL (has a scheme like file://, http://, etc.)COMMENT
LOWcognee/infrastructure/loaders/core/image_loader.py117 # Read file for metadataCOMMENT
LOW…infrastructure/loaders/external/advanced_pdf_loader.py90 # Check if there is any contentCOMMENT
LOW…odules/graph/methods/delete_dataset_nodes_and_edges.py26 # Check if user has delete permission for the dataset before proceeding with deletion of related graph/vector nodes COMMENT
LOW…e/modules/graph/methods/delete_data_nodes_and_edges.py37 # Check if user has delete permissions for the dataset before proceeding with deletion of related graph/vector nodesCOMMENT
LOW…s/search/methods/get_search_type_retriever_instance.py431 # Check if retriever info is found for the given query typeCOMMENT
LOWcognee/modules/search/methods/search.py336 # Check if graph for dataset is empty and log warnings if necessaryCOMMENT
LOWcognee/modules/retrieval/graph_completion_retriever.py152 # Check if all triplets are empty, in case of batch queriesCOMMENT
LOWcognee/modules/retrieval/graph_completion_retriever.py269 # Check if all triplets are empty, in case of batch queriesCOMMENT
LOW…modules/users/methods/store_principal_configuration.py31 # Check if a configuration with this name already exists for the principalCOMMENT
LOW…sers/permissions/methods/give_permission_on_dataset.py56 # Check if the ACL entry already exists to avoid duplicatesCOMMENT
LOW…ions/methods/authorized_give_permission_on_datasets.py31 # Check if request owner has permission to share dataset accessCOMMENT
LOWcognee/modules/users/tenants/methods/select_tenant.py48 # Check if User is part of TenantCOMMENT
LOWcognee/modules/data/methods/get_unique_dataset_id.py71 # Check if dataset with legacy_dataset_id exists, if so use that one, else use modern_dataset_idCOMMENT
LOWcognee/modules/data/methods/add_model_class_to_graph.py42 if hasattr(field_type, "model_fields"): # Check if field type is a Pydantic modelCODE
LOW⚡…/hotpot_qa_24_2025/src/run_cross_benchmark_analysis.py101 # Check if evaluated folder existsCOMMENT
14 more matches not shown…
AI Structural Patterns100 hits · 95 pts
SeverityFileLineSnippetContext
LOW…mify/consolidate_entity_descriptions/describe_types.py27CODE
LOWcognee/tasks/ingestion/connectors/gmail.py582CODE
LOWcognee/tasks/ingestion/connectors/google_drive.py600CODE
LOWcognee/tasks/web_scraper/web_scraper_task.py44CODE
LOWcognee/tasks/web_scraper/web_scraper_task.py126CODE
LOWcognee/tasks/web_scraper/default_url_crawler.py48CODE
LOWcognee/tasks/graph/gliner_demo/tasks.py218CODE
LOWcognee/tasks/graph/gliner_demo/tasks.py286CODE
LOWcognee/cli/api_client.py318CODE
LOWcognee/cli/api_client.py353CODE
LOWcognee/memify_pipelines/create_triplet_embeddings.py51CODE
LOWcognee/memify_pipelines/consolidate_entities.py25CODE
LOW…ee/memify_pipelines/consolidate_entity_descriptions.py37CODE
LOW…s/logistics_system_utils/utils/world_creation_utils.py635CODE
LOW…rk_adapters/logistics_system_utils/entities/package.py92CODE
LOWcognee/api/v1/update/update.py33CODE
LOWcognee/api/v1/agents/agents.py157CODE
LOWcognee/api/v1/agents/agents.py198CODE
LOWcognee/api/v1/agents/routers/get_agents_router.py102CODE
LOWcognee/api/v1/visualize/memory_provenance.py165CODE
LOWcognee/api/v1/visualize/visualize.py43CODE
LOWcognee/api/v1/visualize/visualize.py193CODE
LOWcognee/api/v1/visualize/visualize.py271CODE
LOWcognee/api/v1/visualize/visualize.py317CODE
LOWcognee/api/v1/cognify/cognify.py112CODE
LOWcognee/api/v1/cognify/cognify.py572CODE
LOWcognee/api/v1/recall/recall.py349CODE
LOWcognee/api/v1/search/search.py41CODE
LOWcognee/api/v1/add/add.py40CODE
LOWcognee/api/v1/add/routers/get_add_router.py49CODE
LOWcognee/api/v1/users/routers/get_visualize_router.py60CODE
LOWcognee/api/v1/users/routers/get_visualize_router.py167CODE
LOWcognee/api/v1/users/routers/get_visualize_router.py354CODE
LOWcognee/api/v1/remember/remember.py887CODE
LOWcognee/api/v1/remember/routers/get_remember_router.py119CODE
LOW…e/infrastructure/databases/cache/cache_db_interface.py127CODE
LOW…nee/infrastructure/databases/cache/get_cache_engine.py73CODE
LOW…e/infrastructure/databases/cache/redis/RedisAdapter.py24CODE
LOW…e/infrastructure/databases/cache/redis/RedisAdapter.py182CODE
LOW…e/infrastructure/databases/cache/redis/RedisAdapter.py367CODE
LOW…frastructure/databases/cache/fscache/FsCacheAdapter.py130CODE
LOW…frastructure/databases/cache/fscache/FsCacheAdapter.py271CODE
LOW…/infrastructure/databases/cache/sql/SqlCacheAdapter.py406CODE
LOW…/infrastructure/databases/cache/sql/SqlCacheAdapter.py681CODE
LOW…nee/infrastructure/databases/graph/get_graph_engine.py231CODE
LOW…nee/infrastructure/databases/graph/get_graph_engine.py298CODE
LOW…nfrastructure/databases/vector/create_vector_engine.py54CODE
LOW…/databases/vector/embeddings/LiteLLMEmbeddingEngine.py110CODE
LOW…ured_output_framework/baml/baml_client/async_client.py159CODE
LOW…ured_output_framework/baml/baml_client/async_client.py182CODE
LOW…tured_output_framework/baml/baml_client/sync_client.py171CODE
LOW…tured_output_framework/baml/baml_client/sync_client.py194CODE
LOW…ured_output_framework/litellm_native/native_adapter.py190CODE
LOW…put_framework/litellm_instructor/llm/gemini/adapter.py63CODE
LOW…work/litellm_instructor/llm/generic_llm_api/adapter.py101CODE
LOW…amework/litellm_instructor/llm/azure_openai/adapter.py51CODE
LOW…_framework/litellm_instructor/llm/llama_cpp/adapter.py72CODE
LOW…put_framework/litellm_instructor/llm/openai/adapter.py70CODE
LOW…nee/infrastructure/files/storage/FileBufferedReader.py16CODE
LOW…gnee/infrastructure/loaders/external/dlt_csv_loader.py46CODE
40 more matches not shown…
Fake / Example Data72 hits · 86 pts
SeverityFileLineSnippetContext
LOW⚡cognee/tests/unit/test_context_global_variables.py103 return fake_userCODE
LOWcognee/tests/unit/test_context_global_variables.py87 fake_user = SimpleNamespace(id=user_id, tenant_id=None)CODE
LOW⚡cognee/tests/unit/test_agents_sdk_cli.py383 fake_user = _make_user()CODE
LOW⚡cognee/tests/unit/test_agents_sdk_cli.py386 return fake_userCODE
LOWcognee/tests/unit/test_agents_sdk_cli.py399 assert user is fake_userCODE
LOW⚡…ts/unit/tasks/memify/test_session_persist_watermark.py73 fake_user = SimpleNamespace(id=uuid.uuid4())CODE
LOW⚡…ts/unit/tasks/memify/test_session_persist_watermark.py74 token = session_user.set(fake_user)CODE
LOW⚡…ts/unit/tasks/memify/test_session_persist_watermark.py75 yield fake_userCODE
LOW⚡cognee/tests/unit/search/test_search_result_payload.py24 deal = DealBrief(deal_name="Acme Corp", health="Good")CODE
LOW⚡cognee/tests/unit/search/test_search_result_payload.py28 assert payload.completion.deal_name == "Acme Corp"CODE
LOW⚡cognee/tests/unit/search/test_search_result_payload.py29 assert payload.model_dump()["completion"] == {"deal_name": "Acme Corp", "health": "Good"}CODE
LOW⚡cognee/tests/unit/search/test_search_result_payload.py90 completion={"deal_name": "Acme Corp", "health": "Good"},CODE
LOW⚡cognee/tests/unit/search/test_search_result_payload.py93 assert payload.completion == {"deal_name": "Acme Corp", "health": "Good"}CODE
LOW⚡cognee/tests/unit/search/test_search_result_payload.py94 assert payload.model_dump()["completion"] == {"deal_name": "Acme Corp", "health": "Good"}CODE
LOW⚡cognee/tests/unit/search/test_search_result_payload.py101 deal = DealBrief(deal_name="Acme Corp", health="Good")CODE
LOW⚡cognee/tests/unit/search/test_search_result_payload.py104 assert dumped["completion"] == {"deal_name": "Acme Corp", "health": "Good"}CODE
LOWcognee/tests/unit/users/tenants/test_role_visibility.py145 admin = FakeUser(uuid4(), email="admin@example.com")CODE
LOWcognee/tests/unit/users/tenants/test_role_visibility.py206 admin = FakeUser(uuid4(), email="admin@example.com")CODE
LOWcognee/tests/unit/api/test_datasets_graph_summary.py40 id=uuid4(), email="user@example.com", is_active=True, tenant_id=NoneCODE
LOWcognee/tests/unit/api/v1/test_serve_fail_loud.py47 "email": "user@example.com",CODE
LOWcognee/tests/unit/api/v1/test_serve_fail_loud.py63 assert "user@example.com" in messageCODE
LOWcognee/tests/unit/api/v1/test_serve_fail_loud.py169 "email": "user@example.com",CODE
LOW⚡cognee/tests/unit/api/v1/test_serve_fail_loud.py180 assert "user@example.com" in exc_info.value.messageCODE
LOW⚡cognee/tests/unit/api/v1/test_serve_fail_loud.py190 "email": "user@example.com",CODE
LOW⚡…sts/unit/infrastructure/engine/test_identity_fields.py192 assert PersonWithIdentity.id_for("John Doe") == PersonWithIdentity(name="John_Doe").idCODE
LOW…sts/unit/infrastructure/engine/test_identity_fields.py141 p1 = PersonWithIdentity(name="John Doe")CODE
LOW…sts/unit/infrastructure/engine/test_identity_fields.py218 for raw in ["John", "John Doe", "O'Brien", "New York City", "ALL CAPS", "mixed Case's"]:CODE
LOW⚡…sts/unit/modules/session_lifecycle/test_agent_usage.py242 user = SimpleNamespace(id=caller_id, tenant_id=tenant_id, email="admin@example.com")CODE
LOW⚡…sts/unit/modules/session_lifecycle/test_agent_usage.py246 {"id": str(caller_id), "email": "admin@example.com", "roles": []},CODE
LOW…sts/unit/modules/session_lifecycle/test_agent_usage.py279 assert result[1]["user_email"] == "admin@example.com"CODE
LOW⚡…e/tests/unit/modules/pipelines/test_provenance_mode.py191 _simulate_pipeline_task(dp, mode="lightweight", user_label="user@example.com")CODE
LOW⚡…e/tests/unit/modules/pipelines/test_provenance_mode.py192 assert dp.source_user == "user@example.com"CODE
LOW…unit/modules/provenance/test_record_provenance_task.py70 user=SimpleNamespace(email="user@example.com", id=uuid4()),CODE
LOW…unit/modules/provenance/test_record_provenance_task.py120 assert entry.agent_id == "user@example.com"CODE
LOW…unit/modules/provenance/test_provenance_entry_model.py13 agent_id="user@example.com",CODE
LOW…nit/modules/users/test_authenticated_websocket_user.py30 return SimpleNamespace(id=uuid4(), email="user@example.com", is_active=is_active)CODE
LOW⚡…nit/modules/users/test_authenticated_websocket_user.py238 assert connection.receive_json() == {"email": "user@example.com"}CODE
LOW…/unit/modules/users/test_conditional_authentication.py45 email="user@example.com",CODE
LOW…/unit/modules/users/test_conditional_authentication.py67 email="user@example.com",CODE
LOW⚡cognee/tests/unit/migration/test_import_source.py533 regular = SimpleNamespace(id=uuid4(), email="user@example.com", is_superuser=False)CODE
LOWcognee/tests/unit/migration/test_import_source.py502 superuser = SimpleNamespace(id=uuid4(), email="admin@example.com", is_superuser=True)CODE
LOW…nee/tests/unit/interfaces/graph/test_weighted_edges.py50 name="John Doe",CODE
LOWcognee/tests/backwards_compatibility/phase1_seed.py6Seeds the database with Lorem Ipsum data: add → cognify → search.STRING
LOWcognee/tests/backwards_compatibility/phase1_seed.py15Verifies that the current branch can search the legacy cognified data, then adds + cognifies new Lorem Ipsum data withSTRING
LOW⚡cognee/tests/backwards_compatibility/phase1_seed.py29Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt utCODE
LOW⚡cognee/tests/backwards_compatibility/phase1_seed.py29Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt utCODE
LOW⚡cognee/tests/backwards_compatibility/phase1_seed.py35Lorem ipsum is placeholder text commonly used in the graphic, print, and publishing industries forCODE
LOW⚡cognee/tests/backwards_compatibility/phase1_seed.py40SEARCH_QUERY = "What is Lorem Ipsum and where does it come from?"STRING
LOWcognee/tests/backwards_compatibility/phase1_seed.py131 print("Adding Lorem Ipsum text...")STRING
LOWcognee/tests/backwards_compatibility/phase2_verify.py6Seeds the database with Lorem Ipsum data: add → cognify → search.STRING
LOW⚡cognee/tests/backwards_compatibility/phase2_verify.py83Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt utCODE
LOW⚡cognee/tests/backwards_compatibility/phase2_verify.py83Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt utCODE
LOW⚡cognee/tests/backwards_compatibility/phase2_verify.py89Lorem ipsum is placeholder text commonly used in the graphic, print, and publishing industries forCODE
LOW⚡cognee/tests/backwards_compatibility/phase2_verify.py93Loren Ipsum Dolor sit amet, Lorem ipsum.CODE
LOW⚡cognee/tests/backwards_compatibility/phase2_verify.py93Loren Ipsum Dolor sit amet, Lorem ipsum.CODE
LOW⚡cognee/tests/backwards_compatibility/phase2_verify.py97SEARCH_QUERY = "What is Lorem Ipsum and where does it come from?"STRING
LOW⚡cognee/tests/backwards_compatibility/phase2_verify.py859 print("\n[Step 2] Re-adding + cognifying Lorem Ipsum with current branch...")STRING
LOWcognee/tests/api/test_agent_mode.py25_DUMMY_USER = User(email="test@test.com", hashed_password="!")CODE
LOW⚡…ee/infrastructure/databases/vector/embeddings/utils.py31 dummy_value = "."CODE
LOW⚡…ee/infrastructure/databases/vector/embeddings/utils.py33 return [t if is_embeddable(t) else dummy_value for t in text_list]CODE
12 more matches not shown…
Magic Placeholder Names17 hits · 85 pts
SeverityFileLineSnippetContext
HIGHCLAUDE.md605LLM_API_KEY="your_api_key"CODE
HIGHCLAUDE.md651BAML_LLM_API_KEY="your_api_key"CODE
HIGHcognee/api/v1/config/config.py183 cognee.config.set_llm_api_key("your-api-key")STRING
HIGHcognee-frontend/src/app/(app)/api-keys/ApiKeysPage.tsx268 <span style={{ fontSize: 12, color: "rgba(237,236,234,0.65)", fontFamily: 'ui-monospace, Menlo, Monaco, "CascaCODE
HIGHcognee-frontend/src/app/(app)/api-keys/ApiKeysPage.tsx269 <CopyBtn id="header" text={`X-Api-Key: <your-api-key>${tenantId ? `\nX-Tenant-Id: ${tenantId}` : ""}`} copiedFCODE
HIGH…pp/(app)/dashboard/partials/AgentConnectionSection.tsx50 const resolvedKey = apiKey ?? "your-api-key";CODE
HIGH…/(app)/integrations/partials/SetupConnectorSection.tsx22 const resolvedKey = apiKey || "your-api-key";CODE
HIGH…-frontend/src/app/(app)/onboarding/ConnectionSteps.tsx234 ' api_key="<your-api-key>"',CODE
HIGH…-frontend/src/app/(app)/onboarding/ConnectionSteps.tsx283 ' api_key="your-api-key"',CODE
HIGH…-frontend/src/app/(app)/onboarding/ConnectionSteps.tsx487 ' api_key="<your-api-key>"',CODE
HIGH…-frontend/src/app/(app)/onboarding/ConnectionSteps.tsx547 ' -H "X-Api-Key: <your-api-key>"',CODE
HIGH…-frontend/src/app/(app)/onboarding/ConnectionSteps.tsx787 ' api_key="your-api-key"',CODE
HIGH…-frontend/src/app/(app)/onboarding/ConnectionSteps.tsx855 ' api_key="your-api-key"',CODE
HIGH…-frontend/src/app/(app)/onboarding/ConnectionSteps.tsx888 ' api_key="your-api-key"',CODE
HIGH…rc/app/(setup)/onboarding/partials/AgentOnboarding.tsx37 const resolvedKey = apiKey || "your-api-key";CODE
HIGH…/comprehensive_example/cognee_comprehensive_example.py20os.environ["LLM_API_KEY"] = "your_api_key"CODE
HIGH…issions/user_permissions_and_access_control_example.py34 # os.environ["LLM_API_KEY"] = "your-api-key"COMMENT
AI Slop Vocabulary27 hits · 54 pts
SeverityFileLineSnippetContext
MEDIUMcognee/tests/test_release_multi_user_e2e.py225 """Flatten a search response to one string, robust to result wrapper shape."""STRING
MEDIUMcognee/tests/integration/test_belongs_to_set_neo4j.py301 # Force the merged detag query to fail. Whitelist the harnessCOMMENT
LOW⚡…ee/tests/cli_tests/cli_unit_tests/test_cli_commands.py661 # Should not raise exception, just returnCOMMENT
LOW⚡…ee/tests/cli_tests/cli_unit_tests/test_cli_commands.py690 # Should not raise exception, just return with error messageCOMMENT
LOW…ee/tests/cli_tests/cli_unit_tests/test_cli_commands.py832 # Should not raise exception, just return with error messageCOMMENT
MEDIUM…/e2e/docker/test_docker_multi_tenant_access_control.py14Depends on: #3358 (Docker E2E harness).STRING
MEDIUMcognee/cli/commands/eval_command.py35 # harness (and its optional deps) unless the eval command is used.STRING
MEDIUMcognee/api/v1/health/health.py257 """Get comprehensive health status."""STRING
MEDIUM…ee/infrastructure/databases/utils/closing_lru_cache.py245 # (a proxy finalizer can fire at exit). That's fine: harness'sCOMMENT
LOW…structure/databases/vector/pgvector/PGVectorAdapter.py665 # If limit is still 0, no need to do the search, just return empty resultsCOMMENT
MEDIUM…put_framework/litellm_instructor/llm/get_llm_client.py96 # Delegates completions to the host harness via MCP sampling (no API key).COMMENT
MEDIUMcognee/modules/visualization/semantic_clusters.py145 label the seam then discards, and no dependency on the #3601 harness.STRING
LOWcognee/modules/agents/models.py16# your client matches one, otherwise just use your own lowercase name.COMMENT
LOWcognee/modules/storage/utils/__init__.py19 # if the obj is uuid, we simply return the value of uuidCOMMENT
MEDIUMcognee/modules/cognify/rollback.py276 # Important ordering for robust retries:COMMENT
LOW⚡…/users/authentication/api_key/get_api_key_transport.py41 # No login response for API key auth — just return unchangedCOMMENT
LOW⚡…/users/authentication/api_key/get_api_key_transport.py45 # No logout response for API key auth — just return unchangedCOMMENT
MEDIUMcognee/modules/sync/models/SyncOperation.py94 """Get comprehensive progress information."""STRING
MEDIUMcognee-frontend/package-lock.json11994 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz",CODE
LOW…hierarchy/organizational_hierarchy_pipeline_example.py72 # No manual dict-based deduplication needed — just create instances freely.COMMENT
MEDIUMscripts/docker_validation.sh49 # harness (cognee/tests/deployment/mcp_harness.py), which boots the image withCOMMENT
MEDIUM.github/workflows/performance_report_rust.yml101 # cognee-rs supplies the CLI, the perf harness, and the committed cassette.COMMENT
MEDIUM.github/workflows/performance_report_rust.yml303 # Attribute timings to the Rust code and retain the Python harness SHA.COMMENT
MEDIUMcognee_db_workers/lancedb_worker.py143 # Serialize the arrow Table via pyarrow's IPC stream for robust transfer.COMMENT
MEDIUMnotebooks/data/guido_contributions.json57 "before_code": "\n # We should always patch indirect dependencies, even in full (non-incremental) buiCODE
MEDIUMnotebooks/data/guido_contributions.json59 "diff_context": "\n # We should always patch indirect dependencies, even in full (non-incremental) buCODE
LOWnotebooks/data/guido_contributions.json824 "description": "Make the new bug templates less markup-heavy (#9438)\n\n- Remove emoji\r\n- Instead of `## H2 headinCODE
Hallucination Indicators3 hits · 30 pts
SeverityFileLineSnippetContext
CRITICAL…e/tests/unit/infrastructure/llm/test_ollama_adapter.py76 adapter.aclient.chat.completions.create.assert_awaited_once()CODE
CRITICAL…e/tests/unit/infrastructure/llm/test_ollama_adapter.py100 adapter.aclient.chat.completions.create.assert_awaited_once()CODE
CRITICAL…e/tests/unit/infrastructure/llm/test_ollama_adapter.py128 adapter.client.chat.completions.create.assert_awaited_once()CODE
Slop Phrases15 hits · 28 pts
SeverityFileLineSnippetContext
LOWcognee/tests/test_lancedb.py311 # Note: make sure to call test_vector_engine_search_with_nodeset_filtering()COMMENT
LOWcognee/tests/test_pgvector.py342 # Note: make sure to call test_vector_engine_search_with_nodeset_filtering()STRING
MEDIUMcognee/modules/integrations/linear/agent_session.py214 "i'm unable to",CODE
MEDIUMcognee/modules/integrations/slack/handle_cognee_ask.py282 "i'm unable to",CODE
MEDIUM…/old/mem0_01042025/metrics_output_mem0_human_eval.json114 "answer": "Based on the provided context, there is no mention of Robert Croft or a facility where he worked as aCODE
MEDIUM…/old/mem0_01042025/metrics_output_mem0_human_eval.json334 "answer": "The provided context does not contain information about the town where Black Crescent Mountain is locCODE
MEDIUM…/old/mem0_01042025/metrics_output_mem0_human_eval.json444 "answer": "The context provided does not contain information about Jalen Jones or the arena where his NBA team pCODE
MEDIUM…/old/mem0_01042025/metrics_output_mem0_direct_llm.json114 "answer": "Based on the provided context, there is no mention of Robert Croft or a facility where he worked as aCODE
MEDIUM…/old/mem0_01042025/metrics_output_mem0_direct_llm.json334 "answer": "The provided context does not contain information about the town where Black Crescent Mountain is locCODE
MEDIUM…/old/mem0_01042025/metrics_output_mem0_direct_llm.json444 "answer": "The context provided does not contain information about Jalen Jones or the arena where his NBA team pCODE
MEDIUMevals/old/mem0_01042025/metrics_output_mem0.json194 "answer": "Based on the provided context, there is no mention of Robert Croft or a facility where he worked as aCODE
MEDIUMevals/old/mem0_01042025/metrics_output_mem0.json574 "answer": "The provided context does not contain information about the town where Black Crescent Mountain is locCODE
MEDIUMevals/old/mem0_01042025/metrics_output_mem0.json764 "answer": "The context provided does not contain information about Jalen Jones or the arena where his NBA team pCODE
LOWcognee-frontend/src/app/(graph)/GraphVisualization.tsx269 links: [{ source: 1, target: 2, label: "but don't forget to" }, { source: 2, target: 3, label: "and after thCODE
MEDIUM…ional_database_to_knowledge_graph_migration_example.py54# NOTE: If you don't have a DB you want to migrate you can try it out with ourCOMMENT
Dead Code7 hits · 14 pts
SeverityFileLineSnippetContext
MEDIUM…ts/unit/tasks/ingestion/test_dlt_stable_manifest_id.py61CODE
MEDIUM…/tests/unit/modules/visualization/test_graph_stream.py153CODE
MEDIUM…/tests/unit/modules/visualization/test_graph_stream.py345CODE
MEDIUM…modules/pipelines/test_run_tasks_data_item_sessions.py96CODE
MEDIUM…les/pipelines/test_incremental_passthrough_metadata.py59CODE
MEDIUM…/modules/pipelines/test_telemetry_failure_isolation.py195CODE
MEDIUM…/modules/users/test_get_default_user_db_not_created.py29CODE
Example Usage Blocks7 hits · 11 pts
SeverityFileLineSnippetContext
LOW⚡…ls/old/hotpot_qa_24_2025/src/qa/qa_benchmark_cognee.py169 # Example usageCOMMENT
LOWevals/old/hotpot_qa_24_2025/src/qa/qa_benchmark_mem0.py102 # Example usageCOMMENT
LOW…/old/hotpot_qa_24_2025/src/qa/qa_benchmark_lightrag.py80 # Example usageCOMMENT
LOWdistributed/deploy/modal-deploy.sh6# Usage:COMMENT
LOWdistributed/deploy/fly-deploy.sh6# Usage:COMMENT
LOW…ntegrations/docker-sandbox-kit/cognee-memory/spec.yaml4# Usage:COMMENT
LOWscripts/fetch_ladybug_json_extension.sh11# Usage:COMMENT
TODO Padding2 hits · 4 pts
SeverityFileLineSnippetContext
LOW⚡cognee/api/v1/sync/sync.py911 # TODO: consider adding retriesCOMMENT
LOW⚡cognee/api/v1/sync/sync.py915 # TODO: consider adding retriesCOMMENT
Overly Generic Function Names3 hits · 2 pts
SeverityFileLineSnippetContext
LOWcognee/tests/unit/tasks/code_graph/test_code_repo.py25 (tmp_path / "lib" / "util.py").write_text("def helper():\n pass\n")CODE
LOW…utput_framework/litellm_instructor/llm/rate_limiter.py16 def my_function():STRING
LOW…utput_framework/litellm_instructor/llm/rate_limiter.py26 def my_function():STRING