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.

29.2 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of topoteretes/cognee, a Python project with 30,323 GitHub stars. SynthScan v2.0 examined 448,941 lines of code across 2936 source files, recording 9924 pattern matches distributed across 25 syntactic categories. The overall adjusted score of 29.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).

29.2
Adjusted Score
29.2
Raw Score
100%
Time Factor
2026-08-28
Last Push
30.3K
Stars
Python
Language
448.9K
Lines of Code
2.9K
Files
9.9K
Pattern Hits
2026-08-29
Scan Date
0.10
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 3HIGH 278MEDIUM 803LOW 8840

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 9924 distinct pattern matches across 25 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 Identifiers5620 hits · 5809 pts
SeverityFileLineSnippetContext
LOWcognee/base_config.py15def _tracing_explicitly_disabled() -> bool:CODE
LOWcognee/base_config.py52 def validate_personalization_knobs(self):CODE
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.py97def backend_access_control_enabled():CODE
LOWcognee/context_global_variables.py148 async def apply_database_context_variables(CODE
LOWcognee/context_global_variables.py324def set_database_global_context_variables(CODE
LOWcognee/run_migrations.py11async def run_relational_migrations():CODE
LOWcognee/tasks/memify/cognify_agent_trace_feedback.py13async 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
5560 more matches not shown…
Decorative Section Separators624 hits · 2182 pts
SeverityFileLineSnippetContext
MEDIUMslack-app-manifest.yml8# ── Local testing steps ──────────────────────────────────────────────────COMMENT
MEDIUMcognee/__init__.py34# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/__init__.py36# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/__init__.py70# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/__init__.py72# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/resolve_dlt_sources.py397# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tasks/ingestion/resolve_dlt_sources.py399# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_delete_two_documents_empty_store.py133 # ------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_delete_two_documents_empty_store.py137 # ------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_delete_two_documents_empty_store.py213 # ------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_delete_two_documents_empty_store.py215 # ------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_delete_two_documents_empty_store.py290 # ------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_delete_two_documents_empty_store.py292 # ------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_delete_two_documents_empty_store.py306 # ------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_delete_two_documents_empty_store.py308 # ------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_video_loader.py95# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_video_loader.py97# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_video_loader.py124# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_video_loader.py126# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_video_loader.py283# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_video_loader.py285# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_video_loader.py331# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_video_loader.py333# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_video_loader.py70# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/test_video_loader.py72# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/test_temporal_awareness.py24# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/test_temporal_awareness.py26# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/test_temporal_awareness.py44# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/test_temporal_awareness.py46# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/test_temporal_awareness.py75# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/test_temporal_awareness.py78# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/test_temporal_awareness.py122# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/test_temporal_awareness.py124# ---------------------------------------------------------------------------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.py222# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_api_error_responses.py224# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_api_error_responses.py163# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_api_error_responses.py165# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_api_error_responses.py251# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_api_error_responses.py253# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_api_error_responses.py327# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_api_error_responses.py329# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_api_error_responses.py400# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_api_error_responses.py402# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_api_error_responses.py450# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_api_error_responses.py452# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_api_error_responses.py514# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_api_error_responses.py516# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_api_error_responses.py549# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_api_error_responses.py551# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_api_error_responses.py562# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_api_error_responses.py564# ---------------------------------------------------------------------------COMMENT
MEDIUMcognee/tests/unit/api/test_delete_ontology.py22# ---------------------------------------------------------------------------COMMENT
564 more matches not shown…
Unused Imports1482 hits · 1408 pts
SeverityFileLineSnippetContext
LOWcognee/root_dir.py2CODE
LOWcognee/__init__.py37CODE
LOWcognee/__init__.py38CODE
LOWcognee/__init__.py39CODE
LOWcognee/__init__.py40CODE
LOWcognee/__init__.py41CODE
LOWcognee/__init__.py42CODE
LOWcognee/__init__.py43CODE
LOWcognee/__init__.py44CODE
LOWcognee/__init__.py45CODE
LOWcognee/__init__.py46CODE
LOWcognee/__init__.py47CODE
LOWcognee/__init__.py47CODE
LOWcognee/__init__.py48CODE
LOWcognee/__init__.py49CODE
LOWcognee/__init__.py49CODE
LOWcognee/__init__.py49CODE
LOWcognee/__init__.py49CODE
LOWcognee/__init__.py50CODE
LOWcognee/__init__.py50CODE
LOWcognee/__init__.py50CODE
LOWcognee/__init__.py50CODE
LOWcognee/__init__.py50CODE
LOWcognee/__init__.py57CODE
LOWcognee/__init__.py60CODE
LOWcognee/__init__.py61CODE
LOWcognee/__init__.py64CODE
LOWcognee/__init__.py65CODE
LOWcognee/__init__.py68CODE
LOWcognee/__init__.py73CODE
LOWcognee/__init__.py73CODE
LOWcognee/__init__.py73CODE
LOWcognee/__init__.py73CODE
LOWcognee/__init__.py73CODE
LOWcognee/__init__.py73CODE
LOWcognee/__init__.py73CODE
LOWcognee/__init__.py73CODE
LOWcognee/__init__.py73CODE
LOWcognee/__init__.py73CODE
LOWcognee/__init__.py73CODE
LOWcognee/__init__.py73CODE
LOWcognee/__init__.py87CODE
LOWcognee/__init__.py87CODE
LOWcognee/__init__.py87CODE
LOWcognee/__init__.py87CODE
LOWcognee/__init__.py91CODE
LOWcognee/__init__.py94CODE
LOWcognee/__init__.py94CODE
LOWcognee/__init__.py94CODE
LOWcognee/__init__.py94CODE
LOWcognee/__init__.py94CODE
LOWcognee/__init__.py103CODE
LOWcognee/__init__.py106CODE
LOWcognee/__init__.py109CODE
LOWcognee/__init__.py109CODE
LOWcognee/__init__.py110CODE
LOWcognee/__init__.py111CODE
LOWcognee/low_level.py1CODE
LOWcognee/low_level.py2CODE
LOWcognee/context_global_variables.py11CODE
1422 more matches not shown…
Excessive Try-Catch Wrapping933 hits · 924 pts
SeverityFileLineSnippetContext
LOWcognee/tasks/codingagents/coding_rule_associations.py86 except Exception as e:CODE
LOWcognee/tasks/memify/cognify_agent_trace_feedback.py57 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.py249 except Exception as e:CODE
LOWcognee/tasks/memify/get_triplet_datapoints.py285 except Exception as e:CODE
LOWcognee/tasks/memify/consolidate_entities.py426 except Exception as error: # noqa: BLE001 - reconstruction is best-effortCODE
LOWcognee/tasks/memify/cross_connect_entities.py204 except Exception as error:CODE
LOWcognee/tasks/memify/cognify_session.py84 except Exception as e:CODE
LOWcognee/tasks/memify/extract_user_sessions.py111 except Exception as e:CODE
LOWcognee/tasks/memify/extract_user_sessions.py121 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.py741 except Exception:CODE
LOWcognee/tasks/ingestion/resolve_dlt_sources.py746 except Exception:CODE
LOW…ee/tasks/ingestion/purge_stale_dlt_source_artifacts.py65 except Exception as error:CODE
LOWcognee/tasks/ingestion/ingest_dlt_source.py120 except Exception as e:CODE
LOWcognee/tasks/ingestion/ingest_dlt_source.py156 except Exception as e:CODE
LOWcognee/tasks/ingestion/ingest_dlt_source.py175 except Exception as e:CODE
LOWcognee/tasks/ingestion/ingest_dlt_source.py326 except Exception as e:CODE
LOWcognee/tasks/ingestion/utils.py24 except Exception: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.py100 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/graph/resolve_temporal_contradictions.py108 except Exception as error:CODE
LOWcognee/tasks/graph/detect_contradictions.py239 except Exception as error: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.py160 except Exception as e:CODE
LOWcognee/tasks/provenance/record_provenance.py272 except Exception as error:CODE
LOWcognee/tasks/code_graph/extract_code_graph.py489 except Exception as error:CODE
LOWcognee/tests/test_shared_node_preservation.py460 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
873 more matches not shown…
Cross-File Repetition183 hits · 915 pts
SeverityFileLineSnippetContext
HIGHcognee/tasks/summarization/exceptions/__init__.py0custom exceptions for the cognee api. this module defines a set of exceptions for handling various user errorsSTRING
HIGHcognee/tasks/graph/exceptions/__init__.py0custom exceptions for the cognee api. this module defines a set of exceptions for handling various user errorsSTRING
HIGHcognee/tasks/storage/exceptions/__init__.py0custom exceptions for the cognee api. this module defines a set of exceptions for handling various user errorsSTRING
HIGHcognee/tasks/documents/exceptions/__init__.py0custom exceptions for the cognee api. this module defines a set of exceptions for handling various user errorsSTRING
HIGHcognee/api/v1/exceptions/__init__.py0custom exceptions for the cognee api. this module defines a set of exceptions for handling various user errorsSTRING
HIGHcognee/infrastructure/data/exceptions/__init__.py0custom exceptions for the cognee api. this module defines a set of exceptions for handling various user errorsSTRING
HIGHcognee/modules/ontology/exceptions/__init__.py0custom exceptions for the cognee api. this module defines a set of exceptions for handling various user errorsSTRING
HIGHcognee/modules/search/exceptions/__init__.py0custom exceptions for the cognee api. this module defines a set of exceptions for handling various user errorsSTRING
HIGHcognee/modules/retrieval/exceptions/__init__.py0custom exceptions for the cognee api. this module defines a set of exceptions for handling various user errorsSTRING
HIGHcognee/modules/data/exceptions/__init__.py0custom exceptions for the cognee api. this module defines a set of exceptions for handling various user errorsSTRING
HIGHcognee/tasks/completion/exceptions/__init__.py0custom exceptions for the cognee api. this module defines a set of exceptions for handling various user errorsSTRING
HIGHcognee/infrastructure/databases/exceptions/__init__.py0custom exceptions for the cognee api. this module defines a set of exceptions for handling various user errorsSTRING
HIGHcognee/modules/ingestion/exceptions/__init__.py0custom exceptions for the cognee api. this module defines a set of exceptions for handling various user errorsSTRING
HIGHcognee/modules/graph/exceptions/__init__.py0custom exceptions for the cognee api. this module defines a set of exceptions for handling various user errorsSTRING
HIGHcognee/modules/users/exceptions/__init__.py0custom exceptions for the cognee api. this module defines a set of exceptions for handling various user errorsSTRING
HIGHcognee/tests/test_custom_data_label.py0natural language processing (nlp) is an interdisciplinary subfield of computer science and information retrieval.STRING
HIGHcognee/tests/test_delete_data_and_dataset_if_empty.py0natural language processing (nlp) is an interdisciplinary subfield of computer science and information retrieval.STRING
HIGHcognee/tests/test_dataset_database_handler.py0natural language processing (nlp) is an interdisciplinary subfield of computer science and information retrieval.STRING
HIGHcognee/tests/test_dataset_delete.py0natural language processing (nlp) is an interdisciplinary subfield of computer science and information retrieval.STRING
HIGHexamples/guides/simple_cognee_example.py0natural language processing (nlp) is an interdisciplinary subfield of computer science and information retrieval.STRING
HIGH…os/custom_pipelines/custom_cognify_pipeline_example.py0natural language processing (nlp) is an interdisciplinary subfield of computer science and information retrieval.STRING
HIGHcognee/tests/test_multi_tenancy.py0a quantum computer is a computer that takes advantage of quantum mechanical phenomena. at small scales, physical matter STRING
HIGHcognee/tests/test_permissions.py0a quantum computer is a computer that takes advantage of quantum mechanical phenomena. at small scales, physical matter STRING
HIGH…s/demos/permissions/tenant_role_constraints_example.py0a quantum computer is a computer that takes advantage of quantum mechanical phenomena. at small scales, physical matter STRING
HIGH…issions/user_permissions_and_access_control_example.py0a quantum computer is a computer that takes advantage of quantum mechanical phenomena. at small scales, physical matter STRING
HIGHexamples/demos/permissions/tenant_role_setup_example.py0a quantum computer is a computer that takes advantage of quantum mechanical phenomena. at small scales, physical matter STRING
HIGH…mples/demos/permissions/data_access_control_example.py0a quantum computer is a computer that takes advantage of quantum mechanical phenomena. at small scales, physical matter STRING
HIGH…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
123 more matches not shown…
Docstring Block Structure51 hits · 255 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.py20 Extract not-yet-persisted Q&A entries for the current user via SessionManager. For each session, reads the perSTRING
HIGHcognee/tasks/web_scraper/web_scraper_task.py57Schedule 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.py139Scrape 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.py358Validate and configure arguments for web_scraper_task. Args: tavily_api_key: API key for Tavily. exSTRING
HIGHcognee/tasks/web_scraper/web_scraper_task.py401Extract 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.py27Fetch content from one or more URLs using the specified tool. This function retrieves web page content using BeautiSTRING
HIGHcognee/tasks/web_scraper/utils.py116Fetch content from URLs using the Tavily API. Args: urls: A single URL (str) or a list of URLs (List[str]) STRING
HIGHcognee/tasks/web_scraper/utils.py176Fetch content from URLs using the Keenable API. Uses Keenable's /v1/fetch endpoint (https://docs.keenable.ai) to exSTRING
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.py90Convert extracted graphs into linked data points for later storage. Graphs take the pure construction path when no STRING
HIGHcognee/tasks/chunks/create_chunk_associations.py110Create semantic association edges between document chunks in the knowledge graph. For each valid chunk, performs a STRING
HIGHcognee/shared/usage_logger.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.py124 Upload ontology files with their respective keys. Args: ontology_key: List of unique keys STRING
HIGHcognee/api/v1/ontologies/ontologies.py159 Retrieve ontology content for one or more keys. Args: ontology_key: List of ontology keys STRING
HIGHcognee/api/v1/visualize/start_visualization_server.py7 Start a visualization server on the specified port. Args: port (int): The port number to run the serveSTRING
HIGHcognee/api/v1/search/search.py97 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.py3682 Retrieve a batch of triplets (start_node, relationship, end_node) from the graph. Parameters: STRING
HIGH…ucture/databases/graph/neptune_driver/neptune_utils.py17 Parse a Neptune Analytics URL to extract graph ID and region. Expected format: neptune-graph://<GRAPH_ID>?regiSTRING
HIGH…ucture/databases/graph/neptune_driver/neptune_utils.py110 Build a configuration dictionary for Neptune Analytics connection. Parameters: ----------- - graphSTRING
HIGH…utput_framework/litellm_instructor/llm/rate_limiter.py237 Manage rate limiting for the wrapped function's execution. This decorator checks if the rate limit forSTRING
HIGH…utput_framework/litellm_instructor/llm/rate_limiter.py286 Handle rate limiting for LLM API calls in an asynchronous context. This wrapper function first ensuresSTRING
HIGH…utput_framework/litellm_instructor/llm/rate_limiter.py413 Handle retries for a function call in case of errors, specifically for rate limit errors. STRING
HIGH…utput_framework/litellm_instructor/llm/rate_limiter.py499 Handle retries for a given async function in case of errors, with rate limit check and backoff STRING
HIGH…tput_framework/litellm_instructor/llm/llm_interface.py48 Generate an audio transcript from a user query. This method creates a transcript from the specified auSTRING
HIGHcognee/infrastructure/engine/models/DataPoint.py337 Convert the DataPoint instance to a dictionary representation. This method uses the model's built-in fSTRING
HIGHcognee/infrastructure/loaders/LoaderInterface.py80 Load and process the file, returning standardized result. Args: file_path: Path to the filSTRING
HIGHcognee/infrastructure/loaders/core/video_loader.py120 Load and process the video file. Args: file_path: Path to the file to load **kSTRING
HIGHcognee/infrastructure/loaders/core/csv_loader.py52 Load and process the csv file. Args: file_path: Path to the file to load encodSTRING
HIGHcognee/infrastructure/loaders/core/audio_loader.py69 Load and process the audio file. Args: file_path: Path to the file to load **kSTRING
HIGHcognee/infrastructure/loaders/core/image_loader.py89 Transcribe the image and return the extracted text. When IMAGE_EXIF_ENABLED=true, extracts EXIF metadaSTRING
HIGHcognee/infrastructure/loaders/core/text_loader.py58 Load and process the text file. Args: file_path: Path to the file to load encoSTRING
HIGH…frastructure/loaders/external/beautiful_soup_loader.py236Normalize an extraction rule to an ExtractionRule dataclass. Args: rule: A string (CSS selector) orSTRING
HIGH…frastructure/loaders/external/beautiful_soup_loader.py266Extract content from a BeautifulSoup parsed document. Args: soup: BeautifulSoup parsed document. STRING
HIGHcognee/infrastructure/loaders/external/pypdf_loader.py42 Load PDF file and extract text content. Args: file_path: Path to the PDF file STRING
HIGH…infrastructure/loaders/external/unstructured_loader.py79 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.py37 Create and return an ontology resolver instance based on environment parameters. Currently, this function suppSTRING
HIGHcognee/modules/search/methods/search.py77 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
HIGH…rmissions/methods/authorized_get_principal_datasets.py22 Return the datasets a principal holds a permission on, if the requester is allowed to ask about that prSTRING
HIGHcognee/modules/sync/methods/update_sync_operation.py15 Retry database operations with exponential backoff for transient failures. Args: operation_func: AsyncSTRING
HIGHcognee/modules/data/methods/get_data.py16Retrieve data by ID. Every id ever issued keeps resolving. With ``dataset_id`` the lookup is precise: exact id STRING
Self-Referential Comments82 hits · 252 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.py53 # 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_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.py267 # Create a minimal test config fileCOMMENT
MEDIUMcognee/tests/unit/api/test_health_checker.py16 # Create a dummy file that simulates existing user data that happens to be named "health_check_test"COMMENT
MEDIUM…frastructure/test_embedding_rate_limiting_realistic.py36 # Create a fresh config instance and verify settingsCOMMENT
MEDIUM…frastructure/test_embedding_rate_limiting_realistic.py43 # Create a mock embedding engineCOMMENT
MEDIUM…frastructure/test_embedding_rate_limiting_realistic.py53 # Create a list of tasks to simulate concurrent requestsCOMMENT
MEDIUM…frastructure/test_embedding_rate_limiting_realistic.py173 # 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.py573 # 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.py27 # 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.py627 # Create a fake type with __name__ == "Entity"COMMENT
MEDIUMcognee/shared/graph_model_utils.py175 # Create a clean slate for cognee -- reset data and system stateCOMMENT
MEDIUMcognee/shared/graph_model_utils.py188 # Define a custom graph model for programming languages.COMMENT
MEDIUMcognee/shared/utils.py402 # Create the serverCOMMENT
MEDIUMcognee/shared/logging_utils.py188 # Create the log entryCOMMENT
MEDIUMcognee/shared/logging_utils.py548 # Create a new log file name with the cognee start timeCOMMENT
MEDIUM…eval_framework/benchmark_adapters/hotpot_qa_adapter.py26 # 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.py510 # Create a MetaData instance to load table informationCOMMENT
MEDIUM…e/databases/relational/sqlalchemy/SqlAlchemyAdapter.py514 # Define the full table nameCOMMENT
MEDIUM…e/databases/relational/sqlalchemy/SqlAlchemyAdapter.py741 # Create a MetaData instance to load table informationCOMMENT
MEDIUMcognee/infrastructure/databases/dataset_queue/queue.py186 # Create the slot dict for this task up front so callers can writeCOMMENT
MEDIUM…gres_demo/PostgresGraphSharedDatasetDatabaseHandler.py59 # Create the graph tables inside the dataset schema. The engine is pinnedCOMMENT
MEDIUM…frastructure/databases/graph/neptune_driver/adapter.py594 # Create the bulk-edge OpenCypher query using UNWINDSTRING
MEDIUM…ector/pgvector/PGVectorSharedDatasetDatabaseHandler.py56 # Create the dataset schema (and ensure the pgvector extension exists) inCOMMENT
MEDIUM…utput_framework/litellm_instructor/llm/rate_limiter.py163 # Create a fresh rate limit item for each checkCOMMENT
MEDIUM…put_framework/litellm_instructor/llm/get_llm_client.py70# Define an Enum for LLM ProvidersCOMMENT
MEDIUMcognee/modules/storage/utils/__init__.py49 # Create a base class with the same configuration as DataPointCOMMENT
MEDIUMcognee/modules/storage/utils/__init__.py53 # Create the model inheriting from the configured baseCOMMENT
MEDIUM…/old/hotpot_qa_24_2025/src/analysis/analyze_results.py48 # Create a copy with just the metric mean, sorted descendingCOMMENT
MEDIUM…ls/old/hotpot_qa_24_2025/src/qa/qa_benchmark_cognee.py90 # Create a clean slate for cogneeCOMMENT
22 more matches not shown…
Deep Nesting221 hits · 202 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.py175CODE
LOWcognee/tasks/memify/consolidate_entities.py96CODE
LOWcognee/tasks/memify/consolidate_entities.py134CODE
LOWcognee/tasks/memify/apply_feedback_weights.py71CODE
LOWcognee/tasks/memify/extract_user_sessions.py16CODE
LOWcognee/tasks/memify/apply_frequency_weights.py51CODE
LOW…ify/global_context_index/bucketing/vector/placement.py179CODE
LOWcognee/tasks/ingestion/save_data_item_to_storage.py50CODE
LOWcognee/tasks/ingestion/resolve_dlt_sources.py244CODE
LOWcognee/tasks/ingestion/extract_dlt_source_edges.py24CODE
LOWcognee/tasks/ingestion/resolve_data_directories.py24CODE
LOWcognee/tasks/ingestion/ingest_data.py78CODE
LOWcognee/tasks/ingestion/ingest_data.py105CODE
LOWcognee/tasks/ingestion/data_item_to_text_file.py48CODE
LOWcognee/tasks/ingestion/migrate_relational_database.py155CODE
LOWcognee/tasks/web_scraper/default_url_crawler.py319CODE
LOWcognee/tasks/web_scraper/utils.py20CODE
LOWcognee/tasks/translation/translate_content.py17CODE
LOWcognee/tasks/storage/index_data_points.py77CODE
LOWcognee/tasks/chunks/chunk_by_sentence.py32CODE
LOWcognee/tasks/provenance/record_provenance.py97CODE
LOWcognee/tasks/code_graph/code_repo.py151CODE
LOWcognee/tasks/code_graph/install_enola.py96CODE
LOWcognee/tasks/code_graph/extract_code_graph.py221CODE
LOWcognee/tests/test_relational_db_migration.py46CODE
LOWcognee/tests/test_relational_db_migration.py212CODE
LOWcognee/tests/test_release_multi_user_e2e.py507CODE
LOW…ee/tests/unit/exceptions/test_cognee_error_contract.py101CODE
LOW…e/tests/unit/infrastructure/llm/test_litellm_native.py211CODE
LOW…session/test_session_persistence_memify_integration.py552CODE
LOW…infrastructure/session/test_session_sdk_integration.py60CODE
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
LOW…ests/performance/statistics_percentile/capture_mock.py82CODE
LOW…ests/performance/statistics_percentile/bench_cognee.py519CODE
LOWcognee/shared/usage_logger.py114CODE
LOWcognee/shared/cache.py247CODE
LOWcognee/shared/logging_utils.py288CODE
LOWcognee/shared/logging_utils.py157CODE
LOWcognee/cli/minimal_cli.py16CODE
LOWcognee/cli/api_dispatch.py171CODE
LOWcognee/cli/api_dispatch.py241CODE
LOWcognee/cli/api_dispatch.py291CODE
LOWcognee/cli/_cognee.py130CODE
LOWcognee/cli/_cognee.py242CODE
LOWcognee/cli/_cognee.py261CODE
LOWcognee/cli/commands/delete_command.py34CODE
LOWcognee/cli/commands/delete_command.py87CODE
LOWcognee/cli/commands/remember_command.py89CODE
LOWcognee/cli/commands/remember_command.py110CODE
LOWcognee/cli/commands/search_command.py90CODE
LOWcognee/cli/commands/cognify_command.py80CODE
LOWcognee/cli/commands/cognify_command.py112CODE
LOWcognee/cli/commands/recall_command.py74CODE
LOWcognee/cli/commands/config_command.py64CODE
161 more matches not shown…
Structural Annotation Overuse80 hits · 144 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.py64 # Step 1: Evaluate answers if requestedCOMMENT
LOW…nee/eval_framework/evaluation/run_evaluation_module.py70 # Step 2: Calculate metrics if requestedCOMMENT
LOWcognee/api/v1/add/add.py135 # Step 1: Add your data (text content or file path)STRING
LOWcognee/api/v1/add/add.py140 # Step 2: Process into knowledge graphSTRING
LOWcognee/api/v1/add/add.py143 # Step 3: Search and querySTRING
LOWcognee/api/v1/serve/serve.py136 # Step 1: Check for saved credentialsCOMMENT
LOWcognee/api/v1/serve/serve.py176 # Step 2: Device Code FlowCOMMENT
LOWcognee/api/v1/serve/serve.py187 # Step 3: Discover or create tenantCOMMENT
LOWcognee/api/v1/serve/serve.py197 # Step 4: Get service URLCOMMENT
LOWcognee/api/v1/serve/serve.py200 # Step 5: Get or create API keyCOMMENT
LOWcognee/api/v1/serve/serve.py203 # Step 6: Save credentialsCOMMENT
LOWcognee/api/v1/serve/serve.py217 # 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.py1286 // Step 1: Collect all nodesCOMMENT
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py1290 // Step 2: Find all connected componentsCOMMENT
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py1300 // Step 3: Aggregate componentsCOMMENT
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py1303 // Step 4: Identify the largest connected componentCOMMENT
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py1310 // Step 5: Find nodes not in the largest connected componentCOMMENT
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py1900 # Step 2: Fetch all nodesSTRING
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py1912 # Step 3: Fetch all edges between collected nodesSTRING
LOW…frastructure/databases/graph/neptune_driver/adapter.py745 # Step 2: Fetch all nodesSTRING
LOW…frastructure/databases/graph/neptune_driver/adapter.py754 # Step 3: Fetch all edges between collected nodesSTRING
LOW…frastructure/databases/graph/neptune_driver/adapter.py725 # 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
LOWcognee/modules/user_preferences/update.py272 # Step 1: advance the clock once for every not-yet-counted turn, rated or not.COMMENT
LOWcognee/modules/user_preferences/update.py356 # Step 6: prune whenever the counter moved — the clock advances on unratedCOMMENT
LOWcognee/modules/user_preferences/update.py389 # Step 5: mark processed. update_qa MERGES the metadata dict into theCOMMENT
LOW…rontend/src/app/(setup)/onboarding/ServeOnboarding.tsx55// Step 1: Verify connectionCOMMENT
LOW…rontend/src/app/(setup)/onboarding/ServeOnboarding.tsx85// Step 2: SDK quickstartCOMMENT
LOW…rontend/src/app/(setup)/onboarding/ServeOnboarding.tsx123// Step 3: Test from UICOMMENT
LOW…rontend/src/app/(setup)/onboarding/ServeOnboarding.tsx210// Step 4: DoneCOMMENT
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…mples/tutorials/migrate_from_letta_and_zep_tutorial.py65 # Step 1: Inspect the Letta dumpCOMMENT
LOW…mples/tutorials/migrate_from_letta_and_zep_tutorial.py73 # Step 2: Import with re-derive mode (default for LettaSource)COMMENT
LOW…mples/tutorials/migrate_from_letta_and_zep_tutorial.py86 # Step 3: Query the migrated Letta memoryCOMMENT
LOW…mples/tutorials/migrate_from_letta_and_zep_tutorial.py103 # Step 5: Reset and inspect the Zep dumpCOMMENT
LOW…mples/tutorials/migrate_from_letta_and_zep_tutorial.py112 # Step 6: Import with hybrid mode (default for ZepSource)COMMENT
20 more matches not shown…
Verbosity Indicators77 hits · 137 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.py64 # Step 1: Evaluate answers if requestedCOMMENT
LOW…nee/eval_framework/evaluation/run_evaluation_module.py70 # Step 2: Calculate metrics if requestedCOMMENT
LOWcognee/api/v1/add/add.py135 # Step 1: Add your data (text content or file path)STRING
LOWcognee/api/v1/add/add.py140 # Step 2: Process into knowledge graphSTRING
LOWcognee/api/v1/add/add.py143 # Step 3: Search and querySTRING
LOWcognee/api/v1/serve/serve.py136 # Step 1: Check for saved credentialsCOMMENT
LOWcognee/api/v1/serve/serve.py176 # Step 2: Device Code FlowCOMMENT
LOWcognee/api/v1/serve/serve.py187 # Step 3: Discover or create tenantCOMMENT
LOWcognee/api/v1/serve/serve.py197 # Step 4: Get service URLCOMMENT
LOWcognee/api/v1/serve/serve.py200 # Step 5: Get or create API keyCOMMENT
LOWcognee/api/v1/serve/serve.py203 # Step 6: Save credentialsCOMMENT
LOWcognee/api/v1/serve/serve.py217 # 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.py1286 // Step 1: Collect all nodesCOMMENT
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py1290 // Step 2: Find all connected componentsCOMMENT
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py1300 // Step 3: Aggregate componentsCOMMENT
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py1303 // Step 4: Identify the largest connected componentCOMMENT
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py1310 // Step 5: Find nodes not in the largest connected componentCOMMENT
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py1900 # Step 2: Fetch all nodesSTRING
LOW…infrastructure/databases/graph/neo4j_driver/adapter.py1912 # Step 3: Fetch all edges between collected nodesSTRING
LOW…frastructure/databases/graph/neptune_driver/adapter.py745 # Step 2: Fetch all nodesSTRING
LOW…frastructure/databases/graph/neptune_driver/adapter.py754 # Step 3: Fetch all edges between collected nodesSTRING
LOW…frastructure/databases/graph/neptune_driver/adapter.py725 # 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
LOWcognee/modules/user_preferences/update.py272 # Step 1: advance the clock once for every not-yet-counted turn, rated or not.COMMENT
LOWcognee/modules/user_preferences/update.py356 # Step 6: prune whenever the counter moved — the clock advances on unratedCOMMENT
LOWcognee/modules/user_preferences/update.py389 # Step 5: mark processed. update_qa MERGES the metadata dict into theCOMMENT
LOW…rontend/src/app/(setup)/onboarding/ServeOnboarding.tsx55// Step 1: Verify connectionCOMMENT
LOW…rontend/src/app/(setup)/onboarding/ServeOnboarding.tsx85// Step 2: SDK quickstartCOMMENT
LOW…rontend/src/app/(setup)/onboarding/ServeOnboarding.tsx123// Step 3: Test from UICOMMENT
LOW…rontend/src/app/(setup)/onboarding/ServeOnboarding.tsx210// Step 4: DoneCOMMENT
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…mples/tutorials/migrate_from_letta_and_zep_tutorial.py65 # Step 1: Inspect the Letta dumpCOMMENT
LOW…mples/tutorials/migrate_from_letta_and_zep_tutorial.py73 # Step 2: Import with re-derive mode (default for LettaSource)COMMENT
LOW…mples/tutorials/migrate_from_letta_and_zep_tutorial.py86 # Step 3: Query the migrated Letta memoryCOMMENT
LOW…mples/tutorials/migrate_from_letta_and_zep_tutorial.py103 # Step 5: Reset and inspect the Zep dumpCOMMENT
LOW…mples/tutorials/migrate_from_letta_and_zep_tutorial.py112 # Step 6: Import with hybrid mode (default for ZepSource)COMMENT
LOW…mples/tutorials/migrate_from_letta_and_zep_tutorial.py128 # Step 7: Query the migrated Zep memoryCOMMENT
LOW…mples/tutorials/migrate_from_letta_and_zep_tutorial.py150 # Step 10: Import both sources into the same graphCOMMENT
LOW…mples/tutorials/migrate_from_letta_and_zep_tutorial.py167 # Step 11: Query the combined memoryCOMMENT
17 more matches not shown…
Modern Structural Boilerplate115 hits · 116 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
LOW…poral_awareness/build_graph_with_temporal_awareness.py12logger = logging.getLogger(__name__)CODE
LOWcognee/tasks/web_scraper/__init__.py29__all__ = [CODE
LOWcognee/tasks/translation/__init__.py67__all__ = [CODE
LOWcognee/tasks/translation/providers/__init__.py6__all__ = [CODE
LOWcognee/tasks/storage/close_node.py14logger = logging.getLogger(__name__)CODE
LOWcognee/tasks/provenance/__init__.py3__all__ = ["record_provenance"]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.py14logger = 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/tests/utils/mock_ingestion/__init__.py9__all__ = [CODE
LOWcognee/pipelines/__init__.py40__all__ = [CODE
LOWcognee/shared/cache.py21logger = logging.getLogger(__name__)CODE
LOWcognee/cli/__init__.py6__all__ = [CODE
LOWcognee/eval_framework/sweeps/retriever_sweep_runner.py373__all__ = [CODE
LOW…ework/beam/preprocessing/conversation_preprocessing.py747 def update_code_block_state(line_text: str) -> None:CODE
LOWcognee/eval_framework/beam/preprocessing/preprocess.py666def update_report_summary(report: dict[str, Any]) -> None:CODE
LOWcognee/api/v1/tools/__init__.py13__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.py649 def set_graph_db_config(config_dict: dict) -> None:CODE
LOWcognee/api/v1/config/__init__.py5__all__ = ["LLMConfig", "config"]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
LOW…api/v1/integrations/routers/get_integrations_router.py87logger = logging.getLogger(__name__)CODE
LOWcognee/api/v1/integrations/routers/__init__.py3__all__ = ["get_integrations_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/slack/routers/__init__.py4__all__ = ["get_slack_router", "get_slack_channels_router"]CODE
LOW…gnee/api/v1/slack/routers/get_slack_channels_router.py27logger = logging.getLogger(__name__)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
LOW…3d5e7f9a1b2_dedupe_session_context_add_unique_index.py34logger = logging.getLogger(__name__)CODE
LOW…b4c6_backfill_dataset_scoped_data_drop_dataset_data.py54logger = logging.getLogger(__name__)CODE
LOWcognee/infrastructure/locks/__init__.py9__all__ = [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.py508 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.py1154 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.py1661 async def set_graph_metadata(self, metadata: dict[str, str]) -> None:CODE
LOW…rastructure/databases/graph/ladybug/ladybug_migrate.py23__all__ = [CODE
LOW…nfrastructure/databases/graph/postgres_demo/adapter.py1191 async def set_graph_metadata(self, metadata: dict[str, str]) -> None:STRING
LOWcognee/infrastructure/databases/graph/kuzu/adapter.py19__all__ = [CODE
55 more matches not shown…
Cross-Language Confusion27 hits · 115 pts
SeverityFileLineSnippetContext
HIGHcognee/tasks/ingestion/exceptions/exceptions.py69 'external_metadata must be a JSON array of objects, e.g. [{"source": "crm"}, null].'CODE
HIGHcognee/tests/test_neptune_analytics_vector.py124 # Always return trueCOMMENT
HIGHcognee/tests/unit/test_litellm_embedding_sanitize.py84 # drives this through its OpenAI handler (the branch that injected the null),COMMENT
HIGHcognee/tests/unit/api/v1/test_add_remember_label.py8('[{"source": "crm"}, null]'), which Swagger transmits intact. Entries pairSTRING
HIGHcognee/tests/unit/api/v1/test_add_remember_label.py285 "external_metadata": '[{"source": "crm", "ticket": 42}, null]',CODE
HIGHcognee/tests/unit/migration/test_export_roundtrip.py331 ``COGXArchiveSource`` — the path ``cognee.push()`` and restore actually use.STRING
HIGHcognee/tests/unit/migration/test_push.py297 result = asyncio.run(push_module.push("main_dataset", mode="hybrid"))CODE
HIGHcognee/tests/unit/migration/test_push.py331 result = asyncio.run(push_module.push("local_name", target_dataset="remote_name"))CODE
HIGHcognee/tests/unit/migration/test_push.py350 asyncio.run(push_module.push("main_dataset"))CODE
HIGHcognee/tests/unit/migration/test_push.py368 asyncio.run(push_module.push("main_dataset"))CODE
HIGHcognee/tests/unit/migration/test_push.py392 result = asyncio.run(push_module.push("main_dataset"))CODE
HIGHcognee/tests/unit/migration/test_push.py1"""Unit tests for cognee.push() and the COGX archive transport helpers.STRING
HIGHcognee/cli/commands/push_command.py100 return await cognee.push(STRING
HIGHcognee/api/v1/recall/routers/get_recall_router.py37 "Dataset names to search within. Omit (null) to search all datasets "CODE
HIGHcognee/api/v1/push/push.py28 """Outcome of a ``cognee.push()`` call."""STRING
HIGHcognee/api/v1/add/routers/get_add_router.py65 '[{"source": "crm", "ticket": 42}, null]. Paired positionally like labels: 'CODE
HIGHcognee/api/v1/add/routers/get_add_router.py109 e.g. [{"source": "crm"}, null], paired positionally with the uploadedSTRING
HIGHcognee/api/v1/remember/remember.py768 "cognee.push() to upload the data to the remote instance."CODE
HIGHcognee/api/v1/remember/routers/get_remember_router.py45 """Import uploaded COGX archive tarballs (produced by ``cognee.push()``)."""STRING
HIGHcognee/api/v1/remember/routers/get_remember_router.py140 '[{"source": "crm", "ticket": 42}, null]. Paired positionally like labels: 'CODE
HIGHcognee/api/v1/remember/routers/get_remember_router.py305 e.g. [{"source": "crm"}, null], paired positionally with the uploaded filesSTRING
HIGH…/databases/vector/embeddings/LiteLLMEmbeddingEngine.py204 # Older LiteLLM releases serialize an omitted encoding format as null,COMMENT
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
Over-Commented Block111 hits · 102 pts
SeverityFileLineSnippetContext
LOWpyproject.toml61 "pylance>=0.22.0,<=0.36.0",COMMENT
LOWslack-app-manifest.yml1# Slack app manifest for the Cognee Slack integration.COMMENT
LOWslack-app-manifest.yml21# http://localhost:3000.COMMENT
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/ingestion/save_data_item_to_storage.py101 # data is an absolute file path that points at an existing fileCOMMENT
LOWcognee/tasks/ingestion/resolve_dlt_sources.py101 # Nothing to expand — return original data unchangedCOMMENT
LOWcognee/tasks/ingestion/resolve_dlt_sources.py181 len(manifest_data_ids),COMMENT
LOWcognee/tasks/ingestion/config.py1from functools import lru_cacheCOMMENT
LOWcognee/tasks/storage/add_data_points.py121 data_id = data_item_id(data_item)COMMENT
LOWcognee/api/v1/responses/default_tools.py101 },COMMENT
LOWcognee/api/v1/recall/recall.py441 retriever_specific_config = {COMMENT
LOWcognee/api/v1/improve/improve.py141 user = await get_default_user()COMMENT
LOW…gnee/infrastructure/databases/graph/ladybug/adapter.py341 # ``_connection_lock`` here: teardown holds that lock across theCOMMENT
LOW…gnee/infrastructure/databases/graph/ladybug/adapter.py661 finally:COMMENT
LOW…gnee/infrastructure/databases/graph/ladybug/adapter.py921 self._permanently_closed = TrueCOMMENT
LOW…gnee/infrastructure/databases/graph/ladybug/adapter.py1961 "created_at": now,COMMENT
LOW…gnee/infrastructure/databases/graph/ladybug/adapter.py3401 # db files, but do NOT latch ``_permanently_closed`` — callersCOMMENT
LOWcognee/infrastructure/databases/graph/turso/adapter.py61 A libSQL file is a SQLite file, so cognee talks to it through the sameCOMMENT
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.py141# Real closes finish in milliseconds to a few seconds, so this ceiling isCOMMENT
LOW…ee/infrastructure/databases/utils/closing_lru_cache.py261 # concurrent.futures.Future. A creator awaiting on the same loop viaCOMMENT
LOW…ee/infrastructure/databases/utils/closing_lru_cache.py701 # With a running loop we must not block it — the close may be aCOMMENT
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 vector_db_subprocess_enabled = normalized_optional_params["vector_db_subprocess_enabled"]COMMENT
LOW…nfrastructure/databases/vector/create_vector_engine.py341COMMENT
LOW…/databases/vector/embeddings/LiteLLMEmbeddingEngine.py221COMMENT
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
LOW…d_output_framework/litellm_native/get_native_client.py21COMMENT
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/tools/config.py21 # source database). Requires tool_calls_enabled too. Writes are alwaysCOMMENT
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/agents/models.py1from __future__ import annotationsCOMMENT
LOWcognee/modules/retrieval/completion_retriever.py281COMMENT
LOWcognee/modules/data/constants.py1"""Shared constants for the data/dataset layer."""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
51 more matches not shown…
Redundant / Tautological Comments73 hits · 101 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.py70 if isinstance(item, str): # Check if the item is a pathCODE
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.py268 # Check if Germany is still in vector indexCOMMENT
LOWcognee/tests/test_custom_data_label.py36 # Display resultsSTRING
LOWcognee/tests/test_custom_data_label.py52 # 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_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.py227 # 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.py351 # Check if this is a LiteLLM-related loggerCOMMENT
LOWcognee/shared/logging_utils.py421 # Check if there's an exc_info that needs to be processedCOMMENT
LOWcognee/shared/logging_utils.py542 # 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/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.py519 # Check if table is in list of tables for the given schemaCOMMENT
LOWcognee/infrastructure/databases/graph/config.py105 # Check if absolute path is providedCOMMENT
LOWcognee/infrastructure/llm/config.py276 # 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.py403 # 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.py17 # Check if this is a file URI BEFORE normalizing (which corrupts URIs)COMMENT
LOWcognee/infrastructure/files/storage/LocalFileStorage.py14 # Check if this is actually a URL (has a scheme like file://, http://, etc.)COMMENT
LOWcognee/infrastructure/loaders/core/image_loader.py114 # Read file for metadataCOMMENT
LOW…infrastructure/loaders/external/advanced_pdf_loader.py92 # 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.py38 # 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.py413 # Check if retriever info is found for the given query typeCOMMENT
LOWcognee/modules/search/methods/search.py273 # Check if graph for dataset is empty and log warnings if necessaryCOMMENT
LOWcognee/modules/retrieval/graph_completion_retriever.py139 # Check if all triplets are empty, in case of batch queriesCOMMENT
LOWcognee/modules/retrieval/graph_completion_retriever.py256 # 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
LOW…ions/methods/authorized_give_permission_on_datasets.py30 # Check if request owner has permission to share dataset accessCOMMENT
LOWcognee/modules/users/tenants/methods/select_tenant.py49 # Check if User is part of TenantCOMMENT
LOWcognee/modules/data/methods/get_unique_dataset_id.py71 # Check if dataset with legacy_dataset_id exists, if so use that one, else use modern_dataset_idCOMMENT
LOWcognee/modules/data/methods/add_model_class_to_graph.py40 if hasattr(field_type, "model_fields"): # Check if field type is a Pydantic modelCODE
LOW…/hotpot_qa_24_2025/src/run_cross_benchmark_analysis.py97 # Check if evaluated folder existsCOMMENT
13 more matches not shown…
Magic Placeholder Names17 hits · 85 pts
SeverityFileLineSnippetContext
HIGHCLAUDE.md467LLM_API_KEY="your_api_key"CODE
HIGHCLAUDE.md509BAML_LLM_API_KEY="your_api_key"CODE
HIGHcognee/api/v1/config/config.py180 cognee.config.set_llm_api_key("your-api-key")STRING
HIGHcognee-frontend/src/app/(app)/api-keys/ApiKeysPage.tsx253 <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.tsx254 <CopyBtn id="header" text={`X-Api-Key: <your-api-key>${tenantId ? `\nX-Tenant-Id: ${tenantId}` : ""}`} copiedFCODE
HIGH…pp/(app)/dashboard/partials/AgentConnectionSection.tsx46 const resolvedKey = apiKey ?? "your-api-key";CODE
HIGHcognee-frontend/src/app/(app)/integrations/page.tsx363 const resolvedKey = apiKey || "your-api-key";CODE
HIGH…-frontend/src/app/(app)/onboarding/ConnectionSteps.tsx234 ' api_key="<your-api-key>"',CODE
HIGH…-frontend/src/app/(app)/onboarding/ConnectionSteps.tsx283 ' api_key="your-api-key"',CODE
HIGH…-frontend/src/app/(app)/onboarding/ConnectionSteps.tsx487 ' api_key="<your-api-key>"',CODE
HIGH…-frontend/src/app/(app)/onboarding/ConnectionSteps.tsx547 ' -H "X-Api-Key: <your-api-key>"',CODE
HIGH…-frontend/src/app/(app)/onboarding/ConnectionSteps.tsx787 ' api_key="your-api-key"',CODE
HIGH…-frontend/src/app/(app)/onboarding/ConnectionSteps.tsx855 ' api_key="your-api-key"',CODE
HIGH…-frontend/src/app/(app)/onboarding/ConnectionSteps.tsx888 ' api_key="your-api-key"',CODE
HIGH…rc/app/(setup)/onboarding/partials/AgentOnboarding.tsx33 const resolvedKey = apiKey || "your-api-key";CODE
HIGH…/comprehensive_example/cognee_comprehensive_example.py9os.environ["LLM_API_KEY"] = "your_api_key"CODE
HIGH…issions/user_permissions_and_access_control_example.py24 # os.environ["LLM_API_KEY"] = "your-api-key"COMMENT
AI Structural Patterns87 hits · 82 pts
SeverityFileLineSnippetContext
LOWcognee/tasks/web_scraper/web_scraper_task.py45CODE
LOWcognee/tasks/web_scraper/web_scraper_task.py127CODE
LOWcognee/tasks/web_scraper/default_url_crawler.py47CODE
LOWcognee/cli/api_client.py312CODE
LOWcognee/memify_pipelines/consolidate_entities.py29CODE
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/visualize/memory_provenance.py140CODE
LOWcognee/api/v1/visualize/visualize.py36CODE
LOWcognee/api/v1/visualize/visualize.py135CODE
LOWcognee/api/v1/visualize/visualize.py212CODE
LOWcognee/api/v1/visualize/visualize.py258CODE
LOWcognee/api/v1/cognify/cognify.py54CODE
LOWcognee/api/v1/cognify/cognify.py351CODE
LOWcognee/api/v1/recall/recall.py337CODE
LOWcognee/api/v1/search/search.py41CODE
LOWcognee/api/v1/add/add.py35CODE
LOWcognee/api/v1/add/routers/get_add_router.py45CODE
LOWcognee/api/v1/users/routers/get_visualize_router.py46CODE
LOWcognee/api/v1/users/routers/get_visualize_router.py151CODE
LOWcognee/api/v1/users/routers/get_visualize_router.py256CODE
LOWcognee/api/v1/remember/remember.py642CODE
LOWcognee/api/v1/remember/routers/get_remember_router.py119CODE
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.py182CODE
LOW…e/infrastructure/databases/cache/redis/RedisAdapter.py367CODE
LOW…frastructure/databases/cache/fscache/FsCacheAdapter.py130CODE
LOW…frastructure/databases/cache/fscache/FsCacheAdapter.py271CODE
LOW…/infrastructure/databases/cache/sql/SqlCacheAdapter.py386CODE
LOW…/infrastructure/databases/cache/sql/SqlCacheAdapter.py661CODE
LOW…nee/infrastructure/databases/graph/get_graph_engine.py245CODE
LOW…nee/infrastructure/databases/graph/get_graph_engine.py319CODE
LOW…nfrastructure/databases/vector/create_vector_engine.py53CODE
LOW…/databases/vector/embeddings/LiteLLMEmbeddingEngine.py97CODE
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.py57CODE
LOW…work/litellm_instructor/llm/generic_llm_api/adapter.py95CODE
LOW…amework/litellm_instructor/llm/azure_openai/adapter.py52CODE
LOW…_framework/litellm_instructor/llm/llama_cpp/adapter.py73CODE
LOW…put_framework/litellm_instructor/llm/openai/adapter.py74CODE
LOW…nee/infrastructure/files/storage/FileBufferedReader.py16CODE
LOW…gnee/infrastructure/loaders/external/dlt_csv_loader.py47CODE
LOWcognee/infrastructure/session/session_manager.py345CODE
LOWcognee/infrastructure/session/session_manager.py609CODE
LOWcognee/modules/agent_memory/decorator.py29CODE
LOWcognee/modules/memify/memify.py27CODE
LOWcognee/modules/session_lifecycle/metrics.py370CODE
LOWcognee/modules/graph/cognee_graph/CogneeGraph.py232CODE
LOWcognee/modules/agents/registry.py130CODE
LOWcognee/modules/pipelines/operations/pipeline.py61CODE
LOWcognee/modules/pipelines/operations/pipeline.py113CODE
LOWcognee/modules/pipelines/operations/run_tasks.py37CODE
27 more matches not shown…
Modern AI Meta-Vocabulary24 hits · 77 pts
SeverityFileLineSnippetContext
MEDIUMRECALL_TOOL_CALLS_PLAN.md150### Later (PR 4): agentic bridgeCOMMENT
MEDIUMcognee/skill.md310### What Cognee gives agentic workflowsCOMMENT
MEDIUMcognee/tests/unit/eval_framework/test_eval_runner.py221# Runner orchestration (mocked steps, no LLM/DB)COMMENT
MEDIUMcognee/tests/unit/api/v1/validate/test_validate.py181 # NodeSet has no index_fields — it's structural scaffolding, never embedded.COMMENT
MEDIUM…tests/unit/modules/visualization/test_subgraph_data.py171# --- fetch orchestration ---------------------------------------------------COMMENT
MEDIUM…/unit/modules/retrieval/test_graph_report_retriever.py38 # Membership scaffolding (belongs_to_set -> NodeSet container).COMMENT
MEDIUM…/unit/modules/retrieval/test_graph_report_retriever.py47 # Structural scaffolding (DERIVED).COMMENT
MEDIUM…it/modules/retrieval/test_include_references_wiring.py31# CompletionRetriever (RAG / chunk evidence)COMMENT
MEDIUMcognee/cli/_cognee.py396 # in-process. This is the correct mode for concurrent / multi-agent useCOMMENT
MEDIUMcognee/eval_framework/runner.py112# seams the tests patch to exercise orchestration without an LLM or database.COMMENT
MEDIUMcognee/api/v1/recall/query_router.py93 # --- Reasoning / chain-of-thought ---COMMENT
MEDIUM…s/vector/embeddings/OpenAICompatibleEmbeddingEngine.py166 # Handle context window exceeded by splitting inputCOMMENT
MEDIUM…structure/databases/vector/turso/TursoVectorAdapter.py344 # the graph/RAG hot path wants only id + distance, and payloads are largeCOMMENT
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
MEDIUMcognee/modules/retrieval/graph_report_retriever.py118 # content edges only (drop membership scaffolding).COMMENT
MEDIUMevals/old/hotpot_50_corpus.json1["Lomonosov Moscow State University (MSU; Russian: \u041c\u043e\u0441\u043a\u043e\u0432\u0441\u043a\u0438\u0439 \u0433\uCODE
MEDIUMevals/old/hotpot_qa_24_2025/src/qa/qa_benchmark_base.py103 # Get answer from RAG systemCOMMENT
MEDIUMevals/old/hotpot_qa_24_2025/src/qa/qa_benchmark_base.py133 # Initialize RAG systemCOMMENT
MEDIUMevals/old/comparative_eval/hotpot_50_corpus.json1["Lomonosov Moscow State University (MSU; Russian: \u041c\u043e\u0441\u043a\u043e\u0432\u0441\u043a\u0438\u0439 \u0433\uCODE
MEDIUMexamples/README.md121### [`agentic/`](demos/agentic/) — agents reasoning over memoryCOMMENT
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
Fake / Example Data60 hits · 72 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
LOW…ts/unit/tasks/memify/test_session_persist_watermark.py71 fake_user = SimpleNamespace(id=uuid.uuid4())CODE
LOW…ts/unit/tasks/memify/test_session_persist_watermark.py72 token = session_user.set(fake_user)CODE
LOW…ts/unit/tasks/memify/test_session_persist_watermark.py73 yield 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
LOWcognee/tests/unit/users/tenants/test_role_visibility.py145 admin = FakeUser(uuid4(), email="admin@example.com")CODE
LOWcognee/tests/unit/users/tenants/test_role_visibility.py206 admin = FakeUser(uuid4(), email="admin@example.com")CODE
LOW…sts/unit/infrastructure/engine/test_identity_fields.py192 assert PersonWithIdentity.id_for("John Doe") == PersonWithIdentity(name="John_Doe").idCODE
LOW…sts/unit/infrastructure/engine/test_identity_fields.py141 p1 = PersonWithIdentity(name="John Doe")CODE
LOW…sts/unit/infrastructure/engine/test_identity_fields.py218 for raw in ["John", "John Doe", "O'Brien", "New York City", "ALL CAPS", "mixed Case's"]:CODE
LOW…sts/unit/modules/session_lifecycle/test_agent_usage.py242 user = SimpleNamespace(id=caller_id, tenant_id=tenant_id, email="admin@example.com")CODE
LOW…sts/unit/modules/session_lifecycle/test_agent_usage.py246 {"id": str(caller_id), "email": "admin@example.com", "roles": []},CODE
LOW…sts/unit/modules/session_lifecycle/test_agent_usage.py279 assert result[1]["user_email"] == "admin@example.com"CODE
LOW…e/tests/unit/modules/pipelines/test_provenance_mode.py192 _simulate_pipeline_task(dp, mode="lightweight", user_label="user@example.com")CODE
LOW…e/tests/unit/modules/pipelines/test_provenance_mode.py193 assert dp.source_user == "user@example.com"CODE
LOW…unit/modules/provenance/test_record_provenance_task.py70 user=SimpleNamespace(email="user@example.com", id=uuid4()),CODE
LOW…unit/modules/provenance/test_record_provenance_task.py120 assert entry.agent_id == "user@example.com"CODE
LOW…unit/modules/provenance/test_provenance_entry_model.py13 agent_id="user@example.com",CODE
LOW…/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.py15Verifies that the current branch can search the legacy cognified data, then adds + cognifies new Lorem Ipsum data withSTRING
LOWcognee/tests/backwards_compatibility/phase1_seed.py29Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt utCODE
LOWcognee/tests/backwards_compatibility/phase1_seed.py29Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt utCODE
LOWcognee/tests/backwards_compatibility/phase1_seed.py35Lorem ipsum is placeholder text commonly used in the graphic, print, and publishing industries forCODE
LOWcognee/tests/backwards_compatibility/phase1_seed.py40SEARCH_QUERY = "What is Lorem Ipsum and where does it come from?"STRING
LOWcognee/tests/backwards_compatibility/phase1_seed.py131 print("Adding Lorem Ipsum text...")STRING
LOWcognee/tests/backwards_compatibility/phase2_verify.py6Seeds the database with Lorem Ipsum data: add → cognify → search.STRING
LOWcognee/tests/backwards_compatibility/phase2_verify.py83Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt utCODE
LOWcognee/tests/backwards_compatibility/phase2_verify.py83Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt utCODE
LOWcognee/tests/backwards_compatibility/phase2_verify.py89Lorem ipsum is placeholder text commonly used in the graphic, print, and publishing industries forCODE
LOWcognee/tests/backwards_compatibility/phase2_verify.py93Loren Ipsum Dolor sit amet, Lorem ipsum.CODE
LOWcognee/tests/backwards_compatibility/phase2_verify.py93Loren Ipsum Dolor sit amet, Lorem ipsum.CODE
LOWcognee/tests/backwards_compatibility/phase2_verify.py97SEARCH_QUERY = "What is Lorem Ipsum and where does it come from?"STRING
LOWcognee/tests/backwards_compatibility/phase2_verify.py859 print("\n[Step 2] Re-adding + cognifying Lorem Ipsum with current branch...")STRING
LOWcognee/tests/api/test_agent_mode.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
AI Slop Vocabulary25 hits · 48 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.py575 # Should not raise exception, just returnCOMMENT
LOW…ee/tests/cli_tests/cli_unit_tests/test_cli_commands.py604 # Should not raise exception, just return with error messageCOMMENT
LOW…ee/tests/cli_tests/cli_unit_tests/test_cli_commands.py654 # Should not raise exception, just return with error messageCOMMENT
MEDIUM…/e2e/docker/test_docker_multi_tenant_access_control.py14Depends on: #3358 (Docker E2E harness).STRING
MEDIUMcognee/cli/commands/eval_command.py35 # harness (and its optional deps) unless the eval command is used.STRING
MEDIUMcognee/api/v1/health/health.py250 """Get comprehensive health status."""STRING
MEDIUM…ee/infrastructure/databases/utils/closing_lru_cache.py235 # (a proxy finalizer can fire at exit). That's fine: harness'sCOMMENT
LOW…structure/databases/vector/pgvector/PGVectorAdapter.py562 # If limit is still 0, no need to do the search, just return empty resultsCOMMENT
MEDIUM…put_framework/litellm_instructor/llm/get_llm_client.py94 # Delegates completions to the host harness via MCP sampling (no API key).COMMENT
MEDIUMcognee/modules/visualization/semantic_clusters.py144 label the seam then discards, and no dependency on the #3601 harness.STRING
LOWcognee/modules/agents/models.py17# your client matches one, otherwise just use your own lowercase name.COMMENT
LOWcognee/modules/storage/utils/__init__.py19 # if the obj is uuid, we simply return the value of uuidCOMMENT
MEDIUMcognee/modules/cognify/rollback.py234 # 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
MEDIUMscripts/docker_validation.sh49 # harness (cognee/tests/deployment/mcp_harness.py), which boots the image withCOMMENT
MEDIUM.github/workflows/performance_report_rust.yml101 # cognee-rs supplies the CLI, the perf harness, and the committed cassette.COMMENT
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
Hallucination Indicators3 hits · 30 pts
SeverityFileLineSnippetContext
CRITICAL…e/tests/unit/infrastructure/llm/test_ollama_adapter.py76 adapter.aclient.chat.completions.create.assert_awaited_once()CODE
CRITICAL…e/tests/unit/infrastructure/llm/test_ollama_adapter.py100 adapter.aclient.chat.completions.create.assert_awaited_once()CODE
CRITICAL…e/tests/unit/infrastructure/llm/test_ollama_adapter.py128 adapter.client.chat.completions.create.assert_awaited_once()CODE
Slop Phrases14 hits · 26 pts
SeverityFileLineSnippetContext
LOWcognee/tests/test_lancedb.py309 # Note: make sure to call test_vector_engine_search_with_nodeset_filtering()COMMENT
LOWcognee/tests/test_pgvector.py332 # Note: make sure to call test_vector_engine_search_with_nodeset_filtering()STRING
MEDIUMcognee/modules/integrations/slack/handle_cognee_ask.py282 "i'm unable to",CODE
MEDIUM…/old/mem0_01042025/metrics_output_mem0_human_eval.json114 "answer": "Based on the provided context, there is no mention of Robert Croft or a facility where he worked as aCODE
MEDIUM…/old/mem0_01042025/metrics_output_mem0_human_eval.json334 "answer": "The provided context does not contain information about the town where Black Crescent Mountain is locCODE
MEDIUM…/old/mem0_01042025/metrics_output_mem0_human_eval.json444 "answer": "The context provided does not contain information about Jalen Jones or the arena where his NBA team pCODE
MEDIUM…/old/mem0_01042025/metrics_output_mem0_direct_llm.json114 "answer": "Based on the provided context, there is no mention of Robert Croft or a facility where he worked as aCODE
MEDIUM…/old/mem0_01042025/metrics_output_mem0_direct_llm.json334 "answer": "The provided context does not contain information about the town where Black Crescent Mountain is locCODE
MEDIUM…/old/mem0_01042025/metrics_output_mem0_direct_llm.json444 "answer": "The context provided does not contain information about Jalen Jones or the arena where his NBA team pCODE
MEDIUMevals/old/mem0_01042025/metrics_output_mem0.json194 "answer": "Based on the provided context, there is no mention of Robert Croft or a facility where he worked as aCODE
MEDIUMevals/old/mem0_01042025/metrics_output_mem0.json574 "answer": "The provided context does not contain information about the town where Black Crescent Mountain is locCODE
MEDIUMevals/old/mem0_01042025/metrics_output_mem0.json764 "answer": "The context provided does not contain information about Jalen Jones or the arena where his NBA team pCODE
LOWcognee-frontend/src/app/(graph)/GraphVisualization.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
Example Usage Blocks6 hits · 10 pts
SeverityFileLineSnippetContext
LOW…ls/old/hotpot_qa_24_2025/src/qa/qa_benchmark_cognee.py166 # Example usageCOMMENT
LOWevals/old/hotpot_qa_24_2025/src/qa/qa_benchmark_mem0.py103 # Example usageCOMMENT
LOW…/old/hotpot_qa_24_2025/src/qa/qa_benchmark_lightrag.py80 # Example usageCOMMENT
LOWdistributed/deploy/modal-deploy.sh6# Usage:COMMENT
LOWdistributed/deploy/fly-deploy.sh6# Usage:COMMENT
LOW…ntegrations/docker-sandbox-kit/cognee-memory/spec.yaml4# Usage:COMMENT
Dead Code4 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUM…ts/unit/tasks/ingestion/test_dlt_stable_manifest_id.py61CODE
MEDIUM…modules/pipelines/test_run_tasks_data_item_sessions.py96CODE
MEDIUM…les/pipelines/test_incremental_passthrough_metadata.py60CODE
MEDIUM…/modules/users/test_get_default_user_db_not_created.py29CODE
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 Names3 hits · 2 pts
SeverityFileLineSnippetContext
LOWcognee/tests/unit/tasks/code_graph/test_code_repo.py25 (tmp_path / "lib" / "util.py").write_text("def helper():\n pass\n")CODE
LOW…utput_framework/litellm_instructor/llm/rate_limiter.py16 def my_function():STRING
LOW…utput_framework/litellm_instructor/llm/rate_limiter.py26 def my_function():STRING