Repository Analysis

topoteretes/cognee

Cognee is the open-source AI memory platform for agents. Give your AI agents persistent long-term memory across sessions with a self-hosted knowledge graph engine.

27.2 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of topoteretes/cognee, a Python project with 27,823 GitHub stars. SynthScan v2.0 examined 353,706 lines of code across 2350 source files, recording 7118 pattern matches distributed across 24 syntactic categories. The overall adjusted score of 27.2 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

27.2
Adjusted Score
27.2
Raw Score
100%
Time Factor
2026-07-14
Last Push
27.8K
Stars
Python
Language
353.7K
Lines of Code
2.4K
Files
7.1K
Pattern Hits
2026-07-14
Scan Date
0.12
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 1HIGH 279MEDIUM 605LOW 6233

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 7118 distinct pattern matches across 24 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers3550 hits · 3588 pts
SeverityFileLineSnippetContext
LOWcognee/context_global_variables.py43async def set_session_user_context_variable(user):CODE
LOWcognee/context_global_variables.py47def multi_user_support_possible():CODE
LOWcognee/context_global_variables.py96def backend_access_control_enabled():CODE
LOWcognee/context_global_variables.py147 async def apply_database_context_variables(CODE
LOWcognee/context_global_variables.py303def set_database_global_context_variables(CODE
LOWcognee/run_migrations.py11async def run_relational_migrations():CODE
LOWcognee/tasks/memify/cognify_agent_trace_feedback.py12async def cognify_agent_trace_feedback(CODE
LOWcognee/tasks/memify/extract_agent_trace_feedbacks.py28async def extract_agent_trace_feedbacks(CODE
LOWcognee/tasks/memify/get_triplet_datapoints.py13def _build_datapoint_type_index_mapping() -> Dict[str, List[str]]:CODE
LOWcognee/tasks/memify/get_triplet_datapoints.py72def _extract_relationship_text(CODE
LOWcognee/tasks/memify/apply_frequency_weights.py94async def _mark_frequency_processed(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
LOWcognee/tasks/memify/global_context_index/load.py19def global_context_summary_level(attributes: dict[str, Any]) -> int | None:CODE
LOWcognee/tasks/memify/global_context_index/load.py26def is_root_global_context_summary(attributes: dict[str, Any]) -> bool:CODE
LOWcognee/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
LOW…mify/global_context_index/bucketing/graph/placement.py188def _normalize_existing_graph_buckets(CODE
LOW…mify/global_context_index/bucketing/graph/placement.py209def _has_positive_entity_weight(CODE
LOW…mify/global_context_index/bucketing/graph/placement.py216def _build_entity_to_bucket_ids(CODE
LOW…mify/global_context_index/bucketing/graph/placement.py246def _build_entity_to_summary_ids(CODE
LOW…mify/global_context_index/bucketing/graph/placement.py257def _choose_existing_graph_bucket(CODE
LOW…mify/global_context_index/bucketing/graph/placement.py323def _first_available_misc_bucket(CODE
LOW…mify/global_context_index/bucketing/graph/placement.py379def _assign_summary_to_graph_bucket(CODE
LOW…mify/global_context_index/bucketing/graph/placement.py394def _assign_summary_to_misc_bucket(CODE
3490 more matches not shown…
Decorative Section Separators441 hits · 1515 pts
SeverityFileLineSnippetContext
MEDIUMcognee/__init__.py18# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/__init__.py20# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/__init__.py52# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/__init__.py54# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/resolve_dlt_sources.py209# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/resolve_dlt_sources.py211# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/gmail.py69# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/gmail.py71# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/gmail.py123# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/gmail.py125# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/gmail.py212# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/gmail.py214# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/gmail.py268# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/gmail.py270# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/gmail.py406# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/connectors/gmail.py408# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_delete_two_documents_empty_store.py132 # ------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_delete_two_documents_empty_store.py136 # ------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_delete_two_documents_empty_store.py210 # ------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_delete_two_documents_empty_store.py212 # ------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_delete_two_documents_empty_store.py287 # ------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_delete_two_documents_empty_store.py289 # ------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_delete_two_documents_empty_store.py303 # ------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_delete_two_documents_empty_store.py305 # ------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/tasks/test_gmail_connector.py125# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/tasks/test_gmail_connector.py127# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/tasks/test_gmail_connector.py171# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/tasks/test_gmail_connector.py173# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/tasks/test_gmail_connector.py194# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/tasks/test_gmail_connector.py196# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/tasks/test_gmail_connector.py276# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/tasks/test_gmail_connector.py278# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/tasks/test_gmail_connector.py30# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/tasks/test_gmail_connector.py32# ---------------------------------------------------------------------------COMMENT
MEDIUM…e/tests/unit/tasks/memify/test_global_context_index.py1388# ---------------------------------------------------------------------------COMMENT
MEDIUM…e/tests/unit/tasks/memify/test_global_context_index.py1390# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/pipelines/test_bound_task_pipeline.py8# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/pipelines/test_bound_task_pipeline.py10# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/pipelines/test_bound_task_pipeline.py42# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/pipelines/test_bound_task_pipeline.py44# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/pipelines/test_bound_task_pipeline.py29# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/pipelines/test_bound_task_pipeline.py31# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_api_error_responses.py81# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_api_error_responses.py83# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_api_error_responses.py140# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_api_error_responses.py142# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_api_error_responses.py169# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_api_error_responses.py171# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_api_error_responses.py245# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_api_error_responses.py247# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_api_error_responses.py317# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_api_error_responses.py319# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_api_error_responses.py367# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_api_error_responses.py369# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_delete_ontology.py22# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_delete_ontology.py24# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_delete_ontology.py61# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_delete_ontology.py63# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_delete_ontology.py164# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_delete_ontology.py166# ---------------------------------------------------------------------------COMMENT
381 more matches not shown…
Unused Imports1214 hits · 1160 pts
SeverityFileLineSnippetContext
LOWcognee/root_dir.py2CODE
LOWcognee/__init__.py21CODE
LOWcognee/__init__.py22CODE
LOWcognee/__init__.py23CODE
LOWcognee/__init__.py24CODE
LOWcognee/__init__.py25CODE
LOWcognee/__init__.py26CODE
LOWcognee/__init__.py27CODE
LOWcognee/__init__.py28CODE
LOWcognee/__init__.py29CODE
LOWcognee/__init__.py30CODE
LOWcognee/__init__.py31CODE
LOWcognee/__init__.py31CODE
LOWcognee/__init__.py32CODE
LOWcognee/__init__.py32CODE
LOWcognee/__init__.py32CODE
LOWcognee/__init__.py32CODE
LOWcognee/__init__.py32CODE
LOWcognee/__init__.py39CODE
LOWcognee/__init__.py42CODE
LOWcognee/__init__.py43CODE
LOWcognee/__init__.py46CODE
LOWcognee/__init__.py47CODE
LOWcognee/__init__.py50CODE
LOWcognee/__init__.py55CODE
LOWcognee/__init__.py55CODE
LOWcognee/__init__.py55CODE
LOWcognee/__init__.py55CODE
LOWcognee/__init__.py55CODE
LOWcognee/__init__.py55CODE
LOWcognee/__init__.py55CODE
LOWcognee/__init__.py55CODE
LOWcognee/__init__.py55CODE
LOWcognee/__init__.py55CODE
LOWcognee/__init__.py55CODE
LOWcognee/__init__.py55CODE
LOWcognee/__init__.py69CODE
LOWcognee/__init__.py69CODE
LOWcognee/__init__.py69CODE
LOWcognee/__init__.py69CODE
LOWcognee/__init__.py73CODE
LOWcognee/__init__.py76CODE
LOWcognee/__init__.py76CODE
LOWcognee/__init__.py76CODE
LOWcognee/__init__.py76CODE
LOWcognee/__init__.py76CODE
LOWcognee/__init__.py85CODE
LOWcognee/__init__.py88CODE
LOWcognee/__init__.py88CODE
LOWcognee/__init__.py89CODE
LOWcognee/low_level.py1CODE
LOWcognee/low_level.py2CODE
LOWcognee/context_global_variables.py11CODE
LOWcognee/context_global_variables.py18CODE
LOWcognee/tasks/memify/__init__.py9CODE
LOWcognee/tasks/memify/__init__.py10CODE
LOWcognee/tasks/memify/__init__.py11CODE
LOWcognee/tasks/memify/__init__.py12CODE
LOWcognee/tasks/memify/__init__.py13CODE
LOWcognee/tasks/memify/__init__.py14CODE
1154 more matches not shown…
Cross-File Repetition197 hits · 985 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
HIGH…es/custom_pipelines/custom_cognify_pipeline_example.py0natural language processing (nlp) is an interdisciplinary subfield of computer science and information retrieval.STRING
HIGHexamples/demos/simple_cognee_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…permissions_example/tenant_role_constraints_example.py0a quantum computer is a computer that takes advantage of quantum mechanical phenomena. at small scales, physical matter STRING
HIGH…example/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
HIGH…tions/permissions_example/tenant_role_setup_example.py0a quantum computer is a computer that takes advantage of quantum mechanical phenomena. at small scales, physical matter STRING
HIGH…ons/permissions_example/data_access_control_example.py0a quantum computer is a computer that takes advantage of quantum mechanical phenomena. at small scales, physical matter 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
HIGH…nfrastructure/databases/cache/test_sql_adapter_crud.py0legacy get_all_qas returns same as get_all_qa_entries.STRING
HIGH…rastructure/databases/cache/test_redis_adapter_crud.py0legacy get_latest_qa returns same as get_latest_qa_entries.STRING
HIGH…infrastructure/databases/cache/test_fs_adapter_crud.py0legacy get_latest_qa returns same as get_latest_qa_entries.STRING
HIGH…nfrastructure/databases/cache/test_sql_adapter_crud.py0legacy get_latest_qa returns same as get_latest_qa_entries.STRING
137 more matches not shown…
Excessive Try-Catch Wrapping818 hits · 819 pts
SeverityFileLineSnippetContext
LOWcognee/tasks/codingagents/coding_rule_associations.py86 except Exception as e:CODE
LOWcognee/tasks/memify/cognify_agent_trace_feedback.py53 except Exception as error:CODE
LOWcognee/tasks/memify/extract_agent_trace_feedbacks.py114 except Exception as error:CODE
LOWcognee/tasks/memify/extract_agent_trace_feedbacks.py129 except Exception as error:CODE
LOWcognee/tasks/memify/get_triplet_datapoints.py243 except Exception as e:CODE
LOWcognee/tasks/memify/get_triplet_datapoints.py279 except Exception as e:CODE
LOWcognee/tasks/memify/cognify_session.py52 except Exception as e:CODE
LOWcognee/tasks/memify/extract_user_sessions.py69 except Exception as e:CODE
LOWcognee/tasks/memify/extract_user_sessions.py79 except Exception as e:CODE
LOW…completion/entity_extractors/regex_entity_extractor.py70 except Exception as e:CODE
LOW…y_completion/entity_extractors/llm_entity_extractor.py70 except Exception as e:CODE
LOWcognee/tasks/ingestion/resolve_dlt_sources.py369 except Exception:CODE
LOWcognee/tasks/ingestion/ingest_dlt_source.py112 except Exception as e:CODE
LOWcognee/tasks/ingestion/ingest_dlt_source.py134 except Exception as e:CODE
LOWcognee/tasks/ingestion/ingest_dlt_source.py153 except Exception as e:CODE
LOWcognee/tasks/ingestion/ingest_dlt_source.py265 except Exception as e:CODE
LOWcognee/tasks/ingestion/utils.py24 except Exception:CODE
LOWcognee/tasks/ingestion/connectors/gmail.py132 except Exception: # pragma: no cover - defensiveCODE
LOWcognee/tasks/ingestion/connectors/gmail.py252 except Exception as exc: # pragma: no cover - network/permission dependentCODE
LOWcognee/tasks/ingestion/connectors/gmail.py263 except Exception as exc: # pragma: no cover - network dependentCODE
LOWcognee/tasks/ingestion/connectors/gmail.py343 except Exception as exc:CODE
LOW…nee/tasks/temporal_awareness/index_graphiti_objects.py19 except Exception as e:CODE
MEDIUM…nee/tasks/temporal_awareness/index_graphiti_objects.py12def index_and_transform_graphiti_nodes_and_edges():CODE
LOWcognee/tasks/web_scraper/default_url_crawler.py125 except Exception:CODE
LOWcognee/tasks/web_scraper/default_url_crawler.py206 except Exception as e:CODE
LOWcognee/tasks/web_scraper/default_url_crawler.py254 except Exception as e:CODE
LOWcognee/tasks/web_scraper/default_url_crawler.py276 except Exception:CODE
LOWcognee/tasks/web_scraper/default_url_crawler.py307 except Exception as exc:CODE
LOWcognee/tasks/web_scraper/default_url_crawler.py371 except Exception as exc:CODE
LOWcognee/tasks/web_scraper/default_url_crawler.py444 except Exception as e:CODE
LOWcognee/tasks/web_scraper/utils.py81 except Exception as e:CODE
LOWcognee/tasks/translation/translate_content.py174 except Exception as e:CODE
LOWcognee/tasks/translation/detect_language.py162 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.py102 except Exception as e:CODE
LOWcognee/tasks/translation/providers/llm_provider.py142 except Exception:CODE
LOWcognee/tasks/translation/providers/google_provider.py41 except Exception as e:CODE
LOWcognee/tasks/translation/providers/google_provider.py51 except Exception as e:CODE
LOWcognee/tasks/translation/providers/google_provider.py100 except Exception as e:CODE
LOWcognee/tasks/translation/providers/google_provider.py156 except Exception as e:CODE
LOWcognee/tasks/storage/index_graph_edges.py88 except Exception as e:CODE
LOWcognee/tasks/chunks/create_chunk_associations.py67 except Exception as e:CODE
LOWcognee/tasks/chunks/create_chunk_associations.py166 except Exception as e:CODE
LOWcognee/tasks/chunks/create_chunk_associations.py181 except Exception as e:CODE
LOWcognee/tasks/chunks/create_chunk_associations.py225 except Exception as e:CODE
LOWcognee/tasks/cleanup/cleanup_unused_data.py162 except Exception as e:CODE
LOWcognee/tests/test_shared_node_preservation.py458 except Exception as e:CODE
LOWcognee/tests/test_chunk_associations.py32 except Exception:CODE
LOWcognee/tests/test_delete_by_id.py141 except Exception as e:CODE
LOWcognee/tests/test_delete_by_id.py158 except Exception as e:CODE
LOWcognee/tests/test_delete_by_id.py175 except Exception as e:CODE
LOWcognee/tests/test_delete_by_id.py194 except Exception as e:CODE
LOWcognee/tests/test_delete_by_id.py220 except Exception as e:CODE
LOWcognee/tests/test_delete_by_id.py244 except Exception as e:CODE
LOWcognee/tests/test_delete_by_id.py292 except Exception as e:CODE
LOWcognee/tests/test_search_db.py49 except Exception:CODE
LOWcognee/tests/test_agent_memory_e2e.py28 except Exception:CODE
LOWcognee/tests/test_subprocess_rss.py185 except Exception:CODE
LOWcognee/tests/test_usage_logger_e2e.py22 except Exception:CODE
758 more matches not shown…
Self-Referential Comments85 hits · 260 pts
SeverityFileLineSnippetContext
MEDIUMcognee/tasks/ingestion/migrate_relational_database.py33 # Create a mapping of node_id to node objects for referencing in edge creationCOMMENT
MEDIUMcognee/tasks/ingestion/migrate_relational_database.py157 # Create a mapping of node_id to node objects for referencing in edge creationCOMMENT
MEDIUMcognee/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.py8 # 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.py75 # Create the dataset so search can find it by nameCOMMENT
MEDIUMcognee/tests/test_graph_visualization_permissions.py114 # Create a user without any permissions to the datasetCOMMENT
MEDIUMcognee/tests/test_graph_model_from_schema.py12 # Create a clean slate for cognee -- reset data and system stateCOMMENT
MEDIUMcognee/tests/test_graph_model_from_schema.py25 # Define a custom graph model for programming languages.COMMENT
MEDIUMcognee/tests/test_custom_model.py14 # 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_telemetry.py27 # Create the file with a test ID if it doesn't existCOMMENT
MEDIUMcognee/tests/test_dataset_delete.py37 # Create a clean slate for cognee -- reset data and system stateCOMMENT
MEDIUMcognee/tests/test_multi_tenancy.py22 # Create a clean slate for cognee -- reset data and system stateCOMMENT
MEDIUM…unit/entity_extraction/regex_entity_extraction_test.py265 # Create a minimal test config fileCOMMENT
MEDIUM…frastructure/test_embedding_rate_limiting_realistic.py34 # Create a fresh config instance and verify settingsCOMMENT
MEDIUM…frastructure/test_embedding_rate_limiting_realistic.py41 # Create a mock embedding engineCOMMENT
MEDIUM…frastructure/test_embedding_rate_limiting_realistic.py51 # Create a list of tasks to simulate concurrent requestsCOMMENT
MEDIUM…frastructure/test_embedding_rate_limiting_realistic.py170 # Create a mock engine configured to fail every 3rd requestCOMMENT
MEDIUM…sts/unit/infrastructure/databases/test_rate_limiter.py106 # Create a fresh instanceCOMMENT
MEDIUM…sts/unit/infrastructure/databases/test_rate_limiter.py127 # Create a fresh instanceCOMMENT
MEDIUM…l/graph_completion_retriever_context_extension_test.py168 # Create a second edge for extension roundsCOMMENT
MEDIUM…l/graph_completion_retriever_context_extension_test.py632 # Create a second edge for extension roundsCOMMENT
MEDIUM…l/graph_completion_retriever_context_extension_test.py881 # Create a second edge for extension roundsCOMMENT
MEDIUM…t/modules/retrieval/test_brute_force_triplet_search.py413 # 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.py26 # Create an event loop and run the coroutineCOMMENT
MEDIUM…ee/tests/cli_tests/cli_unit_tests/test_cli_commands.py26 # Create an event loop and run the coroutineCOMMENT
MEDIUMcognee/tests/api/test_backend_auth.py52 # Create an API key using the bearer tokenCOMMENT
MEDIUMcognee/tests/api/test_backend_auth.py138 # Create an API key with HASH_API_KEY=True activeCOMMENT
MEDIUMcognee/tests/e2e/postgres/test_postgres_adapter.py338 # Create a fake type with __name__ == "Entity"COMMENT
MEDIUMcognee/shared/graph_model_utils.py176 # Create a clean slate for cognee -- reset data and system stateCOMMENT
MEDIUMcognee/shared/graph_model_utils.py189 # Define a custom graph model for programming languages.COMMENT
MEDIUMcognee/shared/utils.py323 # Create the serverCOMMENT
MEDIUMcognee/shared/logging_utils.py188 # Create the log entryCOMMENT
MEDIUMcognee/shared/logging_utils.py531 # 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.py97 # Create a temporary script fileCOMMENT
MEDIUMcognee/api/v1/ui/ui.py244 # 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.py131 # Create a format the dispatcher can handleCOMMENT
MEDIUMcognee/api/v1/responses/routers/get_responses_router.py159 # Create the response object with all processed tool callsCOMMENT
MEDIUMcognee/api/v1/agents/agents.py53 # Create an agent with read/write on a datasetSTRING
MEDIUMcognee/api/v1/serve/management_api.py140 # Create a new key with retriesCOMMENT
MEDIUMcognee/api/v1/sync/sync.py728 # Create a temporary file-like object from the bytesCOMMENT
MEDIUM…e/databases/relational/sqlalchemy/SqlAlchemyAdapter.py431 # Create a MetaData instance to load table informationCOMMENT
MEDIUM…e/databases/relational/sqlalchemy/SqlAlchemyAdapter.py435 # Define the full table nameCOMMENT
MEDIUM…e/databases/relational/sqlalchemy/SqlAlchemyAdapter.py655 # Create a MetaData instance to load table informationCOMMENT
MEDIUMcognee/infrastructure/databases/dataset_queue/queue.py162 # Create the slot dict for this task up front so callers can writeCOMMENT
MEDIUM…frastructure/databases/graph/neptune_driver/adapter.py581 # Create the bulk-edge OpenCypher query using UNWINDSTRING
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.py69# Define an Enum for LLM ProvidersCOMMENT
MEDIUMcognee/modules/storage/utils/__init__.py47 # Create a base class with the same configuration as DataPointCOMMENT
MEDIUMcognee/modules/storage/utils/__init__.py51 # Create the model inheriting from the configured baseCOMMENT
MEDIUMevals/old/mem0_01042025/hotpot_qa_mem0.py29 # Create a conversation that includes the document contentCOMMENT
MEDIUMevals/src/analysis/analyze_results.py48 # Create a copy with just the metric mean, sorted descendingCOMMENT
MEDIUMevals/src/qa/qa_benchmark_cognee.py90 # Create a clean slate for cogneeCOMMENT
MEDIUM…-frontend/src/app/(app)/onboarding/ConnectionSteps.tsx540 "# Create an API key",CODE
25 more matches not shown…
Docstring Block Structure46 hits · 230 pts
SeverityFileLineSnippetContext
HIGHcognee/tasks/memify/extract_agent_trace_feedbacks.py34 Extract step-level agent trace content for the current user. Retrieves either stored ``session_feedback`` valuSTRING
HIGHcognee/tasks/memify/extract_user_sessions.py16 Extract Q&A sessions for the current user via SessionManager. Retrieves all Q&A triplets from specified sessioSTRING
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.py133Scrape 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.py347Validate and configure arguments for web_scraper_task. Args: tavily_api_key: API key for Tavily. exSTRING
HIGHcognee/tasks/web_scraper/web_scraper_task.py382Extract 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.py184Fetch and cache robots.txt data. Args: domain_root: The root URL (e.g., "https://example.com"). STRING
HIGHcognee/tasks/web_scraper/default_url_crawler.py280Fetch a URL using HTTPX with retries. Args: url: The URL to fetch. Returns: stSTRING
HIGHcognee/tasks/web_scraper/default_url_crawler.py322Fetch and render a URL using Playwright for JavaScript content. Args: url: The URL to fetch. STRING
HIGHcognee/tasks/web_scraper/default_url_crawler.py389Fetch and extract content from URLs using BeautifulSoup or Playwright. Args: urls: A single URL, liSTRING
HIGHcognee/tasks/web_scraper/utils.py18Fetch content from one or more URLs using the specified tool. This function retrieves web page content using eitherSTRING
HIGHcognee/tasks/web_scraper/utils.py90Fetch content from URLs using the Tavily API. Args: urls: A single URL (str) or a list of URLs (List[str]) STRING
HIGHcognee/tasks/translation/detect_language.py93 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.py66Integrate chunk graphs with ontology validation and store in databases. This function processes document chunks andSTRING
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.py259Inner decorator that wraps the function with usage logging. Args: func: The async function to wrap STRING
HIGHcognee/shared/usage_logger.py280Wrapper function that executes the original function and logs usage. This wrapper: - Extracts uSTRING
HIGHcognee/api/v1/ontologies/ontologies.py95 Upload ontology files with their respective keys. Args: ontology_key: List of unique keys STRING
HIGHcognee/api/v1/ontologies/ontologies.py130 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.py78 Search and query the knowledge graph for insights, information, and connections. This is the final step in theSTRING
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.py3551 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
HIGHcognee/infrastructure/engine/models/DataPoint.py334 Convert the DataPoint instance to a dictionary representation. This method uses the model's built-in fSTRING
HIGHcognee/infrastructure/loaders/core/csv_loader.py48 Load and process the csv file. Args: file_path: Path to the file to load encodSTRING
HIGHcognee/infrastructure/loaders/core/audio_loader.py67 Load and process the audio file. Args: file_path: Path to the file to load **kSTRING
HIGHcognee/infrastructure/loaders/core/image_loader.py81 Load and process the image file. Args: file_path: Path to the file to load **kSTRING
HIGHcognee/infrastructure/loaders/core/text_loader.py54 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.py259Extract content from HTML using BeautifulSoup or lxml XPath. Args: html: The HTML content to extracSTRING
HIGHcognee/infrastructure/loaders/external/pypdf_loader.py38 Load PDF file and extract text content. Args: file_path: Path to the PDF file STRING
HIGH…infrastructure/loaders/external/unstructured_loader.py75 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.py13 Create and return an ontology resolver instance based on environment parameters. Currently, this function suppSTRING
HIGHcognee/modules/search/methods/search.py64 Args: query_text: query_type: datasets: user: system_prompt_path: STRING
HIGH…ules/retrieval/utils/description_to_codepart_search.py30 Maps a code description query to relevant code parts using a CodeGraph pipeline. Args: query (str): ThSTRING
HIGH…/permissions/methods/has_user_management_permission.py14 Check if requester is allowed to manage users for a tenant. The requester is allowed if they are the tenant owSTRING
HIGHcognee/modules/sync/methods/update_sync_operation.py15 Retry database operations with exponential backoff for transient failures. Args: operation_func: AsyncSTRING
HIGH…/extract_graph_from_data_with_entity_disambiguation.py65Integrate chunk graphs with ontology validation and store in databases. This function processes document chunks andSTRING
Deep Nesting186 hits · 170 pts
SeverityFileLineSnippetContext
LOWcognee/tasks/codingagents/coding_rule_associations.py55CODE
LOWcognee/tasks/memify/extract_agent_trace_feedbacks.py28CODE
LOWcognee/tasks/memify/get_triplet_datapoints.py13CODE
LOWcognee/tasks/memify/get_triplet_datapoints.py169CODE
LOWcognee/tasks/memify/apply_feedback_weights.py71CODE
LOWcognee/tasks/memify/extract_user_sessions.py12CODE
LOWcognee/tasks/memify/apply_frequency_weights.py51CODE
LOW…ify/global_context_index/bucketing/vector/placement.py179CODE
LOWcognee/tasks/ingestion/save_data_item_to_storage.py28CODE
LOWcognee/tasks/ingestion/resolve_data_directories.py10CODE
LOWcognee/tasks/ingestion/data_item_to_text_file.py36CODE
LOWcognee/tasks/ingestion/migrate_relational_database.py155CODE
LOWcognee/tasks/ingestion/connectors/gmail.py301CODE
LOWcognee/tasks/web_scraper/default_url_crawler.py319CODE
LOWcognee/tasks/translation/translate_content.py17CODE
LOWcognee/tasks/storage/index_data_points.py73CODE
LOWcognee/tasks/chunks/chunk_by_sentence.py32CODE
LOWcognee/tests/test_relational_db_migration.py68CODE
LOWcognee/tests/test_relational_db_migration.py234CODE
LOWcognee/tests/test_release_multi_user_e2e.py507CODE
LOW…infrastructure/session/test_session_sdk_integration.py59CODE
LOWcognee/tests/utils/filter_overlapping_entities.py1CODE
LOWcognee/tests/utils/filter_overlapping_relationships.py4CODE
LOWcognee/tests/performance/locust_performance_analysis.py321CODE
LOWcognee/tests/performance/batch_add_cognify_test.py105CODE
LOWcognee/shared/usage_logger.py114CODE
LOWcognee/shared/cache.py247CODE
LOWcognee/shared/logging_utils.py271CODE
LOWcognee/shared/logging_utils.py157CODE
LOWcognee/cli/minimal_cli.py16CODE
LOWcognee/cli/api_dispatch.py159CODE
LOWcognee/cli/api_dispatch.py229CODE
LOWcognee/cli/api_dispatch.py279CODE
LOWcognee/cli/_cognee.py124CODE
LOWcognee/cli/_cognee.py208CODE
LOWcognee/cli/_cognee.py218CODE
LOWcognee/cli/commands/delete_command.py34CODE
LOWcognee/cli/commands/delete_command.py87CODE
LOWcognee/cli/commands/remember_command.py59CODE
LOWcognee/cli/commands/remember_command.py65CODE
LOWcognee/cli/commands/search_command.py81CODE
LOWcognee/cli/commands/cognify_command.py74CODE
LOWcognee/cli/commands/cognify_command.py104CODE
LOWcognee/cli/commands/recall_command.py68CODE
LOWcognee/cli/commands/config_command.py58CODE
LOWcognee/cli/commands/config_command.py87CODE
LOWcognee/exceptions/exceptions.py10CODE
LOW…ee/memify_pipelines/consolidate_entity_descriptions.py60CODE
LOWcognee/eval_framework/analysis/metrics_calculator.py31CODE
LOW…gnee/eval_framework/benchmark_adapters/beam_adapter.py81CODE
LOW…gnee/eval_framework/benchmark_adapters/beam_adapter.py192CODE
LOWcognee/api/client.py131CODE
LOWcognee/api/v1/ui/node_setup.py32CODE
LOWcognee/api/v1/ui/node_setup.py76CODE
LOWcognee/api/v1/ui/node_setup.py141CODE
LOWcognee/api/v1/ui/node_setup.py210CODE
LOWcognee/api/v1/ui/ui.py79CODE
LOWcognee/api/v1/ui/ui.py193CODE
LOWcognee/api/v1/ui/ui.py424CODE
LOWcognee/api/v1/ui/ui.py95CODE
126 more matches not shown…
Structural Annotation Overuse65 hits · 116 pts
SeverityFileLineSnippetContext
LOWREADME.md113### Step 1: Install CogneeCOMMENT
LOWREADME.md121### Step 2: Configure the LLMCOMMENT
LOWREADME.md130### Step 3: Run the PipelineCOMMENT
LOWcognee/tests/unit/api/test_ontology_endpoint.py160 # Step 1: Upload two ontologies (one-by-one)COMMENT
LOWcognee/tests/unit/api/test_ontology_endpoint.py189 # Step 2: Verify ontologies are listedCOMMENT
LOWcognee/tests/unit/api/test_ontology_endpoint.py196 # Step 3: Test cognify with multiple ontologiesCOMMENT
LOWcognee/eval_framework/run_beam_eval.py49 # Step 1: Build corpus (ingest conversation into cognee)COMMENT
LOWcognee/eval_framework/run_beam_eval.py55 # Step 2: Answer probing questions (routed by question type)COMMENT
LOWcognee/eval_framework/run_beam_eval.py59 # Step 3: Evaluate with rubric metricCOMMENT
LOWcognee/eval_framework/run_beam_eval.py63 # Step 4: DashboardCOMMENT
LOW…nee/eval_framework/evaluation/run_evaluation_module.py65 # Step 1: Evaluate answers if requestedCOMMENT
LOW…nee/eval_framework/evaluation/run_evaluation_module.py71 # Step 2: Calculate metrics if requestedCOMMENT
LOWcognee/api/v1/add/add.py125 # Step 1: Add your data (text content or file path)STRING
LOWcognee/api/v1/add/add.py130 # Step 2: Process into knowledge graphSTRING
LOWcognee/api/v1/add/add.py133 # Step 3: Search and querySTRING
LOWcognee/api/v1/serve/serve.py136 # Step 1: Check for saved credentialsCOMMENT
LOWcognee/api/v1/serve/serve.py174 # Step 2: Device Code FlowCOMMENT
LOWcognee/api/v1/serve/serve.py185 # Step 3: Discover or create tenantCOMMENT
LOWcognee/api/v1/serve/serve.py195 # Step 4: Get service URLCOMMENT
LOWcognee/api/v1/serve/serve.py198 # Step 5: Get or create API keyCOMMENT
LOWcognee/api/v1/serve/serve.py201 # Step 6: Save credentialsCOMMENT
LOWcognee/api/v1/serve/serve.py215 # Step 7: ConnectCOMMENT
LOWcognee/api/v1/serve/device_auth.py66 # Step 1: Request device codeCOMMENT
LOWcognee/api/v1/serve/device_auth.py88 # Step 2: Show the user what to doCOMMENT
LOWcognee/api/v1/serve/device_auth.py99 # Step 3: Poll for tokenCOMMENT
LOWcognee/api/v1/sync/sync.py328 # Step 2: Trigger cognify processing once for all datasets (only if any files were uploaded)COMMENT
LOWcognee/api/v1/sync/sync.py350 # Step 3: Trigger local cognify processing if any files were downloadedCOMMENT
LOWcognee/api/v1/sync/sync.py427 # Step 1: Extract local file info with stored hashesCOMMENT
LOWcognee/api/v1/sync/sync.py435 # Step 2: Check what files are missing on cloudCOMMENT
LOWcognee/api/v1/sync/sync.py448 # Step 3: Upload files that are missing on cloudCOMMENT
LOWcognee/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.py1283 // Step 1: Collect all nodesCOMMENT
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py1287 // Step 2: Find all connected componentsCOMMENT
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py1297 // Step 3: Aggregate componentsCOMMENT
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py1300 // Step 4: Identify the largest connected componentCOMMENT
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py1307 // Step 5: Find nodes not in the largest connected componentCOMMENT
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py1891 # Step 2: Fetch all nodesSTRING
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py1903 # Step 3: Fetch all edges between collected nodesSTRING
LOW…frastructure/databases/graph/neptune_driver/adapter.py732 # Step 2: Fetch all nodesSTRING
LOW…frastructure/databases/graph/neptune_driver/adapter.py741 # Step 3: Fetch all edges between collected nodesSTRING
LOW…frastructure/databases/graph/neptune_driver/adapter.py712 # Step 1: Find all neighbor node IDs within depth hopsSTRING
LOWcognee/modules/truth_subspace/build.py130 # Step 1: accepted learning statements from session_learnings.COMMENT
LOWcognee/modules/truth_subspace/build.py211 # Step 5: LOAD nodes — ALL DocumentChunk nodes in the dataset (the chunkCOMMENT
LOWcognee/modules/truth_subspace/build.py252 # Step 6: EMBED node texts (batched) and compute coords per node.COMMENT
LOWcognee/modules/truth_subspace/build.py273 # Step 7: PERSIST per-node coordinate vectors.COMMENT
LOW…-frontend/src/app/(app)/onboarding/ServeOnboarding.tsx53// Step 1: Verify connectionCOMMENT
LOW…-frontend/src/app/(app)/onboarding/ServeOnboarding.tsx82// Step 2: SDK quickstartCOMMENT
LOW…-frontend/src/app/(app)/onboarding/ServeOnboarding.tsx119// Step 3: Test from UICOMMENT
LOW…-frontend/src/app/(app)/onboarding/ServeOnboarding.tsx205// Step 4: DoneCOMMENT
LOWdistributed/deploy/daytona_sandbox.py90 # Step 1: Install Cognee (streamed)COMMENT
LOWdistributed/deploy/daytona_sandbox.py95 # Step 2: Kill any existing server, then start freshCOMMENT
LOW…_pipelines/dynamic_steps_resume_analysis_hr_example.py164 # Step 1: Reset data and system stateSTRING
LOW…_pipelines/dynamic_steps_resume_analysis_hr_example.py173 # Step 2: Add textSTRING
LOW…_pipelines/dynamic_steps_resume_analysis_hr_example.py180 # Step 3: Create knowledge graphSTRING
LOW…_pipelines/dynamic_steps_resume_analysis_hr_example.py185 # Step 4: Query insightsSTRING
LOW…mporal_awareness_example/temporal_awareness_example.py17 # Step 1: Reset data and system stateCOMMENT
LOW…mporal_awareness_example/temporal_awareness_example.py20 # Step 2: Remember text and create temporal knowledge graph memoryCOMMENT
LOW…mporal_awareness_example/temporal_awareness_example.py36 # Step 3: Query insightsCOMMENT
LOW…vocabulary/ontology_as_reference_vocabulary_example.py23 # Step 1: Reset data and system stateCOMMENT
5 more matches not shown…
Redundant / Tautological Comments79 hits · 110 pts
SeverityFileLineSnippetContext
LOWcognee/root_dir.py24 # Check if it's an S3 URL - S3 URLs are absolute by definitionCOMMENT
LOWcognee/tasks/ingestion/resolve_data_directories.py42 if isinstance(item, str): # Check if the item is a pathCODE
LOWcognee/tasks/ingestion/ingest_data.py196 # Check if data is already in datasetCOMMENT
LOWcognee/tasks/translation/detect_language.py146 # Check if translation is neededCOMMENT
LOWcognee/tasks/translation/providers/llm_provider.py140 # Check if API key is configured (required for most providers)COMMENT
LOWcognee/tests/test_shared_node_preservation.py266 # Check if Germany is still in vector indexCOMMENT
LOWcognee/tests/test_custom_data_label.py36 # Display resultsSTRING
LOWcognee/tests/test_custom_data_label.py57 # 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.py141 # Check if Triplet_text collection was createdCOMMENT
LOWcognee/tests/test_graph_model_from_schema.py64 # 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_telemetry.py21 # Check if .anon_id exists in the project rootCOMMENT
LOWcognee/tests/test_telemetry.py105 # Set ENV to dev which should disable telemetryCOMMENT
LOWcognee/tests/test_dataset_delete.py68 # Check if databases are properly created and exist before deletionSTRING
LOWcognee/tests/test_cognee_server_start.py33 # Check if server started with errorsCOMMENT
LOW…sts/unit/infrastructure/databases/test_rate_limiter.py145 # Print the resultsCOMMENT
LOWcognee/shared/graph_model_utils.py228 # Display resultsCOMMENT
LOWcognee/shared/cache.py174 # Check if already cached and validCOMMENT
LOWcognee/shared/logging_utils.py159 # Check if stream is available before trying to writeCOMMENT
LOWcognee/shared/logging_utils.py334 # Check if this is a LiteLLM-related loggerCOMMENT
LOWcognee/shared/logging_utils.py404 # Check if there's an exc_info that needs to be processedCOMMENT
LOWcognee/shared/logging_utils.py525 # 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.py235 # Check if nvm is installedCOMMENT
LOWcognee/api/v1/ui/node_setup.py318 # Check if nvm is installedCOMMENT
LOWcognee/api/v1/ui/ui.py207 # Check if already downloaded and up to dateCOMMENT
LOWcognee/api/v1/ui/ui.py732 # Check if process is still runningCOMMENT
LOWcognee/api/v1/datasets/routers/get_datasets_router.py540 # Check if matching_data contains an elementCOMMENT
LOWcognee/api/v1/responses/routers/get_responses_router.py118 # 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.py26 # 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.py79 # 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_.py279 # Check if the constraint covers ONLY the target columnSTRING
LOW…ons/46a6ce2bd2b2_expand_dataset_database_with_json_.py286 # Check if the constraint covers ONLY the target columnSTRING
LOW…e/databases/relational/sqlalchemy/SqlAlchemyAdapter.py356 # Check if any references to this data_id still exist in the DatasetData tableCOMMENT
LOW…e/databases/relational/sqlalchemy/SqlAlchemyAdapter.py375 # Check if other data objects point to the same raw data locationCOMMENT
LOW…e/databases/relational/sqlalchemy/SqlAlchemyAdapter.py440 # Check if table is in list of tables for the given schemaCOMMENT
LOWcognee/infrastructure/databases/graph/config.py99 # Check if absolute path is providedCOMMENT
LOWcognee/infrastructure/llm/config.py153 # Check if BAML is selected as structured output framework but not availableCOMMENT
LOW…tructured_output_framework/baml/baml_client/runtime.py129 # Check if already abortedCOMMENT
LOW…tructured_output_framework/baml/baml_client/runtime.py158 # Check if already abortedCOMMENT
LOW…ured_output_framework/baml/baml_client/async_client.py88 # Check if on_tick is providedCOMMENT
LOW…tured_output_framework/baml/baml_client/sync_client.py101 # Check if on_tick is providedCOMMENT
LOW…put_framework/litellm_instructor/llm/get_llm_client.py386 # 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.py24 # 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.py16 # 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
LOW…infrastructure/loaders/external/advanced_pdf_loader.py88 # Check if there is any contentCOMMENT
LOW…odules/graph/methods/delete_dataset_nodes_and_edges.py25 # 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.py35 # 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.py380 # Check if retriever info is found for the given query typeCOMMENT
LOWcognee/modules/search/methods/search.py271 # Check if graph for dataset is empty and log warnings if necessaryCOMMENT
LOWcognee/modules/retrieval/graph_completion_retriever.py131 # Check if all triplets are empty, in case of batch queriesCOMMENT
LOWcognee/modules/retrieval/graph_completion_retriever.py240 # Check if all triplets are empty, in case of batch queriesCOMMENT
LOW…modules/users/methods/store_principal_configuration.py30 # Check if a configuration with this name already exists for the principalCOMMENT
LOW…sers/permissions/methods/give_permission_on_dataset.py55 # Check if the ACL entry already exists to avoid duplicatesCOMMENT
19 more matches not shown…
Verbosity Indicators62 hits · 109 pts
SeverityFileLineSnippetContext
LOWcognee/tests/unit/api/test_ontology_endpoint.py160 # Step 1: Upload two ontologies (one-by-one)COMMENT
LOWcognee/tests/unit/api/test_ontology_endpoint.py189 # Step 2: Verify ontologies are listedCOMMENT
LOWcognee/tests/unit/api/test_ontology_endpoint.py196 # Step 3: Test cognify with multiple ontologiesCOMMENT
LOWcognee/eval_framework/run_beam_eval.py49 # Step 1: Build corpus (ingest conversation into cognee)COMMENT
LOWcognee/eval_framework/run_beam_eval.py55 # Step 2: Answer probing questions (routed by question type)COMMENT
LOWcognee/eval_framework/run_beam_eval.py59 # Step 3: Evaluate with rubric metricCOMMENT
LOWcognee/eval_framework/run_beam_eval.py63 # Step 4: DashboardCOMMENT
LOW…nee/eval_framework/evaluation/run_evaluation_module.py65 # Step 1: Evaluate answers if requestedCOMMENT
LOW…nee/eval_framework/evaluation/run_evaluation_module.py71 # Step 2: Calculate metrics if requestedCOMMENT
LOWcognee/api/v1/add/add.py125 # Step 1: Add your data (text content or file path)STRING
LOWcognee/api/v1/add/add.py130 # Step 2: Process into knowledge graphSTRING
LOWcognee/api/v1/add/add.py133 # Step 3: Search and querySTRING
LOWcognee/api/v1/serve/serve.py136 # Step 1: Check for saved credentialsCOMMENT
LOWcognee/api/v1/serve/serve.py174 # Step 2: Device Code FlowCOMMENT
LOWcognee/api/v1/serve/serve.py185 # Step 3: Discover or create tenantCOMMENT
LOWcognee/api/v1/serve/serve.py195 # Step 4: Get service URLCOMMENT
LOWcognee/api/v1/serve/serve.py198 # Step 5: Get or create API keyCOMMENT
LOWcognee/api/v1/serve/serve.py201 # Step 6: Save credentialsCOMMENT
LOWcognee/api/v1/serve/serve.py215 # Step 7: ConnectCOMMENT
LOWcognee/api/v1/serve/device_auth.py66 # Step 1: Request device codeCOMMENT
LOWcognee/api/v1/serve/device_auth.py88 # Step 2: Show the user what to doCOMMENT
LOWcognee/api/v1/serve/device_auth.py99 # Step 3: Poll for tokenCOMMENT
LOWcognee/api/v1/sync/sync.py328 # Step 2: Trigger cognify processing once for all datasets (only if any files were uploaded)COMMENT
LOWcognee/api/v1/sync/sync.py350 # Step 3: Trigger local cognify processing if any files were downloadedCOMMENT
LOWcognee/api/v1/sync/sync.py427 # Step 1: Extract local file info with stored hashesCOMMENT
LOWcognee/api/v1/sync/sync.py435 # Step 2: Check what files are missing on cloudCOMMENT
LOWcognee/api/v1/sync/sync.py448 # Step 3: Upload files that are missing on cloudCOMMENT
LOWcognee/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.py1283 // Step 1: Collect all nodesCOMMENT
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py1287 // Step 2: Find all connected componentsCOMMENT
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py1297 // Step 3: Aggregate componentsCOMMENT
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py1300 // Step 4: Identify the largest connected componentCOMMENT
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py1307 // Step 5: Find nodes not in the largest connected componentCOMMENT
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py1891 # Step 2: Fetch all nodesSTRING
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py1903 # Step 3: Fetch all edges between collected nodesSTRING
LOW…frastructure/databases/graph/neptune_driver/adapter.py732 # Step 2: Fetch all nodesSTRING
LOW…frastructure/databases/graph/neptune_driver/adapter.py741 # Step 3: Fetch all edges between collected nodesSTRING
LOW…frastructure/databases/graph/neptune_driver/adapter.py712 # Step 1: Find all neighbor node IDs within depth hopsSTRING
LOWcognee/modules/truth_subspace/build.py130 # Step 1: accepted learning statements from session_learnings.COMMENT
LOWcognee/modules/truth_subspace/build.py211 # Step 5: LOAD nodes — ALL DocumentChunk nodes in the dataset (the chunkCOMMENT
LOWcognee/modules/truth_subspace/build.py252 # Step 6: EMBED node texts (batched) and compute coords per node.COMMENT
LOWcognee/modules/truth_subspace/build.py273 # Step 7: PERSIST per-node coordinate vectors.COMMENT
LOW…-frontend/src/app/(app)/onboarding/ServeOnboarding.tsx53// Step 1: Verify connectionCOMMENT
LOW…-frontend/src/app/(app)/onboarding/ServeOnboarding.tsx82// Step 2: SDK quickstartCOMMENT
LOW…-frontend/src/app/(app)/onboarding/ServeOnboarding.tsx119// Step 3: Test from UICOMMENT
LOW…-frontend/src/app/(app)/onboarding/ServeOnboarding.tsx205// Step 4: DoneCOMMENT
LOWdistributed/deploy/daytona_sandbox.py90 # Step 1: Install Cognee (streamed)COMMENT
LOWdistributed/deploy/daytona_sandbox.py95 # Step 2: Kill any existing server, then start freshCOMMENT
LOW…_pipelines/dynamic_steps_resume_analysis_hr_example.py164 # Step 1: Reset data and system stateSTRING
LOW…_pipelines/dynamic_steps_resume_analysis_hr_example.py173 # Step 2: Add textSTRING
LOW…_pipelines/dynamic_steps_resume_analysis_hr_example.py180 # Step 3: Create knowledge graphSTRING
LOW…_pipelines/dynamic_steps_resume_analysis_hr_example.py185 # Step 4: Query insightsSTRING
LOW…mporal_awareness_example/temporal_awareness_example.py17 # Step 1: Reset data and system stateCOMMENT
LOW…mporal_awareness_example/temporal_awareness_example.py20 # Step 2: Remember text and create temporal knowledge graph memoryCOMMENT
LOW…mporal_awareness_example/temporal_awareness_example.py36 # Step 3: Query insightsCOMMENT
LOW…vocabulary/ontology_as_reference_vocabulary_example.py23 # Step 1: Reset data and system stateCOMMENT
LOW…vocabulary/ontology_as_reference_vocabulary_example.py37 # Step 2: Remember text using the ontology-backed graph config.COMMENT
LOW…vocabulary/ontology_as_reference_vocabulary_example.py42 # Step 3: Query insightsCOMMENT
LOWnotebooks/data/guido_contributions.json698 "before_code": " if literal(expr) == LITERAL_TYPE:\n vartype = type_map[expr]\CODE
2 more matches not shown…
Magic Placeholder Names17 hits · 85 pts
SeverityFileLineSnippetContext
HIGHCLAUDE.md348LLM_API_KEY="your_api_key"CODE
HIGHCLAUDE.md386BAML_LLM_API_KEY="your_api_key"CODE
HIGHcognee/api/v1/config/config.py108 cognee.config.set_llm_api_key("your-api-key")STRING
HIGHcognee-frontend/src/app/(app)/api-keys/ApiKeysPage.tsx249 <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.tsx250 <CopyBtn id="header" text={`X-Api-Key: <your-api-key>${tenantId ? `\nX-Tenant-Id: ${tenantId}` : ""}`} copiedFCODE
HIGH…gnee-frontend/src/app/(app)/dashboard/OverviewPage.tsx1128 const resolvedKey = apiKey || "your-api-key";CODE
HIGHcognee-frontend/src/app/(app)/integrations/page.tsx357 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
HIGHcognee-frontend/src/app/(app)/onboarding/page.tsx723 const resolvedKey = apiKey || "<your-api-key>";CODE
HIGH…example/user_permissions_and_access_control_example.py24 # os.environ["LLM_API_KEY"] = "your-api-key"COMMENT
HIGH…/comprehensive_example/cognee_comprehensive_example.py9os.environ["LLM_API_KEY"] = "your_api_key"CODE
Modern Structural Boilerplate80 hits · 79 pts
SeverityFileLineSnippetContext
LOWcognee/tasks/memify/global_context_index/__init__.py4__all__ = ["extract_global_context_index_input", "update_global_context_index"]CODE
LOWcognee/tasks/ingestion/migrate_relational_database.py15logger = logging.getLogger(__name__)CODE
LOWcognee/tasks/ingestion/connectors/__init__.py17__all__ = ["gmail_source"]CODE
LOW…poral_awareness/build_graph_with_temporal_awareness.py12logger = logging.getLogger(__name__)CODE
LOWcognee/tasks/web_scraper/__init__.py28__all__ = [CODE
LOWcognee/tasks/translation/__init__.py67__all__ = [CODE
LOWcognee/tasks/translation/providers/__init__.py6__all__ = [CODE
LOWcognee/tasks/documents/extract_chunks_from_documents.py15async def update_document_token_count(document_id: UUID, token_count: int) -> None:CODE
LOWcognee/memory/__init__.py11__all__ = [CODE
LOWcognee/tests/unit/processing/chunks/test_input.py112__all__ = ["pad"]CODE
LOW…frastructure/test_embedding_rate_limiting_realistic.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
LOWcognee/pipelines/__init__.py40__all__ = [CODE
LOWcognee/shared/cache.py21logger = logging.getLogger(__name__)CODE
LOWcognee/cli/__init__.py6__all__ = [CODE
LOWcognee/api/v1/llm/__init__.py3__all__ = ["get_llm_router"]CODE
LOWcognee/api/v1/llm/routers/__init__.py3__all__ = ["get_llm_router"]CODE
LOWcognee/api/v1/ontologies/__init__.py4__all__ = ["OntologyService", "get_ontology_router"]CODE
LOWcognee/api/v1/config/config.py576 def set_graph_db_config(config_dict: dict) -> None:CODE
LOWcognee/api/v1/responses/dispatch_function.py16logger = logging.getLogger(__name__)CODE
LOWcognee/api/v1/responses/__init__.py3__all__ = ["get_responses_router"]CODE
LOWcognee/api/v1/responses/routers/__init__.py3__all__ = ["get_responses_router"]CODE
LOWcognee/api/v1/agents/__init__.py3__all__ = ["get_agents_router"]CODE
LOWcognee/api/v1/visualize/routers/__init__.py3__all__ = ["get_schema_router"]CODE
LOWcognee/api/v1/push/__init__.py3__all__ = ["PushResult", "push"]CODE
LOWcognee/api/v1/sessions/__init__.py3__all__ = ["get_sessions_router"]CODE
LOWcognee/api/v1/skills/__init__.py3__all__ = ["list_skills"]CODE
LOWcognee/api/v1/skills/routers/__init__.py3__all__ = ["get_skills_router"]CODE
LOWcognee/api/v1/serve/state.py19def set_remote_client(client: Optional["CloudClient"]) -> None:CODE
LOWcognee/api/v1/sync/__init__.py10__all__ = [CODE
LOWcognee/api/v1/sync/routers/__init__.py3__all__ = ["get_sync_router"]CODE
LOWcognee/api/v1/export/__init__.py3__all__ = ["export", "ExportResult"]CODE
LOWcognee/api/v1/proposals/routers/__init__.py3__all__ = ["get_proposals_router"]CODE
LOWcognee/api/v1/session/__init__.py16__all__ = [CODE
LOWcognee/infrastructure/locks/__init__.py3__all__ = ["release_improve_lock", "session_lock", "try_acquire_improve_lock"]CODE
LOWcognee/infrastructure/databases/cache/__init__.py5__all__ = ["get_cache_engine", "get_cache_config", "SessionQAEntry", "SessionAgentTraceEntry"]CODE
LOW…e/infrastructure/databases/cache/cache_db_interface.py188 async def set_value(self, key: str, value: str, ttl: int | None = None) -> None:CODE
LOWcognee/infrastructure/databases/cache/tapes/__init__.py3__all__ = ["TapesCacheAdapter"]CODE
LOW…e/infrastructure/databases/cache/redis/RedisAdapter.py498 async def set_value(self, key: str, value: str, ttl: int | None = None) -> None:CODE
LOW…frastructure/databases/cache/fscache/FsCacheAdapter.py395 async def set_value(self, key: str, value: str, ttl: int | None = None) -> None:CODE
LOWcognee/infrastructure/databases/cache/sql/__init__.py3__all__ = ["SqlCacheAdapter"]CODE
LOW…/infrastructure/databases/cache/sql/SqlCacheAdapter.py1030 async def set_value(self, key: str, value: str, ttl: Optional[int] = None) -> None:CODE
LOW…nee/infrastructure/databases/dataset_queue/__init__.py12__all__ = ["dataset_queue"]CODE
LOW…gnee/infrastructure/databases/graph/ladybug/adapter.py1617 async def set_graph_metadata(self, metadata: dict[str, str]) -> None:CODE
LOW…rastructure/databases/graph/ladybug/ladybug_migrate.py23__all__ = [CODE
LOWcognee/infrastructure/databases/graph/kuzu/adapter.py19__all__ = [CODE
LOW…nee/infrastructure/databases/graph/postgres/adapter.py1476 async def set_graph_metadata(self, metadata: dict[str, str]) -> None:STRING
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py1006 async def set_graph_metadata(self, metadata: dict[str, str]) -> None:STRING
LOW…rastructure/databases/graph/neptune_driver/__init__.py11__all__ = [CODE
LOWcognee/infrastructure/databases/unified/__init__.py6__all__ = [CODE
LOW…ee/infrastructure/databases/utils/closing_lru_cache.py96logger = logging.getLogger(__name__)CODE
LOWcognee/infrastructure/databases/provenance/__init__.py24__all__ = [CODE
LOW…tructured_output_framework/baml/baml_client/tracing.py26__all__ = ["trace", "set_tags", "flush", "on_log_event"]CODE
LOW…structured_output_framework/baml/baml_client/config.py88__all__ = [CODE
LOW…tructured_output_framework/baml/baml_client/globals.py37__all__ = []CODE
LOW…ructured_output_framework/baml/baml_client/__init__.py49__all__ = [STRING
LOW…t_framework/litellm_instructor/llm/bedrock/__init__.py5__all__ = ["BedrockAdapter"]CODE
LOWcognee/infrastructure/engine/models/DataPoint.py12logger = logging.getLogger(__name__)CODE
LOWcognee/infrastructure/engine/models/DataPoint.py287 def update_version(self) -> None:CODE
LOWcognee/infrastructure/loaders/__init__.py18__all__ = ["get_loader_engine", "use_loader", "LoaderInterface"]CODE
20 more matches not shown…
Cross-Language Confusion19 hits · 78 pts
SeverityFileLineSnippetContext
HIGHcognee/tests/test_neptune_analytics_vector.py124 # Always return trueCOMMENT
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
HIGHcognee/cli/commands/push_command.py99 return await cognee.push(STRING
HIGHcognee/api/v1/recall/routers/get_recall_router.py41 "Dataset names to search within. Omit (null) to search all datasets "CODE
HIGHcognee/api/v1/push/push.py27 """Outcome of a ``cognee.push()`` call."""STRING
HIGHcognee/api/v1/remember/remember.py720 "cognee.push() to upload the data to the remote instance."CODE
HIGHcognee/api/v1/remember/routers/get_remember_router.py40 """Import uploaded COGX archive tarballs (produced by ``cognee.push()``)."""STRING
HIGHcognee/modules/retrieval/utils/references.py72 Missing, null, non-string, or empty/whitespace-only values are treated asSTRING
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
HIGHdistributed/deploy/daytona_sandbox.py97 sandbox.process.exec("pkill -f uvicorn || true", timeout=5)CODE
HIGHcognee-mcp/src/server.py1394 "Build it with: cd cognee-mcp/apps-src && npm install && npm run build"CODE
AI Structural Patterns76 hits · 72 pts
SeverityFileLineSnippetContext
LOWcognee/tasks/web_scraper/default_url_crawler.py47CODE
LOWcognee/cli/api_client.py285CODE
LOW…s/logistics_system_utils/utils/world_creation_utils.py635CODE
LOW…rk_adapters/logistics_system_utils/entities/package.py93CODE
LOWcognee/api/v1/agents/agents.py158CODE
LOWcognee/api/v1/agents/agents.py214CODE
LOWcognee/api/v1/agents/routers/get_agents_router.py94CODE
LOWcognee/api/v1/cognify/cognify.py43CODE
LOWcognee/api/v1/recall/recall.py336CODE
LOWcognee/api/v1/search/search.py31CODE
LOWcognee/api/v1/add/add.py25CODE
LOWcognee/api/v1/remember/remember.py625CODE
LOWcognee/api/v1/remember/routers/get_remember_router.py109CODE
LOW…e/infrastructure/databases/cache/cache_db_interface.py133CODE
LOW…nee/infrastructure/databases/cache/get_cache_engine.py63CODE
LOW…e/infrastructure/databases/cache/redis/RedisAdapter.py24CODE
LOW…e/infrastructure/databases/cache/redis/RedisAdapter.py176CODE
LOW…e/infrastructure/databases/cache/redis/RedisAdapter.py357CODE
LOW…frastructure/databases/cache/fscache/FsCacheAdapter.py130CODE
LOW…frastructure/databases/cache/fscache/FsCacheAdapter.py271CODE
LOW…/infrastructure/databases/cache/sql/SqlCacheAdapter.py326CODE
LOW…/infrastructure/databases/cache/sql/SqlCacheAdapter.py599CODE
LOW…nee/infrastructure/databases/graph/get_graph_engine.py243CODE
LOW…nee/infrastructure/databases/graph/get_graph_engine.py380CODE
LOW…/databases/vector/embeddings/LiteLLMEmbeddingEngine.py62CODE
LOW…ured_output_framework/baml/baml_client/async_client.py160CODE
LOW…ured_output_framework/baml/baml_client/async_client.py183CODE
LOW…tured_output_framework/baml/baml_client/sync_client.py172CODE
LOW…tured_output_framework/baml/baml_client/sync_client.py195CODE
LOW…put_framework/litellm_instructor/llm/gemini/adapter.py55CODE
LOW…work/litellm_instructor/llm/generic_llm_api/adapter.py90CODE
LOW…amework/litellm_instructor/llm/azure_openai/adapter.py53CODE
LOW…_framework/litellm_instructor/llm/llama_cpp/adapter.py70CODE
LOW…put_framework/litellm_instructor/llm/openai/adapter.py69CODE
LOW…nee/infrastructure/files/storage/FileBufferedReader.py16CODE
LOWcognee/infrastructure/session/session_manager.py310CODE
LOWcognee/infrastructure/session/session_manager.py574CODE
LOWcognee/modules/agent_memory/decorator.py29CODE
LOWcognee/modules/memify/memify.py25CODE
LOWcognee/modules/session_lifecycle/metrics.py370CODE
LOWcognee/modules/graph/cognee_graph/CogneeGraph.py226CODE
LOWcognee/modules/agents/registry.py126CODE
LOWcognee/modules/pipelines/operations/pipeline.py82CODE
LOWcognee/modules/pipelines/operations/pipeline.py123CODE
LOWcognee/modules/pipelines/operations/run_tasks.py58CODE
LOW…/modules/pipelines/operations/run_tasks_distributed.py89CODE
LOW…/modules/pipelines/operations/run_tasks_distributed.py86CODE
LOWcognee/modules/search/methods/search.py40CODE
LOWcognee/modules/search/methods/search.py153CODE
LOWcognee/modules/search/methods/search.py213CODE
LOWcognee/modules/search/methods/search.py241CODE
LOWcognee/modules/retrieval/agentic_retriever.py82CODE
LOWcognee/modules/retrieval/agentic_retriever.py290CODE
LOW…/retrieval/graph_completion_decomposition_retriever.py33CODE
LOWcognee/modules/retrieval/graph_completion_retriever.py44CODE
LOWcognee/modules/retrieval/hybrid_retriever.py36CODE
LOW…odules/retrieval/graph_summary_completion_retriever.py20CODE
LOWcognee/modules/retrieval/temporal_retriever.py36CODE
LOW…rieval/graph_completion_context_extension_retriever.py21CODE
LOW…ee/modules/retrieval/graph_completion_cot_retriever.py53CODE
16 more matches not shown…
Over-Commented Block79 hits · 70 pts
SeverityFileLineSnippetContext
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/tasks/storage/add_data_points.py101COMMENT
LOWcognee/api/v1/responses/default_tools.py61 # "type": "function",COMMENT
LOW…e/databases/relational/sqlalchemy/SqlAlchemyAdapter.py81COMMENT
LOW…gnee/infrastructure/databases/graph/ladybug/adapter.py321 # this — see ``close()``'s docstring for the cross-loop reason.COMMENT
LOW…gnee/infrastructure/databases/graph/ladybug/adapter.py641 # Submit + check-closed atomically underCOMMENT
LOW…gnee/infrastructure/databases/graph/ladybug/adapter.py901 # Idempotent — a second close() sees the flag and returns.COMMENT
LOW…gnee/infrastructure/databases/graph/ladybug/adapter.py3261 # those files, so it MUST hold the same lock — otherwise a peerCOMMENT
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py61COMMENT
LOW…infrastructure/databases/unified/get_unified_engine.py61 embedding_engine=embedding_engine,COMMENT
LOW…ee/infrastructure/databases/utils/closing_lru_cache.py121# generous on purpose: reaching it means the close is wedged or its completionCOMMENT
LOW…ee/infrastructure/databases/utils/closing_lru_cache.py241 # ``asyncio.wrap_future`` yields control so this task can run (no deadlock).COMMENT
LOW…ee/infrastructure/databases/utils/closing_lru_cache.py461 raise TypeError("maxsize must be an int or None")COMMENT
LOW…e/infrastructure/databases/vector/get_vector_engine.py21 if the old one was evicted (recovery path). Code that stores the returnCOMMENT
LOW…nfrastructure/databases/vector/create_vector_engine.py81 # Check USE_UNIFIED_PROVIDER outside the cache so it's always re-readCOMMENT
LOW…rastructure/databases/vector/lancedb/LanceDBAdapter.py81COMMENT
LOW…rastructure/databases/vector/lancedb/LanceDBAdapter.py181 # Guards lifecycle state — the ``connection``, ``_session`` andCOMMENT
LOW…ured_output_framework/baml/baml_client/type_builder.py1# ----------------------------------------------------------------------------COMMENT
LOWcognee/modules/visualization/views/inspector.js1// Schema type inspector side panel (PR3 + instance drill-down).COMMENT
LOWcognee/modules/visualization/views/semantic_map.js1// Semantic-map view — a meaning-space scatter of the graph.COMMENT
LOWcognee/modules/visualization/views/schema_view.js1// Schema view (Phase 2 redesign): explicit-position ontology diagram.COMMENT
LOWcognee/modules/visualization/views/memory_map.js1// Memory-map view (STEP 2).COMMENT
LOWcognee/modules/graph/methods/upsert_nodes.py61 for start_index in range(0, len(node_rows), UPSERT_BATCH_SIZE):COMMENT
LOW…e/modules/graph/utils/get_model_instance_from_graph.py1from collections import OrderedDictCOMMENT
LOWcognee/modules/graph/models/Edge.py41 DateTime(timezone=True), default=lambda: datetime.now(timezone.utc), nullable=FalseCOMMENT
LOWcognee/modules/graph/models/Node.py41 )COMMENT
LOWcognee/modules/graph/models/Node.py61# event.listen(Node.__table__, "after_create", enable_node_rls)COMMENT
LOWcognee/modules/migration/sources/base.py41 # facts) to keep memory bounded. Set False on one-shot sources (e.g. liveCOMMENT
LOWcognee-frontend/types/troika-three-utils.d.ts21// remove(...args: any[]): void;COMMENT
LOWcognee-frontend/types/troika-three-utils.d.ts41// computeBoundingBox(...args: any[]): void;COMMENT
LOWcognee-frontend/types/troika-three-utils.d.ts81// static DEFAULT_MATRIX_AUTO_UPDATE: boolean;COMMENT
LOWcognee-frontend/types/troika-three-utils.d.ts101COMMENT
LOWcognee-frontend/types/troika-three-utils.d.ts261// function toArray(...args: any[]): void;COMMENT
LOWcognee-frontend/types/troika-three-utils.d.ts421// function transformDirection(...args: any[]): void;COMMENT
LOWcognee-frontend/types/troika-three-utils.d.ts441// name: string;COMMENT
LOWcognee-frontend/types/troika-three-utils.d.ts461// name: string;COMMENT
LOWcognee-frontend/types/troika-three-text.d.ts21// remove(...args: any[]): void;COMMENT
LOWcognee-frontend/types/troika-three-text.d.ts41// computeBoundingBox(...args: any[]): void;COMMENT
LOWcognee-frontend/types/troika-three-text.d.ts81// static DEFAULT_MATRIX_AUTO_UPDATE: boolean;COMMENT
LOWcognee-frontend/types/troika-three-text.d.ts101COMMENT
LOWcognee-frontend/types/troika-three-text.d.ts261// function toArray(...args: any[]): void;COMMENT
LOWcognee-frontend/types/troika-three-text.d.ts421// function transformDirection(...args: any[]): void;COMMENT
LOWcognee-frontend/types/troika-three-text.d.ts441// name: string;COMMENT
LOWcognee-frontend/types/troika-three-text.d.ts461// name: string;COMMENT
LOWcognee-frontend/src/app/(app)/onboarding/page.tsx221COMMENT
LOWcognee-frontend/src/app/(graph)/GraphVisualization.tsx81 }COMMENT
LOWcognee-frontend/src/app/(graph)/GraphVisualization.tsx101 // }COMMENT
LOWcognee-frontend/src/modules/datasets/cognifyDataset.ts41 ...(options?.llmModel && { llmModel: options.llmModel }),COMMENT
LOWcognee-frontend/src/modules/datasets/cognifyDataset.ts61 // const data = JSON.parse(event.data);COMMENT
LOWcognee-frontend/src/data/prompts.ts461// plugin/skill's remember tools).COMMENT
LOWtools/check-package.sh1##!/usr/bin/env bashCOMMENT
LOWtools/check-package.sh21# fiCOMMENT
LOWdistributed/deploy/daytona.yaml1# Daytona is now an SDK-based cloud sandbox platform.COMMENT
LOWdeployment/helm/Chart.yaml1apiVersion: v2COMMENT
LOWdeployment/helm/Chart.yaml21# incremented each time you make changes to the application. Versions are not expected toCOMMENT
LOWexamples/demos/pipeline_api_proposal.py21# Before (current):COMMENT
LOWexamples/demos/pipeline_api_proposal.py161# 4a. Semaphore-based concurrency (replaces batch-based parallelism)COMMENT
19 more matches not shown…
Fake / Example Data47 hits · 58 pts
SeverityFileLineSnippetContext
LOWcognee/tests/unit/test_context_global_variables.py80 fake_user = SimpleNamespace(id=user_id, tenant_id=None)CODE
LOWcognee/tests/unit/test_context_global_variables.py96 return fake_userCODE
LOWcognee/tests/unit/test_agents_sdk_cli.py450 fake_user = _make_user()CODE
LOWcognee/tests/unit/test_agents_sdk_cli.py453 return fake_userCODE
LOWcognee/tests/unit/test_agents_sdk_cli.py466 assert user is fake_userCODE
LOWcognee/tests/unit/search/test_search_result_payload.py22 deal = DealBrief(deal_name="Acme Corp", health="Good")CODE
LOWcognee/tests/unit/search/test_search_result_payload.py26 assert payload.completion.deal_name == "Acme Corp"CODE
LOWcognee/tests/unit/search/test_search_result_payload.py27 assert payload.model_dump()["completion"] == {"deal_name": "Acme Corp", "health": "Good"}CODE
LOWcognee/tests/unit/search/test_search_result_payload.py52 completion={"deal_name": "Acme Corp", "health": "Good"},CODE
LOWcognee/tests/unit/search/test_search_result_payload.py55 assert payload.completion == {"deal_name": "Acme Corp", "health": "Good"}CODE
LOWcognee/tests/unit/search/test_search_result_payload.py56 assert payload.model_dump()["completion"] == {"deal_name": "Acme Corp", "health": "Good"}CODE
LOWcognee/tests/unit/search/test_search_result_payload.py63 deal = DealBrief(deal_name="Acme Corp", health="Good")CODE
LOWcognee/tests/unit/search/test_search_result_payload.py66 assert dumped["completion"] == {"deal_name": "Acme Corp", "health": "Good"}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…/unit/modules/users/test_conditional_authentication.py46 email="user@example.com",CODE
LOW…/unit/modules/users/test_conditional_authentication.py68 email="user@example.com",CODE
LOWcognee/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.py48 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.py10Verifies that the current branch can search the v0.5.7 cognified data, then adds + cognifies new Lorem Ipsum data withSTRING
LOWcognee/tests/backwards_compatibility/phase1_seed.py21Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt utCODE
LOWcognee/tests/backwards_compatibility/phase1_seed.py21Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt utCODE
LOWcognee/tests/backwards_compatibility/phase1_seed.py27Lorem ipsum is placeholder text commonly used in the graphic, print, and publishing industries forCODE
LOWcognee/tests/backwards_compatibility/phase1_seed.py32SEARCH_QUERY = "What is Lorem Ipsum and where does it come from?"STRING
LOWcognee/tests/backwards_compatibility/phase1_seed.py42 print("Adding Lorem Ipsum text...")STRING
LOWcognee/tests/backwards_compatibility/phase2_verify.py6Seeds the database with Lorem Ipsum data: add → cognify → search.STRING
LOWcognee/tests/backwards_compatibility/phase2_verify.py64Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt utCODE
LOWcognee/tests/backwards_compatibility/phase2_verify.py64Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt utCODE
LOWcognee/tests/backwards_compatibility/phase2_verify.py70Lorem ipsum is placeholder text commonly used in the graphic, print, and publishing industries forCODE
LOWcognee/tests/backwards_compatibility/phase2_verify.py74Loren Ipsum Dolor sit amet, Lorem ipsum.CODE
LOWcognee/tests/backwards_compatibility/phase2_verify.py74Loren Ipsum Dolor sit amet, Lorem ipsum.CODE
LOWcognee/tests/backwards_compatibility/phase2_verify.py78SEARCH_QUERY = "What is Lorem Ipsum and where does it come from?"STRING
LOWcognee/tests/backwards_compatibility/phase2_verify.py463 print("\n[Step 2] Re-adding + cognifying Lorem Ipsum with current branch...")CODE
LOWcognee/tests/api/test_agent_mode.py24_DUMMY_USER = User(email="test@test.com", hashed_password="!")CODE
LOW…ee/infrastructure/databases/vector/embeddings/utils.py32 dummy_value = "."CODE
LOW…ee/infrastructure/databases/vector/embeddings/utils.py34 return [t if is_embeddable(t) else dummy_value for t in text_list]CODE
LOWcognee/infrastructure/llm/extraction/texts.json2 "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standaCODE
LOWcognee/infrastructure/llm/extraction/texts.json3 "It is a long established fact that a reader will be distracted by the readable content of a page when looking at its CODE
LOWcognee/infrastructure/llm/extraction/texts.json4 "Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literatCODE
LOWcognee/infrastructure/llm/extraction/texts.json4 "Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literatCODE
LOWcognee/infrastructure/llm/extraction/texts.json5 "The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 andCODE
LOWcognee/infrastructure/llm/extraction/texts.json6 "There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some forCODE
LOWcognee-starter-kit/src/data/people.json3 "name": "John Doe",CODE
LOW…om_pipelines/organizational_hierarchy/data/people.json3 "name": "John Doe",CODE
Modern AI Meta-Vocabulary14 hits · 42 pts
SeverityFileLineSnippetContext
MEDIUMcognee/skill.md309### What Cognee gives agentic workflowsCOMMENT
MEDIUM…it/modules/retrieval/test_include_references_wiring.py29# CompletionRetriever (RAG / chunk evidence)COMMENT
MEDIUMcognee/cli/_cognee.py353 # in-process. This is the correct mode for concurrent / multi-agent useCOMMENT
MEDIUMcognee/api/v1/recall/query_router.py93 # --- Reasoning / chain-of-thought ---COMMENT
MEDIUM…s/vector/embeddings/OpenAICompatibleEmbeddingEngine.py159 # Handle context window exceeded by splitting inputCOMMENT
MEDIUMcognee/infrastructure/llm/tokenizer/resolver.py154 # (e.g. a newly released embedding model), so guard the "never raises"COMMENT
MEDIUMcognee/infrastructure/llm/tokenizer/resolver.py194 # override wins, otherwise use the embedding model's own repo.COMMENT
MEDIUMcognee/modules/retrieval/agentic_retriever.py263 # Ungraded agentic executions use the neutral default score untilCOMMENT
MEDIUMevals/old/hotpot_50_corpus.json1["Lomonosov Moscow State University (MSU; Russian: \u041c\u043e\u0441\u043a\u043e\u0432\u0441\u043a\u0438\u0439 \u0433\uCODE
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
MEDIUMevals/src/qa/qa_benchmark_base.py103 # Get answer from RAG systemCOMMENT
MEDIUMevals/src/qa/qa_benchmark_base.py133 # Initialize RAG systemCOMMENT
MEDIUM…pelines/memify_coding_agent_rule_extraction_example.py73 # 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.py101 # the invoices related to the two customers, without any hallucinations or additional informationCOMMENT
AI Slop Vocabulary20 hits · 38 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.py302 # Force the merged detag query to fail. Whitelist the harnessCOMMENT
LOW…ee/tests/cli_tests/cli_unit_tests/test_cli_commands.py493 # Should not raise exception, just returnCOMMENT
LOW…ee/tests/cli_tests/cli_unit_tests/test_cli_commands.py522 # Should not raise exception, just return with error messageCOMMENT
LOW…ee/tests/cli_tests/cli_unit_tests/test_cli_commands.py572 # Should not raise exception, just return with error messageCOMMENT
MEDIUMcognee/api/v1/health/health.py245 """Get comprehensive health status."""STRING
MEDIUM…ee/infrastructure/databases/utils/closing_lru_cache.py214 # (a proxy finalizer can fire at exit). That's fine: harness'sCOMMENT
LOW…structure/databases/vector/pgvector/PGVectorAdapter.py492 # If limit is still 0, no need to do the search, just return empty resultsCOMMENT
MEDIUMcognee/modules/visualization/semantic_clusters.py144 label the seam then discards, and no dependency on the #3601 harness.STRING
LOWcognee/modules/storage/utils/__init__.py17 # if the obj is uuid, we simply return the value of uuidCOMMENT
MEDIUMcognee/modules/cognify/rollback.py214 # Important ordering for robust retries:COMMENT
LOW…/users/authentication/api_key/get_api_key_transport.py22 # No login response for API key auth — just return unchangedCOMMENT
LOW…/users/authentication/api_key/get_api_key_transport.py26 # No logout response for API key auth — just return unchangedCOMMENT
MEDIUMcognee/modules/sync/models/SyncOperation.py92 """Get comprehensive progress information."""STRING
LOW…hierarchy/organizational_hierarchy_pipeline_example.py62 # No manual dict-based deduplication needed — just create instances freely.COMMENT
MEDIUMcognee-mcp/apps-src/package-lock.json2255 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz",CODE
MEDIUMcognee_db_workers/lancedb_worker.py139 # 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
Slop Phrases13 hits · 24 pts
SeverityFileLineSnippetContext
LOWcognee/tests/test_lancedb.py306 # Note: make sure to call test_vector_engine_search_with_nodeset_filtering()COMMENT
LOWcognee/tests/test_pgvector.py321 # Note: make sure to call test_vector_engine_search_with_nodeset_filtering()STRING
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.tsx266 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.py42# NOTE: If you don't have a DB you want to migrate you can try it out with ourCOMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICAL…e/tests/unit/infrastructure/llm/test_ollama_adapter.py57 adapter.aclient.chat.completions.create.assert_awaited_once()CODE
Example Usage Blocks5 hits · 8 pts
SeverityFileLineSnippetContext
LOWevals/src/qa/qa_benchmark_cognee.py166 # Example usageCOMMENT
LOWevals/src/qa/qa_benchmark_mem0.py103 # Example usageCOMMENT
LOWevals/src/qa/qa_benchmark_lightrag.py80 # Example usageCOMMENT
LOWdistributed/deploy/modal-deploy.sh6# Usage:COMMENT
LOWdistributed/deploy/fly-deploy.sh6# Usage:COMMENT
TODO Padding2 hits · 4 pts
SeverityFileLineSnippetContext
LOWcognee/api/v1/sync/sync.py904 # TODO: consider adding retriesCOMMENT
LOWcognee/api/v1/sync/sync.py908 # TODO: consider adding retriesCOMMENT
Overly Generic Function Names2 hits · 1 pts
SeverityFileLineSnippetContext
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