Repository Analysis

mem0ai/mem0

Universal memory layer for AI Agents

22.0 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of mem0ai/mem0, a TypeScript project with 60,772 GitHub stars. SynthScan v2.0 examined 280,023 lines of code across 1325 source files, recording 3550 pattern matches distributed across 22 syntactic categories. The overall adjusted score of 22.0 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).

22.0
Adjusted Score
22.0
Raw Score
100%
Time Factor
2026-07-14
Last Push
60.8K
Stars
TypeScript
Language
280.0K
Lines of Code
1.3K
Files
3.5K
Pattern Hits
2026-07-14
Scan Date
0.26
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 22HIGH 323MEDIUM 503LOW 2702

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 3550 distinct pattern matches across 22 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 Identifiers1620 hits · 1599 pts
SeverityFileLineSnippetContext
LOWtests/test_oss_to_platform_migrate.py378def test_existing_api_key_authenticates_and_stitches_ids(tmp_path: Path) -> None:CODE
LOWtests/test_oss_to_platform_migrate.py409def test_email_code_authenticates_without_persisting_credentials(tmp_path: Path) -> None:CODE
LOWtests/test_oss_to_platform_migrate.py439def test_invalid_stored_key_falls_back_to_email_code(tmp_path: Path) -> None:CODE
LOWtests/test_oss_to_platform_migrate.py472def test_email_code_failure_reports_failed_telemetry(tmp_path: Path) -> None:CODE
LOWtests/test_oss_to_platform_migrate.py498def test_malformed_config_does_not_crash_and_authenticates(tmp_path: Path) -> None:CODE
LOWtests/test_oss_to_platform_migrate.py518def test_weird_telemetry_shape_does_not_crash(tmp_path: Path) -> None:CODE
LOWtests/test_oss_to_platform_migrate.py555def test_curl_piped_help_works() -> None:CODE
LOWtests/test_oss_to_platform_migrate.py568def test_export_qdrant_memories_to_json_without_vectors_or_api_key(tmp_path: Path) -> None:CODE
LOWtests/test_oss_to_platform_migrate.py652def test_export_requires_scope_or_all(tmp_path: Path) -> None:CODE
LOWtests/test_oss_to_platform_migrate.py662def test_export_all_uses_no_qdrant_filter(tmp_path: Path) -> None:CODE
LOWtests/test_oss_to_platform_migrate.py675def test_export_invalid_qdrant_credentials_fail_clearly(tmp_path: Path) -> None:CODE
LOWtests/test_oss_to_platform_migrate.py690def test_import_platform_memories_from_export_json(tmp_path: Path) -> None:CODE
LOWtests/test_oss_to_platform_migrate.py735def test_import_skips_existing_identical_memory(tmp_path: Path) -> None:CODE
LOWtests/test_oss_to_platform_migrate.py764def test_import_reports_changed_existing_without_update_or_add(tmp_path: Path) -> None:CODE
LOWtests/test_oss_to_platform_migrate.py798def test_full_flow_auth_export_and_imports_memories(tmp_path: Path) -> None:CODE
LOWtests/test_telemetry_aliasing.py40 def test_creates_config_when_missing(self, tmp_mem0_dir):CODE
LOWtests/test_telemetry_aliasing.py47 def test_backfills_user_id_when_only_telemetry_present(self, tmp_mem0_dir):CODE
LOWtests/test_telemetry_aliasing.py59 def test_does_not_overwrite_existing_user_id(self, tmp_mem0_dir):CODE
LOWtests/test_telemetry_aliasing.py67 def test_handles_malformed_json(self, tmp_mem0_dir):CODE
LOWtests/test_telemetry_aliasing.py114 def test_no_config_returns_all_none(self, tmp_mem0_dir):CODE
LOWtests/test_telemetry_aliasing.py120 def test_malformed_json_does_not_raise(self, tmp_mem0_dir):CODE
LOWtests/test_telemetry_aliasing.py132 def test_writes_aliased_pair_preserving_other_fields(self, tmp_mem0_dir):CODE
LOWtests/test_telemetry_aliasing.py149 def test_creates_telemetry_section_when_missing(self, tmp_mem0_dir):CODE
LOWtests/test_telemetry_aliasing.py157 def test_tracks_each_pair_independently(self, tmp_mem0_dir):CODE
LOWtests/test_telemetry_aliasing.py171 def test_fires_identify_with_anon_distinct_id(self):CODE
LOWtests/test_telemetry_aliasing.py185 def test_skips_when_anon_equals_email(self):CODE
LOWtests/test_telemetry_aliasing.py194 def test_skips_when_inputs_empty(self):CODE
LOWtests/test_telemetry_aliasing.py204 def test_noop_when_telemetry_disabled(self):CODE
LOWtests/test_telemetry_aliasing.py212 def test_does_not_raise_on_posthog_error(self):CODE
LOWtests/test_telemetry_aliasing.py221 def test_identify_is_in_lifecycle_events(self):CODE
LOWtests/test_telemetry_aliasing.py236 def test_fires_identify_for_oss_uuid(self):CODE
LOWtests/test_telemetry_aliasing.py254 def test_fires_identify_for_cli_anon(self):CODE
LOWtests/test_telemetry_aliasing.py271 def test_fires_identify_for_both_anon_ids(self):CODE
LOWtests/test_telemetry_aliasing.py291 def test_skips_when_pair_already_aliased(self):CODE
LOWtests/test_telemetry_aliasing.py308 def test_skips_when_email_invalid(self):CODE
LOWtests/test_telemetry_aliasing.py317 def test_skips_when_telemetry_disabled(self):CODE
LOWtests/test_telemetry_aliasing.py352 def test_skips_anon_id_equal_to_email(self):CODE
LOWtests/test_telemetry_aliasing.py369 def test_does_not_raise_on_read_failure(self):CODE
LOWtests/test_telemetry_aliasing.py388 def test_second_call_is_noop_after_pair_marker_persisted(self, tmp_mem0_dir):CODE
LOWtests/test_telemetry_aliasing.py334 def test_does_not_raise_on_telemetry_failure(self):CODE
LOWtests/test_telemetry_sampling.py32 def test_invalid_values_fall_back_to_default(self, raw):CODE
LOWtests/test_telemetry_sampling.py45 def test_lifecycle_event_passes_through_at_high_random(self):CODE
LOWtests/test_telemetry_sampling.py53 def test_hot_path_event_dropped_when_random_above_rate(self):CODE
LOWtests/test_telemetry_sampling.py59 def test_hot_path_event_passes_when_random_below_rate(self):CODE
LOWtests/test_telemetry_sampling.py67 def test_hot_path_annotates_sample_rate(self):CODE
LOWtests/test_telemetry_sampling.py73 def test_lifecycle_annotates_sample_rate_one(self):CODE
LOWtests/test_telemetry_sampling.py77 def test_rate_zero_drops_all_hot_path(self):CODE
LOWtests/test_telemetry_sampling.py84 def test_rate_zero_still_passes_lifecycle(self):CODE
LOWtests/test_telemetry_sampling.py89 def test_rate_one_passes_all_events(self):CODE
LOWtests/test_telemetry_sampling.py95 def test_does_not_override_caller_supplied_sample_rate_for_hot_path(self):CODE
LOWtests/test_telemetry_sampling.py104 def test_handles_missing_properties_dict(self):CODE
LOWtests/test_telemetry_sampling.py111 def test_handles_missing_event_field(self):CODE
LOWtests/test_telemetry_sampling.py118 def test_handles_non_dict_input(self):CODE
LOWtests/test_telemetry_sampling.py137 def test_oss_singleton_constructed_with_before_send_hook(self):CODE
LOWtests/test_telemetry_sampling.py148 def test_client_telemetry_constructed_without_before_send(self):CODE
LOWtests/test_telemetry_sampling.py165 def test_anonymous_telemetry_constructs_posthog_with_current_kwargs(self):CODE
LOWtests/test_telemetry_sampling.py195 def test_capture_event_signature_unchanged(self):CODE
LOWtests/test_telemetry_sampling.py202 def test_capture_client_event_signature_unchanged(self):CODE
LOWtests/test_telemetry_sampling.py208 def test_default_sample_rate_is_ten_percent(self):CODE
LOWtests/test_memory_integration.py6def test_memory_configuration_without_env_vars():CODE
1560 more matches not shown…
Decorative Section Separators412 hits · 1324 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_telemetry_aliasing.py36# ─── setup_config idempotency ────────────────────────────────────────────────COMMENT
MEDIUMtests/test_telemetry_aliasing.py76# ─── read_anon_ids ───────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_telemetry_aliasing.py128# ─── mark_aliased ────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_telemetry_aliasing.py167# ─── capture_identify ────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_telemetry_aliasing.py228# ─── _maybe_alias_anon_to_email integration ──────────────────────────────────COMMENT
MEDIUMtests/test_telemetry_aliasing.py381# ─── End-to-end idempotency through real config ──────────────────────────────COMMENT
MEDIUMtests/test_server_params.py86# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py88# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py113# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py115# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py139# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py141# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py155# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py157# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py194# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py196# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py248# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py250# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py269# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py271# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py296# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py298# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py321# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py323# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py354# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py356# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py388# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py390# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py442# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py444# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py479# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py481# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py540# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py542# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py603# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py605# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py656# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py658# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py21# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_server_params.py23# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_server_params.py58# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py60# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py221# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py223# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py741# ===========================================================================COMMENT
MEDIUMtests/test_server_params.py743# ===========================================================================COMMENT
MEDIUMtests/test_memory.py1106# ─── Entity Param Rejection Tests ─────────────────────────────────────────────COMMENT
MEDIUMtests/test_memory.py1143# ─── Regression: AsyncMemory._create_memory must store text_lemmatized ─────────COMMENT
MEDIUMtests/test_main.py375# =============================================================================COMMENT
MEDIUMtests/test_main.py377# =============================================================================COMMENT
MEDIUMtests/test_server_auth.py472# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_server_auth.py474# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_server_auth.py23# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_server_auth.py25# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_server_auth.py58# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_server_auth.py60# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_server_auth.py148# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_server_auth.py150# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_server_auth.py303# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_server_auth.py305# ---------------------------------------------------------------------------COMMENT
352 more matches not shown…
Magic Placeholder Names136 hits · 671 pts
SeverityFileLineSnippetContext
HIGHLLM.md50client = MemoryClient(api_key="your-api-key")CODE
HIGHLLM.md65const client = new MemoryClient({ apiKey: 'your-api-key' });CODE
HIGHLLM.md170 api_key="your-api-key", # or set MEM0_API_KEY env varCODE
HIGHLLM.md406 "api_key": "your-api-key",CODE
HIGHLLM.md478 apiKey: 'your-api-key',CODE
HIGHLLM.md1142memory_client = MemoryClient(api_key="your-api-key")STRING
HIGHtests/vector_stores/test_azure_ai_search.py638 # Test with api_key="your-api-key"COMMENT
HIGHtests/vector_stores/test_azure_ai_search.py642 api_key="your-api-key",CODE
HIGHtests/embeddings/test_azure_openai_embeddings.py144 base_embedder_config.azure_kwargs.api_key = "your-api-key"CODE
HIGHtests/llms/test_azure_openai_structured.py94 config = DummyConfig(model=None, azure_kwargs=DummyAzureKwargs(api_key="your-api-key"))CODE
HIGHtests/llms/test_azure_openai.py440 config.azure_kwargs.api_key = "your-api-key"CODE
HIGHmem0-ts/src/oss/src/vector_stores/azure_ai_search.ts100 this.apiKey && this.apiKey !== "" && this.apiKey !== "your-api-key"CODE
HIGH…m0-ts/src/community/src/integrations/langchain/mem0.ts135 * apiKey: "your-api-key",COMMENT
HIGHserver/README.md259curl -s http://localhost:8888/memories?user_id=<your-user-id> -H "X-API-Key: <your-api-key>"CODE
HIGHdocs/llms.txt50client = MemoryClient(api_key="your-api-key")CODE
HIGHdocs/llms.txt80const client = new MemoryClient({ apiKey: "your-api-key" });CODE
HIGHdocs/openapi.json1444 "source": "# To use the Python SDK, install the package:\n# pip install mem0ai\n\nfrom mem0 import MemoryClient\ncCODE
HIGHdocs/openapi.json1448 "source": "// To use the JavaScript SDK, install the package:\n// npm i mem0ai\n\nimport MemoryClient from 'mem0aiCODE
HIGHdocs/openapi.json1452 "source": "curl -X POST 'https://api.mem0.ai/v2/memories/' \\\n-H 'Authorization: Token your-api-key' \\\n-H 'ContCODE
HIGHdocs/openapi.json1456 "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"net/http\"\CODE
HIGHdocs/openapi.json1460 "source": "<?php\n\n$curl = curl_init();\n\n$filters = [\n 'AND' => [\n ['user_id' => 'alex'],\n ['created_CODE
HIGHdocs/openapi.json1464 "source": "import com.konghq.unirest.http.HttpResponse;\nimport com.konghq.unirest.http.Unirest;\nimport org.json.CODE
HIGHdocs/openapi.json4157 "source": "# To use the Python SDK, install the package:\n# pip install mem0ai\n\nfrom mem0 import MemoryClient\n\CODE
HIGHdocs/openapi.json4161 "source": "// To use the JavaScript SDK, install the package:\n// npm i mem0ai\n\nimport MemoryClient from 'mem0aiCODE
HIGHdocs/openapi.json4169 "source": "// To use the Go SDK, install the package:\n// go get github.com/mem0ai/mem0-go\n\npackage main\n\nimpoCODE
HIGHdocs/openapi.json4173 "source": "<?php\n// To use the PHP SDK, install the package:\n// composer require mem0ai/mem0-php\n\nrequire_onceCODE
HIGHdocs/openapi.json4177 "source": "// To use the Java SDK, add this dependency to your pom.xml:\n// <dependency>\n// <groupId>ai.mem0<CODE
HIGHdocs/openapi.json4282 "source": "# To use the Python SDK, install the package:\n# pip install mem0ai\n\nfrom mem0 import MemoryClient\n\CODE
HIGHdocs/openapi.json4286 "source": "// To use the JavaScript SDK, install the package:\n// npm i mem0ai\n\nimport MemoryClient from 'mem0aiCODE
HIGHdocs/openapi.json4294 "source": "// To use the Go SDK, install the package:\n// go get github.com/mem0ai/mem0-go\n\npackage main\n\nimpoCODE
HIGHdocs/openapi.json4298 "source": "<?php\n// To use the PHP SDK, install the package:\n// composer require mem0ai/mem0-php\n\nrequire_onceCODE
HIGHdocs/openapi.json4302 "source": "// To use the Java SDK, add this dependency to your pom.xml:\n// <dependency>\n// <groupId>ai.mem0<CODE
HIGHdocs/openapi.json4964 "source": "# To use the Python SDK, install the package:\n# pip install mem0ai\n\nfrom mem0 import MemoryClient\ncCODE
HIGHdocs/openapi.json4968 "source": "// To use the JavaScript SDK, install the package:\n// npm i mem0ai\n\nimport MemoryClient from 'mem0aiCODE
HIGHdocs/openapi.json4972 "source": "curl -X PUT \"https://api.mem0.ai/v1/batch/\" \\\n -H \"Authorization: Token your-api-key\" \\\n CODE
HIGHdocs/openapi.json5052 "source": "# To use the Python SDK, install the package:\n# pip install mem0ai\n\nfrom mem0 import MemoryClient\ncCODE
HIGHdocs/openapi.json5056 "source": "// To use the JavaScript SDK, install the package:\n// npm i mem0ai\n\nimport MemoryClient from 'mem0aiCODE
HIGHdocs/openapi.json5060 "source": "curl -X DELETE \"https://api.mem0.ai/v1/batch/\" \\\n -H \"Authorization: Token your-api-key\" \\\nCODE
HIGHdocs/openapi.json5157 "source": "# To use the Python SDK, install the package:\n# pip install mem0ai\n\nfrom mem0 import MemoryClient\ncCODE
HIGHdocs/openapi.json5161 "source": "// To use the JavaScript SDK, install the package:\n// npm i mem0ai\n\nimport MemoryClient from 'mem0aiCODE
HIGHdocs/openapi.json5165 "source": "# Get all webhooks\ncurl --request GET \\\n --url 'https://api.mem0.ai/api/v1/webhooks/your_project_idCODE
HIGHdocs/openapi.json5169 "source": "<?php\n\n$curl = curl_init();\n\n// Get all webhooks\ncurl_setopt_array($curl, [\n CURLOPT_URL => \"htCODE
HIGHdocs/openapi.json5173 "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {CODE
HIGHdocs/openapi.json5177 "source": "// Get all webhooks\nHttpResponse<String> response = Unirest.get(\"https://api.mem0.ai/api/v1/webhooks/CODE
HIGHdocs/openapi.json5320 "source": "# To use the Python SDK, install the package:\n# pip install mem0ai\n\nfrom mem0 import MemoryClient\ncCODE
HIGHdocs/openapi.json5324 "source": "// To use the JavaScript SDK, install the package:\n// npm i mem0ai\n\nimport MemoryClient from 'mem0aiCODE
HIGHdocs/openapi.json5328 "source": "curl -X POST \"https://api.mem0.ai/api/v1/webhooks/your_project_id/webhook/\" \\\n -H \"AuthorizatiCODE
HIGHdocs/openapi.json5332 "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n CURLOPT_URL => \"https://api.mem0.ai/aCODE
HIGHdocs/openapi.json5336 "source": "package main\n\nimport (\n \"fmt\"\n \"strings\"\n \"net/http\"\n \"io/ioutil\"\n)\n\nfunc CODE
HIGHdocs/openapi.json5340 "source": "import com.konghq.unirest.http.HttpResponse;\nimport com.konghq.unirest.http.Unirest;\n\n// Create a weCODE
HIGHdocs/openapi.json5465 "source": "# To use the Python SDK, install the package:\n# pip install mem0ai\n\nfrom mem0 import MemoryClient\ncCODE
HIGHdocs/openapi.json5469 "source": "// To use the JavaScript SDK, install the package:\n// npm i mem0ai\n\nimport MemoryClient from 'mem0aiCODE
HIGHdocs/openapi.json5473 "source": "# Update a webhook\ncurl --request PUT \\\n --url 'https://api.mem0.ai/api/v1/webhooks/your_webhook_idCODE
HIGHdocs/openapi.json5477 "source": "<?php\n\n$curl = curl_init();\n\n// Update a webhook\ncurl_setopt_array($curl, [\n CURLOPT_URL => \"htCODE
HIGHdocs/openapi.json5481 "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {CODE
HIGHdocs/openapi.json5485 "source": "// Update a webhook\nHttpResponse<String> response = Unirest.put(\"https://api.mem0.ai/api/v1/webhooks/CODE
HIGHdocs/openapi.json5560 "source": "# To use the Python SDK, install the package:\n# pip install mem0ai\n\nfrom mem0 import MemoryClient\ncCODE
HIGHdocs/openapi.json5564 "source": "// To use the JavaScript SDK, install the package:\n// npm i mem0ai\n\nimport MemoryClient from 'mem0aiCODE
HIGHdocs/openapi.json5568 "source": "curl -X DELETE \"https://api.mem0.ai/api/v1/webhooks/your_webhook_id/webhook/\" \\\n -H \"AuthorizaCODE
HIGHdocs/openapi.json5572 "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n CURLOPT_URL => \"https://api.mem0.ai/aCODE
76 more matches not shown…
Cross-File Repetition118 hits · 590 pts
SeverityFileLineSnippetContext
HIGHmem0/vector_stores/cassandra.py0insert vectors into the table. args: vectors (list[list[float]]): list of vectors to insert. payloads (list[dict], optioSTRING
HIGHmem0/vector_stores/azure_mysql.py0insert vectors into the table. args: vectors (list[list[float]]): list of vectors to insert. payloads (list[dict], optioSTRING
HIGHmem0/vector_stores/supabase.py0insert vectors into the table. args: vectors (list[list[float]]): list of vectors to insert. payloads (list[dict], optioSTRING
HIGHmem0/vector_stores/milvus.py0insert vectors into the table. args: vectors (list[list[float]]): list of vectors to insert. payloads (list[dict], optioSTRING
HIGHmem0/vector_stores/mongodb.py0insert vectors into the table. args: vectors (list[list[float]]): list of vectors to insert. payloads (list[dict], optioSTRING
HIGHmem0/vector_stores/azure_ai_search.py0insert vectors into the table. args: vectors (list[list[float]]): list of vectors to insert. payloads (list[dict], optioSTRING
HIGHmem0/vector_stores/databricks.py0insert vectors into the table. args: vectors (list[list[float]]): list of vectors to insert. payloads (list[dict], optioSTRING
HIGHmem0/vector_stores/baidu.py0insert vectors into the table. args: vectors (list[list[float]]): list of vectors to insert. payloads (list[dict], optioSTRING
HIGHmem0/vector_stores/cassandra.py0delete a vector by id. args: vector_id (int): id of the vector to delete.STRING
HIGHmem0/vector_stores/azure_mysql.py0delete a vector by id. args: vector_id (int): id of the vector to delete.STRING
HIGHmem0/vector_stores/supabase.py0delete a vector by id. args: vector_id (int): id of the vector to delete.STRING
HIGHmem0/vector_stores/milvus.py0delete a vector by id. args: vector_id (int): id of the vector to delete.STRING
HIGHmem0/vector_stores/mongodb.py0delete a vector by id. args: vector_id (int): id of the vector to delete.STRING
HIGHmem0/vector_stores/faiss.py0delete a vector by id. args: vector_id (int): id of the vector to delete.STRING
HIGHmem0/vector_stores/pgvector.py0delete a vector by id. args: vector_id (int): id of the vector to delete.STRING
HIGHmem0/vector_stores/azure_ai_search.py0delete a vector by id. args: vector_id (int): id of the vector to delete.STRING
HIGHmem0/vector_stores/baidu.py0delete a vector by id. args: vector_id (int): id of the vector to delete.STRING
HIGHmem0/vector_stores/chroma.py0delete a vector by id. args: vector_id (int): id of the vector to delete.STRING
HIGHmem0/vector_stores/qdrant.py0delete a vector by id. args: vector_id (int): id of the vector to delete.STRING
HIGHmem0/vector_stores/upstash_vector.py0delete a vector by id. args: vector_id (int): id of the vector to delete.STRING
HIGHmem0/vector_stores/cassandra.py0update a vector and/or its payload. args: vector_id (str): id of the vector to update vector (list[float], optional): upSTRING
HIGHmem0/vector_stores/azure_mysql.py0update a vector and/or its payload. args: vector_id (str): id of the vector to update vector (list[float], optional): upSTRING
HIGHmem0/vector_stores/milvus.py0update a vector and/or its payload. args: vector_id (str): id of the vector to update vector (list[float], optional): upSTRING
HIGHmem0/vector_stores/mongodb.py0update a vector and/or its payload. args: vector_id (str): id of the vector to update vector (list[float], optional): upSTRING
HIGHmem0/vector_stores/pgvector.py0update a vector and/or its payload. args: vector_id (str): id of the vector to update vector (list[float], optional): upSTRING
HIGHmem0/vector_stores/azure_ai_search.py0update a vector and/or its payload. args: vector_id (str): id of the vector to update vector (list[float], optional): upSTRING
HIGHmem0/vector_stores/baidu.py0update a vector and/or its payload. args: vector_id (str): id of the vector to update vector (list[float], optional): upSTRING
HIGHmem0/vector_stores/supabase.py0update a vector and/or its payload. args: vector_id (str): id of the vector to update vector (list[float], optional): upSTRING
HIGHmem0/vector_stores/cassandra.py0retrieve a vector by id. args: vector_id (str): id of the vector to retrieve returns: optional[outputdata]: retrieved veSTRING
HIGHmem0/vector_stores/azure_mysql.py0retrieve a vector by id. args: vector_id (str): id of the vector to retrieve returns: optional[outputdata]: retrieved veSTRING
HIGHmem0/vector_stores/supabase.py0retrieve a vector by id. args: vector_id (str): id of the vector to retrieve returns: optional[outputdata]: retrieved veSTRING
HIGHmem0/vector_stores/cassandra.py0get information about the collection. returns: dict[str, any]: collection information.STRING
HIGHmem0/vector_stores/azure_mysql.py0get information about the collection. returns: dict[str, any]: collection information.STRING
HIGHmem0/vector_stores/mongodb.py0get information about the collection. returns: dict[str, any]: collection information.STRING
HIGHmem0/vector_stores/milvus.py0parse the output data. args: data (dict): output data. returns: list[outputdata]: parsed output data.STRING
HIGHmem0/vector_stores/weaviate.py0parse the output data. args: data (dict): output data. returns: list[outputdata]: parsed output data.STRING
HIGHmem0/vector_stores/chroma.py0parse the output data. args: data (dict): output data. returns: list[outputdata]: parsed output data.STRING
HIGHmem0/vector_stores/vertex_ai_vector_search.py0parse the output data. args: data (dict): output data. returns: list[outputdata]: parsed output data.STRING
HIGHmem0/vector_stores/milvus.py0search for similar vectors. args: query (str): query. vectors (list[float]): query vector. top_k (int, optional): numberSTRING
HIGHmem0/vector_stores/pgvector.py0search for similar vectors. args: query (str): query. vectors (list[float]): query vector. top_k (int, optional): numberSTRING
HIGHmem0/vector_stores/pinecone.py0search for similar vectors. args: query (str): query. vectors (list[float]): query vector. top_k (int, optional): numberSTRING
HIGHmem0/vector_stores/supabase.py0search for similar vectors. args: query (str): query. vectors (list[float]): query vector. top_k (int, optional): numberSTRING
HIGHmem0/vector_stores/qdrant.py0search for similar vectors. args: query (str): query. vectors (list[float]): query vector. top_k (int, optional): numberSTRING
HIGHmem0/vector_stores/azure_ai_search.py0search for similar vectors. args: query (str): query. vectors (list[float]): query vector. top_k (int, optional): numberSTRING
HIGHmem0/vector_stores/baidu.py0search for similar vectors. args: query (str): query. vectors (list[float]): query vector. top_k (int, optional): numberSTRING
HIGHmem0/vector_stores/vertex_ai_vector_search.py0search for similar vectors. args: query (str): query. vectors (list[float]): query vector. top_k (int, optional): numberSTRING
HIGHmem0/vector_stores/milvus.py0retrieve a vector by id. args: vector_id: id of the vector to retrieve. returns: optional[outputdata]: retrieved vector,STRING
HIGHmem0/vector_stores/chroma.py0retrieve a vector by id. args: vector_id: id of the vector to retrieve. returns: optional[outputdata]: retrieved vector,STRING
HIGHmem0/vector_stores/mongodb.py0retrieve a vector by id. args: vector_id: id of the vector to retrieve. returns: optional[outputdata]: retrieved vector,STRING
HIGHmem0/vector_stores/vertex_ai_vector_search.py0retrieve a vector by id. args: vector_id: id of the vector to retrieve. returns: optional[outputdata]: retrieved vector,STRING
HIGHmem0/vector_stores/weaviate.py0retrieve a vector by id. args: vector_id: id of the vector to retrieve. returns: optional[outputdata]: retrieved vector,STRING
HIGHmem0/vector_stores/milvus.py0list all collections. returns: list[str]: list of collection names.STRING
HIGHmem0/vector_stores/faiss.py0list all collections. returns: list[str]: list of collection names.STRING
HIGHmem0/vector_stores/pgvector.py0list all collections. returns: list[str]: list of collection names.STRING
HIGHmem0/vector_stores/milvus.py0list all vectors in the table. args: filters (dict, optional): filters to apply to the list. top_k (int, optional): numbSTRING
HIGHmem0/vector_stores/pgvector.py0list all vectors in the table. args: filters (dict, optional): filters to apply to the list. top_k (int, optional): numbSTRING
HIGHmem0/vector_stores/qdrant.py0list all vectors in the table. args: filters (dict, optional): filters to apply to the list. top_k (int, optional): numbSTRING
HIGHmem0/vector_stores/faiss.py0list all vectors in the table. args: filters (dict, optional): filters to apply to the list. top_k (int, optional): numbSTRING
HIGHmem0/vector_stores/chroma.py0list all vectors in the table. args: filters (dict, optional): filters to apply to the list. top_k (int, optional): numbSTRING
HIGHmem0/vector_stores/azure_ai_search.py0list all vectors in the table. args: filters (dict, optional): filters to apply to the list. top_k (int, optional): numbSTRING
58 more matches not shown…
Excessive Try-Catch Wrapping407 hits · 387 pts
SeverityFileLineSnippetContext
LOWLLM.md987 except Exception as e:STRING
LOWLLM.md1168 except Exception as e:STRING
LOWLLM.md1180 except Exception as e:STRING
LOWLLM.md1188 except Exception as e:STRING
LOWLLM.md1196 except Exception as e:STRING
LOWLLM.md1235 except Exception as e:STRING
LOWLLM.md1251 except Exception as e:STRING
MEDIUMLLM.md984def safe_memory_operation(memory_client, operation, *args, **kwargs):CODE
LOWtests/vector_stores/test_e2e_threshold.py215 except Exception:CODE
MEDIUMtests/vector_stores/test_e2e_threshold.py204def _pgvector_reachable():CODE
LOWtests/vector_stores/test_score_normalization.py198 except Exception:CODE
MEDIUMtests/vector_stores/test_score_normalization.py187def _pgvector_reachable():CODE
LOWtests/utils/test_entity_extraction.py11 except Exception:CODE
LOWtests/utils/test_lemmatization.py10 except Exception:CODE
LOWserver/telemetry.py104 except Exception:CODE
LOWserver/main.py72 except Exception:CODE
LOWserver/main.py284 except Exception:CODE
LOWserver/main.py304 except Exception:CODE
LOWserver/main.py362 except Exception:CODE
LOWserver/main.py380 except Exception:CODE
LOWserver/main.py438 except Exception:CODE
LOWserver/main.py447 except Exception:CODE
LOWserver/main.py482 except Exception:CODE
LOWserver/main.py501 except Exception:CODE
LOWserver/main.py510 except Exception:CODE
LOWserver/main.py522 except Exception:CODE
LOWserver/main.py542 except Exception:CODE
LOWserver/main.py552 except Exception:CODE
LOWserver/server_state.py34 except Exception:CODE
LOWserver/server_state.py60 except Exception:CODE
MEDIUMserver/server_state.py20def _load_overrides() -> Dict[str, Any]:CODE
LOWserver/routers/entities.py74 except Exception:CODE
LOWcli/python/src/mem0_cli/config.py192 except Exception:CODE
LOWcli/python/src/mem0_cli/branding.py136 except Exception:CODE
LOWcli/python/src/mem0_cli/branding.py144 except Exception:CODE
LOWcli/python/src/mem0_cli/telemetry.py65 except Exception:CODE
LOWcli/python/src/mem0_cli/telemetry.py69 except Exception:CODE
LOWcli/python/src/mem0_cli/telemetry.py154 except Exception:CODE
LOWcli/python/src/mem0_cli/telemetry_sender.py83 except Exception:CODE
LOWcli/python/src/mem0_cli/telemetry_sender.py97 except Exception:CODE
LOWcli/python/src/mem0_cli/telemetry_sender.py111 except Exception:CODE
LOWcli/python/src/mem0_cli/app.py75 except Exception:CODE
LOWcli/python/src/mem0_cli/app.py149 except Exception:CODE
LOWcli/python/src/mem0_cli/app.py203 except Exception:CODE
LOWcli/python/src/mem0_cli/plugin_sync.py116 except Exception:CODE
LOWcli/python/src/mem0_cli/backend/platform.py50 except Exception:CODE
LOWcli/python/src/mem0_cli/backend/platform.py352 except Exception as e:CODE
LOWcli/python/src/mem0_cli/commands/init_cmd.py156 except Exception:CODE
LOWcli/python/src/mem0_cli/commands/init_cmd.py189 except Exception:CODE
LOWcli/python/src/mem0_cli/commands/init_cmd.py313 except Exception:CODE
LOWcli/python/src/mem0_cli/commands/init_cmd.py557 except Exception:CODE
LOWcli/python/src/mem0_cli/commands/init_cmd.py565 except Exception as e:CODE
LOWcli/python/src/mem0_cli/commands/memory.py46 except Exception:CODE
LOWcli/python/src/mem0_cli/commands/memory.py148 except Exception as e:CODE
LOWcli/python/src/mem0_cli/commands/memory.py270 except Exception as e:CODE
LOWcli/python/src/mem0_cli/commands/memory.py333 except Exception as e:CODE
LOWcli/python/src/mem0_cli/commands/memory.py384 except Exception as e:CODE
LOWcli/python/src/mem0_cli/commands/memory.py469 except Exception as e:CODE
LOWcli/python/src/mem0_cli/commands/memory.py505 except Exception as e:CODE
LOWcli/python/src/mem0_cli/commands/memory.py516 except Exception as e:CODE
347 more matches not shown…
Docstring Block Structure68 hits · 308 pts
SeverityFileLineSnippetContext
HIGHmem0/vector_stores/faiss.py64 Safely load a pickle file using restricted unpickler. Args: file_path: Path to the pickle file. RSTRING
HIGHmem0/vector_stores/faiss.py81 Validate that loaded data has the expected structure. Args: data: The loaded data to validate. ReSTRING
HIGHmem0/vector_stores/vertex_ai_vector_search.py334Update a vector and its payload. Args: vector_id: ID of the vector to update vector: OpSTRING
HIGHmem0/vector_stores/vertex_ai_vector_search.py550Add texts to the vector store. Args: texts: List of texts to add metadatas: Optional liSTRING
HIGHmem0/memory/main.py149 Validates and normalizes an entity ID. - Coerces non-string values (e.g. integer ids) to str - Trims leadinSTRING
HIGHmem0/memory/main.py737 Create a new memory. Adds new memories scoped to a single session id (e.g. `user_id`, `agent_id`, or `STRING
HIGHmem0/memory/main.py1221 List all memories. Args: filters (dict): Filter dict containing entity IDs and optional meSTRING
HIGHmem0/memory/main.py1350 Searches for memories based on a query. Args: query (str): Query to search for. STRING
HIGHmem0/memory/main.py2855 List all memories. Args: filters (dict): Filter dict containing entity IDs and optional meSTRING
HIGHmem0/memory/main.py2984 Searches for memories based on a query. Args: query (str): Query to search for. STRING
HIGHmem0/utils/gcp_auth.py30 Get Google credentials using the priority order defined above. Args: service_account_json:STRING
HIGHmem0/utils/gcp_auth.py99 Initialize Vertex AI with proper authentication. Args: service_account_json: Service accouSTRING
HIGHmem0/utils/factory.py63 Create an LLM instance with the appropriate configuration. Args: provider_name (str): The STRING
HIGHmem0/utils/factory.py243 Create a reranker instance based on the provider and configuration. Args: provider_name: TSTRING
HIGHmem0/client/main.py179Add a new memory. Args: messages: A list of message dictionaries, a single message dictionary, STRING
HIGHmem0/client/main.py220Retrieve a specific memory by ID. Args: memory_id: The ID of the memory to retrieve. ReturSTRING
HIGHmem0/client/main.py244Retrieve all memories, with optional filtering. Args: options: Typed options for the get_all operatSTRING
HIGHmem0/client/main.py295Search memories based on a query. Args: query: The search query string. options: Typed STRING
HIGHmem0/client/main.py347Update a memory by ID. Args: memory_id: The ID of the memory to update. options: Typed STRING
HIGHmem0/client/main.py381Delete a specific memory by ID. Args: memory_id: The ID of the memory to delete. deleteSTRING
HIGHmem0/client/main.py412Delete all memories, with optional filtering. Args: options: Typed options for the delete_all operaSTRING
HIGHmem0/client/main.py443Retrieve the history of a specific memory. Args: memory_id: The ID of the memory to retrieve historSTRING
HIGHmem0/client/main.py482Delete specific entities or all entities if no filters provided. Args: user_id: Optional user ID toSTRING
HIGHmem0/client/main.py569Batch update memories. Args: memories: List of memory dictionaries to update. Each dictionary must STRING
HIGHmem0/client/main.py596Batch delete memories. Args: memories: List of memory dictionaries to delete. Each dictionary STRING
HIGHmem0/client/main.py684Get instructions or categories for the current project. Args: fields: List of fields to retrieve STRING
HIGHmem0/client/main.py733Update the project settings. Args: options: Typed options for the update operation (ProjectUpdateOpSTRING
HIGHmem0/client/main.py803Get webhooks configuration for the project. Args: project_id: The ID of the project to get webhooksSTRING
HIGHmem0/client/main.py828Create a webhook for the current project. Args: url: The URL to send the webhook to. naSTRING
HIGHmem0/client/main.py862Update a webhook configuration. Args: webhook_id: ID of the webhook to update name: OptSTRING
HIGHmem0/client/main.py890Delete a webhook configuration. Args: webhook_id: ID of the webhook to delete Returns: STRING
HIGHmem0/client/main.py1118Add a new memory. Args: messages: A list of message dictionaries, a single message dictionary, STRING
HIGHmem0/client/main.py1167Retrieve all memories, with optional filtering. Args: options: Typed options for the get_all operatSTRING
HIGHmem0/client/main.py1218Search memories based on a query. Args: query: The search query string. options: Typed STRING
HIGHmem0/client/main.py1270Update a memory by ID asynchronously. Args: memory_id: The ID of the memory to update. STRING
HIGHmem0/client/main.py1306Delete a specific memory by ID. Args: memory_id: The ID of the memory to delete. deleteSTRING
HIGHmem0/client/main.py1337Delete all memories, with optional filtering. Args: options: Typed options for the delete_all operaSTRING
HIGHmem0/client/main.py1363Retrieve the history of a specific memory. Args: memory_id: The ID of the memory to retrieve historSTRING
HIGHmem0/client/main.py1405Delete specific entities or all entities if no filters provided. Args: user_id: Optional user ID toSTRING
HIGHmem0/client/main.py1491Batch update memories. Args: memories: List of memory dictionaries to update. Each dictionary must STRING
HIGHmem0/client/main.py1518Batch delete memories. Args: memories: List of memory dictionaries to delete. Each dictionary STRING
HIGHmem0/client/main.py1593Get instructions or categories for the current project. Args: fields: List of fields to retrieve STRING
HIGHmem0/client/main.py1638Update the project settings. Args: options: Typed options for the update operation (ProjectUpdateOpSTRING
HIGHmem0/client/main.py1708Get webhooks configuration for the project. Args: project_id: The ID of the project to get webhooksSTRING
HIGHmem0/client/main.py1733Create a webhook for the current project. Args: url: The URL to send the webhook to. naSTRING
HIGHmem0/client/main.py1767Update a webhook configuration. Args: webhook_id: ID of the webhook to update name: OptSTRING
HIGHmem0/client/main.py1795Delete a webhook configuration. Args: webhook_id: ID of the webhook to delete Returns: STRING
HIGHmem0/client/project.py86 Prepare query parameters for API requests. Args: kwargs: Additional keyword arguments. STRING
HIGHmem0/client/project.py111 Prepare query parameters for organization-level API requests. Args: kwargs: Additional keySTRING
HIGHmem0/client/project.py136 Get project details. Args: fields: List of fields to retrieve Returns: STRING
HIGHmem0/client/project.py156 Create a new project within the organization. Args: name: Name of the project to be createSTRING
HIGHmem0/client/project.py182 Update project settings. Args: custom_instructions: New instructions for the project STRING
HIGHmem0/client/project.py238 Add a new member to the current project. Args: email: Email address of the user to add STRING
HIGHmem0/client/project.py259 Update a member's role in the current project. Args: email: Email address of the user to uSTRING
HIGHmem0/client/project.py280 Remove a member from the current project. Args: email: Email address of the user to removeSTRING
HIGHmem0/client/project.py327 Get project details. Args: fields: List of fields to retrieve Returns: STRING
HIGHmem0/client/project.py358 Create a new project within the organization. Args: name: Name of the project to be createSTRING
HIGHmem0/client/project.py403 Update project settings. Args: custom_instructions: New instructions for the project STRING
HIGHmem0/client/project.py520 Add a new member to the current project. Args: email: Email address of the user to add STRING
HIGHmem0/client/project.py556 Update a member's role in the current project. Args: email: Email address of the user to uSTRING
8 more matches not shown…
Structural Annotation Overuse179 hits · 305 pts
SeverityFileLineSnippetContext
LOWtests/vector_stores/test_e2e_threshold.py63 # Step 1: Search without threshold (baseline)COMMENT
LOWtests/vector_stores/test_e2e_threshold.py74 # Step 2: Verify all scores are non-negative (similarity, not raw distance)COMMENT
LOWtests/vector_stores/test_e2e_threshold.py79 # Step 3: Simulate threshold filtering as Memory.search() does itCOMMENT
LOWtests/vector_stores/test_e2e_threshold.py99 # Step 4: Very high threshold should return 0 or very few resultsCOMMENT
LOWtests/vector_stores/test_databricks.py636 # Step 1: Config validation (simulates what Memory.from_config does)COMMENT
LOWtests/vector_stores/test_databricks.py654 # Step 2: Factory instantiation (same as MemoryBase.__init__)COMMENT
LOWtests/memory/test_main.py425 # Step 1: Create a memory — capture the payload stored in the vector storeCOMMENT
LOWtests/memory/test_main.py435 # Step 2: Simulate the vector store returning this memory for both search and get_allCOMMENT
LOWtests/memory/test_main.py444 # Step 3: Call search and get_all, compare timestampsCOMMENT
LOWmem0-ts/src/oss/src/memory/index.ts1393 // Step 1: Preprocess queryCOMMENT
LOWmem0-ts/src/oss/src/memory/index.ts1397 // Step 2: Embed queryCOMMENT
LOWmem0-ts/src/oss/src/memory/index.ts1400 // Step 3: Semantic search (over-fetch for scoring pool)COMMENT
LOWmem0-ts/src/oss/src/memory/index.ts1408 // Step 4: Keyword search (if store supports it)COMMENT
LOWmem0-ts/src/oss/src/memory/index.ts1520 // Step 7: Build candidate set from semantic resultsCOMMENT
LOWmem0-ts/src/oss/src/memory/index.ts1529 // Step 8: Score and rankCOMMENT
LOWmem0-ts/src/oss/src/memory/index.ts1539 // Step 9: Format resultsCOMMENT
LOWmem0-ts/src/oss/src/memory/index.ts1427 // Step 5: Compute BM25 scores from keyword resultsCOMMENT
LOWmem0-ts/src/oss/src/memory/index.ts1440 // Step 6: Compute entity boostsCOMMENT
LOWmem0-ts/src/oss/src/memory/index.ts1574 // Step 10: Optionally re-rank with the configured reranker. Opt-in perCOMMENT
LOWmem0-ts/src/oss/src/prompts/index.ts902 // Step 1: Strip known noise tokens from OpenRouter/local modelsCOMMENT
LOWmem0-ts/src/oss/src/prompts/index.ts910 // Step 2: Strip code fences and <think> blocksCOMMENT
LOWmem0-ts/src/oss/src/prompts/index.ts916 // Step 3: Try to find valid JSON object by testing each `{` as potential startCOMMENT
LOWmem0-ts/src/oss/src/prompts/index.ts966 // Step 4: Fallback - try first/last brace (original behavior for edge cases)COMMENT
LOWmem0-ts/src/oss/src/prompts/index.ts980 // Step 5: Try to locate a JSON array by testing each `[` as potential startCOMMENT
LOWcli/CLI_SPECIFICATION.md1409### Step 1: Add to `cli-spec.json`COMMENT
LOWcli/CLI_SPECIFICATION.md1456### Step 2: Add Backend Method (if new API endpoint)COMMENT
LOWcli/CLI_SPECIFICATION.md1466### Step 3: Add Command HandlerCOMMENT
LOWcli/CLI_SPECIFICATION.md1482### Step 4: Register in App EntrypointCOMMENT
LOWcli/CLI_SPECIFICATION.md1516### Step 5: Add Help ExamplesCOMMENT
LOWcli/CLI_SPECIFICATION.md1522### Step 6: Add to Help Display and Command OrderCOMMENT
LOWcli/CLI_SPECIFICATION.md1530### Step 7: Add to `help` Command OutputCOMMENT
LOWcli/CLI_SPECIFICATION.md1539### Step 8: Add TestsCOMMENT
LOWcli/CLI_SPECIFICATION.md1544### Step 9: Update This SpecificationCOMMENT
LOWcli/python/src/mem0_cli/commands/init_cmd.py163 # Step 2: Get code from userCOMMENT
LOWcli/python/src/mem0_cli/commands/init_cmd.py144 # Step 1: Request verification codeCOMMENT
LOWcli/python/src/mem0_cli/commands/init_cmd.py177 # Step 3: Verify codeCOMMENT
LOWcli/python/src/mem0_cli/commands/agent_mode_cmd.py165 # Step 1: request OTP (unless --code provided)COMMENT
LOWcli/python/src/mem0_cli/commands/agent_mode_cmd.py199 # Step 2: verify + claim in one shotCOMMENT
LOWcli/node/src/commands/agent-mode.ts180 // Step 1: request OTP (unless --code was supplied)COMMENT
LOWcli/node/src/commands/agent-mode.ts222 // Step 2: verify + claim atomicallyCOMMENT
LOWintegrations/pi-agent-plugin/skills/pin/SKILL.md12### Step 1: Find the memoryCOMMENT
LOWintegrations/pi-agent-plugin/skills/pin/SKILL.md23### Step 2: Pin itCOMMENT
LOWintegrations/pi-agent-plugin/skills/pin/SKILL.md34### Step 3: ConfirmCOMMENT
LOWintegrations/pi-agent-plugin/skills/search/SKILL.md12### Step 1: Parse queryCOMMENT
LOWintegrations/pi-agent-plugin/skills/search/SKILL.md20### Step 2: SearchCOMMENT
LOWintegrations/pi-agent-plugin/skills/search/SKILL.md24### Step 3: DisplayCOMMENT
LOWintegrations/pi-agent-plugin/skills/tour/SKILL.md43### Step 1: Fetch ALL memoriesCOMMENT
LOWintegrations/pi-agent-plugin/skills/tour/SKILL.md47### Step 2: Group by categoryCOMMENT
LOWintegrations/pi-agent-plugin/skills/tour/SKILL.md65### Step 3: Display resultsCOMMENT
LOWintegrations/pi-agent-plugin/skills/tour/SKILL.md77### Step 4: Print totalsCOMMENT
LOWintegrations/pi-agent-plugin/skills/tour/SKILL.md83### Step 5: Empty stateCOMMENT
LOWintegrations/pi-agent-plugin/skills/forget/SKILL.md12### Step 1: Parse inputCOMMENT
LOWintegrations/pi-agent-plugin/skills/forget/SKILL.md20### Step 2: Find memoriesCOMMENT
LOWintegrations/pi-agent-plugin/skills/forget/SKILL.md35### Step 3: ConfirmCOMMENT
LOWintegrations/pi-agent-plugin/skills/forget/SKILL.md43### Step 4: DeleteCOMMENT
LOWintegrations/pi-agent-plugin/skills/forget/SKILL.md47### Step 5: ReportCOMMENT
LOWintegrations/pi-agent-plugin/skills/remember/SKILL.md12### Step 1: Extract the contentCOMMENT
LOWintegrations/pi-agent-plugin/skills/remember/SKILL.md18### Step 2: Classify the memoryCOMMENT
LOWintegrations/pi-agent-plugin/skills/remember/SKILL.md36### Step 3: StoreCOMMENT
LOWintegrations/pi-agent-plugin/skills/remember/SKILL.md44### Step 4: ConfirmCOMMENT
119 more matches not shown…
Hallucination Indicators22 hits · 240 pts
SeverityFileLineSnippetContext
CRITICALtests/vector_stores/test_azure_ai_search.py610 mock_search_client._client._config.user_agent_policy.add_user_agent.assert_called_with("mem0")CODE
CRITICALtests/vector_stores/test_azure_ai_search.py611 mock_index_client._client._config.user_agent_policy.add_user_agent.assert_called_with("mem0")CODE
CRITICALtests/vector_stores/test_azure_ai_search.py5from azure.core.exceptions import HttpResponseErrorCODE
CRITICALtests/vector_stores/test_weaviate.py151 self.client_mock.collections.get.return_value.data.delete_by_id.assert_called_once_with("id1")CODE
CRITICALmem0-ts/src/oss/tests/vector-stores-compat.test.ts1330 const queryCall = axiosModule.__mockHttpClient.post.mock.calls.find(CODE
CRITICALmem0-ts/src/oss/tests/vector-stores-compat.test.ts1393 const queryCall = axiosModule.__mockHttpClient.post.mock.calls.find(CODE
CRITICALmem0-ts/src/oss/tests/vector-stores-compat.test.ts1446 axiosModule.__mockHttpClient.post.mock.calls.some(CODE
CRITICALmem0-ts/src/oss/tests/vector-stores-compat.test.ts1498 const queryCall = axiosModule.__mockHttpClient.post.mock.calls.find(CODE
CRITICALmem0-ts/src/oss/tests/vector-stores-compat.test.ts1508 axiosModule.__mockHttpClient.post.mock.calls.some(CODE
CRITICALmem0-ts/src/oss/tests/vector-stores-compat.test.ts1541 const queryCall = axiosModule.__mockHttpClient.post.mock.calls.find(CODE
CRITICALmem0-ts/src/oss/tests/vector-stores-compat.test.ts1580 const queryCall = axiosModule.__mockHttpClient.post.mock.calls.find(CODE
CRITICALmem0-ts/src/oss/tests/vector-stores-compat.test.ts1620 const queryCall = axiosModule.__mockHttpClient.post.mock.calls.find(CODE
CRITICALmem0-ts/src/oss/tests/vector-stores-compat.test.ts1651 const queryCalls = axiosModule.__mockHttpClient.post.mock.calls.filter(CODE
CRITICALmem0-ts/src/oss/tests/vector-stores-compat.test.ts1676 const queryCall = axiosModule.__mockHttpClient.post.mock.calls.find(CODE
CRITICALmem0-ts/src/oss/tests/vector-stores-compat.test.ts1762 axiosModule.__mockHttpClient.post.mock.calls.find(CODE
CRITICALmem0-ts/src/oss/tests/opensearch.unit.test.ts49 const createCall = client.indices.create.mock.calls.find(CODE
CRITICALmem0/vector_stores/azure_ai_search.py13 from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICALmem0/vector_stores/azure_ai_search.py98 self.search_client._client._config.user_agent_policy.add_user_agent("mem0")CODE
CRITICALmem0/vector_stores/azure_ai_search.py99 self.index_client._client._config.user_agent_policy.add_user_agent("mem0")CODE
CRITICALmem0/vector_stores/azure_ai_search.py424 self.search_client._client._config.user_agent_policy.add_user_agent("mem0")CODE
CRITICALmem0/vector_stores/azure_ai_search.py425 self.index_client._client._config.user_agent_policy.add_user_agent("mem0")CODE
CRITICALmem0/llms/openai_structured.py48 response = self.client.beta.chat.completions.parse(**params)CODE
Self-Referential Comments50 hits · 147 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_client.py16 # Create a mock client instanceCOMMENT
MEDIUMtests/vector_stores/test_azure_ai_search.py60 # Create an instance with dummy parameters.COMMENT
MEDIUMtests/vector_stores/test_elasticsearch.py36 # Create a mock Elasticsearch client with proper attributesCOMMENT
MEDIUMtests/vector_stores/test_supabase.py98 # Create a Mock object to represent the recordCOMMENT
MEDIUMtests/vector_stores/test_mongodb.py18 # Create a proper mock cursorCOMMENT
MEDIUMtests/vector_stores/test_pinecone.py108 # Create a mock Vector objectCOMMENT
MEDIUMtests/vector_stores/test_valkey.py495 # Create a mock result with all fieldsCOMMENT
MEDIUMtests/vector_stores/test_faiss.py362 # Create a legitimate pickle with basic typesCOMMENT
MEDIUMtests/vector_stores/test_faiss.py35 # Create a FAISS instance with a temporary directoryCOMMENT
MEDIUMtests/vector_stores/test_faiss.py396 # Create a malicious pickle that tries to use subprocessCOMMENT
MEDIUMtests/vector_stores/test_faiss.py413 # Create a malicious pickle that tries to use evalCOMMENT
MEDIUMtests/vector_stores/test_faiss.py430 # Create a pickle that tries to load a class from a non-builtins moduleCOMMENT
MEDIUMtests/vector_stores/test_faiss.py604 # Create a malicious pickle file (RCE payload)COMMENT
MEDIUMtests/vector_stores/test_faiss.py644 # Create a legitimate legacy pickle fileCOMMENT
MEDIUMtests/embeddings/test_huggingface_embeddings.py85 # Create a mock for the response object and its attributesCOMMENT
MEDIUMtests/memory/test_storage.py255 # Create a legacy 'history' table missing new columnsCOMMENT
MEDIUMtests/memory/test_main.py470 # Create a memoryCOMMENT
MEDIUMtests/llms/test_langchain.py29 # Create a config with the model instance directlyCOMMENT
MEDIUMtests/llms/test_langchain.py41 # Create a config with the model instanceCOMMENT
MEDIUMserver/init-db.sh4# Create the mem0_app database for user/auth/api-key data.COMMENT
MEDIUMdocs/openapi.json5157 "source": "# To use the Python SDK, install the package:\n# pip install mem0ai\n\nfrom mem0 import MemoryClient\ncCODE
MEDIUMdocs/openapi.json5165 "source": "# Get all webhooks\ncurl --request GET \\\n --url 'https://api.mem0.ai/api/v1/webhooks/your_project_idCODE
MEDIUMdocs/openapi.json5320 "source": "# To use the Python SDK, install the package:\n# pip install mem0ai\n\nfrom mem0 import MemoryClient\ncCODE
MEDIUM…tions/mem0-plugin/tests/test_import_competing_tools.py93 # Create a temporary memory-bank directory with .md filesCOMMENT
MEDIUMexamples/misc/personal_assistant_agno.py21# Define the agentCOMMENT
MEDIUMexamples/misc/healthcare_assistant_google_adk.py74# Create the Healthcare Assistant AgentCOMMENT
MEDIUMexamples/misc/healthcare_assistant_google_adk.py105# Create a sessionSTRING
MEDIUMexamples/misc/healthcare_assistant_google_adk.py108# Create the runnerSTRING
MEDIUMexamples/misc/strands_agent_aws_elasticache_neptune.py138 # Create a simple message format for mem0 vector storageCOMMENT
MEDIUMexamples/misc/strands_agent_aws_elasticache_neptune.py350# Create a container with the chat frame stylingCOMMENT
MEDIUMexamples/multiagents/llamaindex_learning_system.py136 # Create the multi-agent workflowSTRING
MEDIUMmem0/vector_stores/valkey.py111 # Create the index schemaCOMMENT
MEDIUMmem0/vector_stores/valkey.py299 # Create the key for the hashCOMMENT
MEDIUMmem0/vector_stores/valkey.py407 # Create the payloadCOMMENT
MEDIUMmem0/vector_stores/valkey.py431 # Create the resultCOMMENT
MEDIUMmem0/vector_stores/valkey.py571 # Create the payload with error handlingCOMMENT
MEDIUMmem0/vector_stores/redis.py96 # Create a new schema with the specified parametersCOMMENT
MEDIUMmem0/vector_stores/redis.py108 # Create the schemaCOMMENT
MEDIUMmem0/vector_stores/redis.py111 # Create the indexCOMMENT
MEDIUMmem0/vector_stores/azure_ai_search.py427 # Create the collectionCOMMENT
MEDIUMmem0/vector_stores/vertex_ai_vector_search.py512 # This method is included only to satisfy the abstract base classCOMMENT
MEDIUMmem0/vector_stores/vertex_ai_vector_search.py525 # Create the payload with all necessary fieldsCOMMENT
MEDIUMmem0/memory/storage.py65 # Create the new history table with updated schemaCOMMENT
MEDIUMmem0/memory/main.py501 # Create the config object using the same class as the originalCOMMENT
MEDIUMopenmemory/api/app/models.py216 # Create the associationCOMMENT
MEDIUMopenmemory/api/app/mcp_server.py58# Create a router for MCP endpointsCOMMENT
MEDIUMopenmemory/api/app/mcp_server.py479 # Create a simple receive function that returns the bodyCOMMENT
MEDIUMopenmemory/api/app/mcp_server.py483 # Create a simple send function that does nothingCOMMENT
MEDIUMopenmemory/api/app/routers/apps.py30 # Create a subquery for memory countsCOMMENT
MEDIUMopenmemory/api/app/routers/apps.py38 # Create a subquery for access countsCOMMENT
Deep Nesting129 hits · 108 pts
SeverityFileLineSnippetContext
LOWtests/test_telemetry_sampling.py137CODE
LOWtests/test_memory_integration.py6CODE
LOWtests/test_telemetry.py177CODE
LOWtests/test_telemetry.py187CODE
LOWtests/test_telemetry.py207CODE
LOWtests/test_telemetry.py219CODE
LOWtests/test_telemetry.py237CODE
LOWtests/test_telemetry.py285CODE
LOWtests/vector_stores/test_faiss.py527CODE
LOWserver/auth.py193CODE
LOWcli/python/src/mem0_cli/app.py100CODE
LOWcli/python/src/mem0_cli/output.py143CODE
LOWcli/python/src/mem0_cli/commands/init_cmd.py34CODE
LOWcli/python/src/mem0_cli/commands/init_cmd.py125CODE
LOWcli/python/src/mem0_cli/commands/init_cmd.py197CODE
LOWcli/python/src/mem0_cli/commands/init_cmd.py537CODE
LOWcli/python/src/mem0_cli/commands/memory.py534CODE
LOWcli/python/src/mem0_cli/commands/agent_mode_cmd.py143CODE
LOWintegrations/mem0-plugin/scripts/auto_import.py124CODE
LOWintegrations/mem0-plugin/scripts/auto_import.py157CODE
LOWintegrations/mem0-plugin/scripts/parse_mem0_config.py231CODE
LOWintegrations/mem0-plugin/scripts/telemetry.py134CODE
LOWintegrations/mem0-plugin/scripts/session_stats.py109CODE
LOW…rations/mem0-plugin/scripts/capture_session_summary.py73CODE
LOW…rations/mem0-plugin/scripts/capture_session_summary.py102CODE
LOWintegrations/mem0-plugin/scripts/on_pre_compact.py72CODE
LOWintegrations/mem0-plugin/scripts/_identity.py26CODE
LOW…rations/mem0-plugin/scripts/capture_compact_summary.py69CODE
LOW…rations/mem0-plugin/scripts/capture_compact_summary.py138CODE
LOWintegrations/mem0-plugin/scripts/_project.py21CODE
LOWintegrations/mem0-plugin/scripts/auto_capture.py63CODE
LOW…ons/mem0-plugin/skills/mem0/scripts/mem0_doc_search.py160CODE
LOWexamples/misc/voice_assistant_elevenlabs.py159CODE
LOWexamples/misc/voice_assistant_elevenlabs.py205CODE
LOWexamples/misc/personalized_search.py155CODE
LOWexamples/misc/strands_agent_aws_elasticache_neptune.py179CODE
LOWexamples/misc/strands_agent_aws_elasticache_neptune.py225CODE
LOWexamples/misc/strands_agent_aws_elasticache_neptune.py280CODE
LOWmem0/reranker/cohere_reranker.py37CODE
LOWmem0/reranker/huggingface_reranker.py82CODE
LOWmem0/reranker/llm_reranker.py107CODE
LOWmem0/reranker/zero_entropy_reranker.py42CODE
LOWmem0/reranker/sentence_transformer_reranker.py49CODE
LOWmem0/vector_stores/cassandra.py225CODE
LOWmem0/vector_stores/cassandra.py434CODE
LOWmem0/vector_stores/valkey.py288CODE
LOWmem0/vector_stores/valkey.py559CODE
LOWmem0/vector_stores/valkey.py695CODE
LOWmem0/vector_stores/valkey.py766CODE
LOWmem0/vector_stores/milvus.py149CODE
LOWmem0/vector_stores/azure_mysql.py334CODE
LOWmem0/vector_stores/pinecone.py200CODE
LOWmem0/vector_stores/opensearch.py91CODE
LOWmem0/vector_stores/opensearch.py368CODE
LOWmem0/vector_stores/qdrant.py186CODE
LOWmem0/vector_stores/qdrant.py265CODE
LOWmem0/vector_stores/qdrant.py339CODE
LOWmem0/vector_stores/qdrant.py500CODE
LOWmem0/vector_stores/neptune_analytics.py218CODE
LOWmem0/vector_stores/faiss.py377CODE
69 more matches not shown…
Unused Imports94 hits · 92 pts
SeverityFileLineSnippetContext
LOWtests/test_oss_to_platform_migrate.py1CODE
LOWserver/alembic/env.py9CODE
LOWcli/python/tests/conftest.py3CODE
LOWcli/python/tests/test_output.py3CODE
LOWcli/python/tests/test_branding.py3CODE
LOWcli/python/tests/test_platform_backend.py3CODE
LOWcli/python/tests/test_commands.py3CODE
LOWcli/python/tests/test_init_internals.py17CODE
LOWcli/python/tests/test_config.py3CODE
LOWcli/python/tests/test_cli_integration.py8CODE
LOWcli/python/tests/test_agent_mode.py13CODE
LOWcli/python/tests/test_telemetry.py3CODE
LOWcli/python/src/mem0_cli/config.py10CODE
LOWcli/python/src/mem0_cli/telemetry.py10CODE
LOWcli/python/src/mem0_cli/telemetry_sender.py17CODE
LOWcli/python/src/mem0_cli/agent_detect.py15CODE
LOWcli/python/src/mem0_cli/app.py3CODE
LOWcli/python/src/mem0_cli/plugin_sync.py27CODE
LOWcli/python/src/mem0_cli/output.py3CODE
LOWcli/python/src/mem0_cli/state.py3CODE
LOWcli/python/src/mem0_cli/backend/__init__.py3CODE
LOWcli/python/src/mem0_cli/backend/__init__.py3CODE
LOWcli/python/src/mem0_cli/backend/platform.py3CODE
LOWcli/python/src/mem0_cli/backend/base.py3CODE
LOWcli/python/src/mem0_cli/commands/config_cmd.py3CODE
LOWcli/python/src/mem0_cli/commands/init_cmd.py3CODE
LOWcli/python/src/mem0_cli/commands/memory.py3CODE
LOWcli/python/src/mem0_cli/commands/whoami_cmd.py3CODE
LOWcli/python/src/mem0_cli/commands/agent_rush_cmd.py7CODE
LOWcli/python/src/mem0_cli/commands/utils.py3CODE
LOWcli/python/src/mem0_cli/commands/events_cmd.py3CODE
LOWcli/python/src/mem0_cli/commands/identify_cmd.py9CODE
LOWcli/python/src/mem0_cli/commands/entities.py3CODE
LOWcli/python/src/mem0_cli/commands/agent_mode_cmd.py3CODE
LOW…tions/mem0-plugin/tests/test_import_competing_tools.py3CODE
LOWintegrations/mem0-plugin/tests/conftest.py3CODE
LOWintegrations/mem0-plugin/tests/test_auto_capture.py3CODE
LOWintegrations/mem0-plugin/tests/test_search.py3CODE
LOWintegrations/mem0-plugin/tests/test_rubric_dedup.py3CODE
LOWintegrations/mem0-plugin/tests/test_session_stats.py3CODE
LOW…tegrations/mem0-plugin/tests/test_parse_export_file.py3CODE
LOW…tegrations/mem0-plugin/tests/test_coding_categories.py3CODE
LOWintegrations/mem0-plugin/tests/test_write_path.py10CODE
LOW…tegrations/mem0-plugin/tests/test_parse_mem0_config.py3CODE
LOWintegrations/mem0-plugin/tests/test_project.py3CODE
LOWintegrations/mem0-plugin/tests/test_telemetry.py3CODE
LOW…ions/mem0-plugin/tests/test_capture_session_summary.py10CODE
LOW…ations/mem0-plugin/tests/test_auto_setup_categories.py10CODE
LOWintegrations/mem0-plugin/scripts/_formatting.py7CODE
LOWintegrations/mem0-plugin/scripts/install_codex_hooks.py24CODE
LOWintegrations/mem0-plugin/scripts/auto_import.py13CODE
LOWintegrations/mem0-plugin/scripts/load_settings.py6CODE
LOWintegrations/mem0-plugin/scripts/_chunking.py3CODE
LOWintegrations/mem0-plugin/scripts/parse_mem0_config.py19CODE
LOW…egrations/mem0-plugin/scripts/auto_setup_categories.py28CODE
LOWintegrations/mem0-plugin/scripts/_search.py7CODE
LOWintegrations/mem0-plugin/scripts/telemetry.py19CODE
LOWintegrations/mem0-plugin/scripts/session_stats.py14CODE
LOW…rations/mem0-plugin/scripts/capture_session_summary.py14CODE
LOWintegrations/mem0-plugin/scripts/file_context.py16CODE
34 more matches not shown…
Verbosity Indicators49 hits · 86 pts
SeverityFileLineSnippetContext
LOWtests/vector_stores/test_e2e_threshold.py63 # Step 1: Search without threshold (baseline)COMMENT
LOWtests/vector_stores/test_e2e_threshold.py74 # Step 2: Verify all scores are non-negative (similarity, not raw distance)COMMENT
LOWtests/vector_stores/test_e2e_threshold.py79 # Step 3: Simulate threshold filtering as Memory.search() does itCOMMENT
LOWtests/vector_stores/test_e2e_threshold.py99 # Step 4: Very high threshold should return 0 or very few resultsCOMMENT
LOWtests/vector_stores/test_databricks.py636 # Step 1: Config validation (simulates what Memory.from_config does)COMMENT
LOWtests/vector_stores/test_databricks.py654 # Step 2: Factory instantiation (same as MemoryBase.__init__)COMMENT
LOWtests/memory/test_main.py425 # Step 1: Create a memory — capture the payload stored in the vector storeCOMMENT
LOWtests/memory/test_main.py435 # Step 2: Simulate the vector store returning this memory for both search and get_allCOMMENT
LOWtests/memory/test_main.py444 # Step 3: Call search and get_all, compare timestampsCOMMENT
LOWmem0-ts/src/oss/src/memory/index.ts1393 // Step 1: Preprocess queryCOMMENT
LOWmem0-ts/src/oss/src/memory/index.ts1397 // Step 2: Embed queryCOMMENT
LOWmem0-ts/src/oss/src/memory/index.ts1400 // Step 3: Semantic search (over-fetch for scoring pool)COMMENT
LOWmem0-ts/src/oss/src/memory/index.ts1408 // Step 4: Keyword search (if store supports it)COMMENT
LOWmem0-ts/src/oss/src/memory/index.ts1520 // Step 7: Build candidate set from semantic resultsCOMMENT
LOWmem0-ts/src/oss/src/memory/index.ts1529 // Step 8: Score and rankCOMMENT
LOWmem0-ts/src/oss/src/memory/index.ts1539 // Step 9: Format resultsCOMMENT
LOWmem0-ts/src/oss/src/memory/index.ts1427 // Step 5: Compute BM25 scores from keyword resultsCOMMENT
LOWmem0-ts/src/oss/src/memory/index.ts1440 // Step 6: Compute entity boostsCOMMENT
LOWmem0-ts/src/oss/src/memory/index.ts1574 // Step 10: Optionally re-rank with the configured reranker. Opt-in perCOMMENT
LOWmem0-ts/src/oss/src/prompts/index.ts902 // Step 1: Strip known noise tokens from OpenRouter/local modelsCOMMENT
LOWmem0-ts/src/oss/src/prompts/index.ts910 // Step 2: Strip code fences and <think> blocksCOMMENT
LOWmem0-ts/src/oss/src/prompts/index.ts916 // Step 3: Try to find valid JSON object by testing each `{` as potential startCOMMENT
LOWmem0-ts/src/oss/src/prompts/index.ts966 // Step 4: Fallback - try first/last brace (original behavior for edge cases)COMMENT
LOWmem0-ts/src/oss/src/prompts/index.ts980 // Step 5: Try to locate a JSON array by testing each `[` as potential startCOMMENT
LOWcli/python/src/mem0_cli/commands/init_cmd.py163 # Step 2: Get code from userCOMMENT
LOWcli/python/src/mem0_cli/commands/init_cmd.py144 # Step 1: Request verification codeCOMMENT
LOWcli/python/src/mem0_cli/commands/init_cmd.py177 # Step 3: Verify codeCOMMENT
LOWcli/python/src/mem0_cli/commands/agent_mode_cmd.py165 # Step 1: request OTP (unless --code provided)COMMENT
LOWcli/python/src/mem0_cli/commands/agent_mode_cmd.py199 # Step 2: verify + claim in one shotCOMMENT
LOWcli/node/src/commands/agent-mode.ts180 // Step 1: request OTP (unless --code was supplied)COMMENT
LOWcli/node/src/commands/agent-mode.ts222 // Step 2: verify + claim atomicallyCOMMENT
LOWmem0/memory/main.py1591 # Step 1: Preprocess queryCOMMENT
LOWmem0/memory/main.py1595 # Step 2: Embed queryCOMMENT
LOWmem0/memory/main.py1598 # Step 3: Semantic search (over-fetch for scoring pool)COMMENT
LOWmem0/memory/main.py1604 # Step 4: Keyword search (if store supports it)COMMENT
LOWmem0/memory/main.py1609 # Step 5: Compute BM25 scores from keyword resultsCOMMENT
LOWmem0/memory/main.py1619 # Step 6: Compute entity boostsCOMMENT
LOWmem0/memory/main.py1624 # Step 7: Build candidate set from semantic resultsCOMMENT
LOWmem0/memory/main.py1637 # Step 8: Score and rankCOMMENT
LOWmem0/memory/main.py1647 # Step 9: Format resultsCOMMENT
LOWmem0/memory/main.py3231 # Step 1: Preprocess query (CPU-bound)COMMENT
LOWmem0/memory/main.py3235 # Step 2: Embed queryCOMMENT
LOWmem0/memory/main.py3238 # Step 3: Semantic search (over-fetch)COMMENT
LOWmem0/memory/main.py3244 # Step 4: Keyword search (if store supports it)COMMENT
LOWmem0/memory/main.py3249 # Step 5: Compute BM25 scoresCOMMENT
LOWmem0/memory/main.py3259 # Step 6: Compute entity boostsCOMMENT
LOWmem0/memory/main.py3264 # Step 7: Build candidate set from semantic resultsCOMMENT
LOWmem0/memory/main.py3277 # Step 8: Score and rankCOMMENT
LOWmem0/memory/main.py3287 # Step 9: Format resultsCOMMENT
Redundant / Tautological Comments49 hits · 76 pts
SeverityFileLineSnippetContext
LOWserver/scripts/seed.sh15# Check if setup is neededCOMMENT
LOW…tions/mem0-plugin/scripts/enforce_metadata_defaults.sh99 # Check if filters already contain user_id/app_idCOMMENT
LOWintegrations/mem0-plugin/scripts/ensure_deps.sh45 # Check if the other process's install failedCOMMENT
LOWexamples/nemoclaw/install-mem0-plugin.sh175# Check if plugin is already installedCOMMENT
LOWexamples/nemoclaw/install-mem0-plugin.sh255# Check if mem0_api already existsCOMMENT
LOWexamples/nemoclaw/setup-mem0-nemoclaw.sh528# Check if a sandbox already existsCOMMENT
LOWexamples/nemoclaw/setup-mem0-nemoclaw.sh431 # Check if NemoClaw is installed in the containerCOMMENT
LOWexamples/nemoclaw/setup-mem0-nemoclaw.sh618# Check if plugin is already installed by trying to download a known file from the sandbox.COMMENT
LOWexamples/nemoclaw/setup-mem0-nemoclaw.sh700# Check if mem0_api already existsCOMMENT
LOWmem0/vector_stores/valkey.py207 # Check if the search module is availableCOMMENT
LOWmem0/vector_stores/valkey.py221 # Check if the index already existsCOMMENT
LOWmem0/vector_stores/opensearch.py117 # Check if index is ready by attempting a simple searchCOMMENT
LOWmem0/vector_stores/databricks.py241 # Check if index exists and create if neededCOMMENT
LOWmem0/vector_stores/langchain.py49 # Check if input is a list of Document objectsCOMMENT
LOWmem0/vector_stores/langchain.py95 # Check if client has add_embeddings methodCOMMENT
LOWmem0/vector_stores/baidu.py97 # Check if database existsCOMMENT
LOWmem0/vector_stores/baidu.py118 # Check if table already existsCOMMENT
LOWmem0/embeddings/aws_bedrock.py32 # Check if AWS config is provided in the configCOMMENT
LOWmem0/memory/main.py714 # Check if agent_id is present in metadataCOMMENT
LOWmem0/memory/main.py717 # Check if there are assistant role messagesCOMMENT
LOWmem0/memory/main.py2365 # Check if agent_id is present in metadataCOMMENT
LOWmem0/memory/main.py2368 # Check if there are assistant role messagesCOMMENT
LOWmem0/proxy/main.py182 # Check if self.mem0_client is an instance of Memory or MemoryClientCOMMENT
LOWmem0/configs/vector_stores/elasticsearch.py28 # Check if either cloud_id or host/port is providedCOMMENT
LOWmem0/configs/vector_stores/elasticsearch.py32 # Check if authentication is providedCOMMENT
LOWmem0/configs/vector_stores/elasticsearch.py44 # Check if headers is a dictionaryCOMMENT
LOWmem0/configs/vector_stores/elasticsearch.py48 # Check if all keys and values are stringsCOMMENT
LOWmem0/configs/vector_stores/opensearch.py31 # Check if host is providedCOMMENT
LOWmem0/configs/vector_stores/chroma.py27 # Check if cloud configuration is providedCOMMENT
LOWmem0/configs/vector_stores/chroma.py35 # Check if local/server configuration is providedCOMMENT
LOWmem0/configs/llms/aws_bedrock.py124 # Check if model follows provider.model-name formatCOMMENT
LOWmem0/llms/aws_bedrock.py111 # Check if our model is availableCOMMENT
LOWmem0/llms/base.py39 # Check if API key is available via environment variableCOMMENT
LOWopenmemory/run.sh18# Check if Docker is installedCOMMENT
LOWopenmemory/run.sh24# Check if docker compose is availableCOMMENT
LOWopenmemory/run.sh30# Check if the container "mem0_ui" already exists and remove it if necessaryCOMMENT
LOWopenmemory/run.sh85 # Check if the compose file existsCOMMENT
LOWopenmemory/api/main.py30 # Check if user existsCOMMENT
LOWopenmemory/api/main.py53 # Check if app already existsCOMMENT
LOWopenmemory/api/app/models.py207 # Check if the memory-category association already existsCOMMENT
LOWopenmemory/api/app/mcp_server.py85 # Check if app is activeCOMMENT
LOWopenmemory/api/app/routers/memories.py238 # Check if app is activeCOMMENT
LOWopenmemory/api/app/routers/memories.py281 # Check if memory already existsCOMMENT
LOWopenmemory/api/app/utils/memory.py61 # Check if we're running inside DockerCOMMENT
LOWopenmemory/api/app/utils/memory.py478 # Check if config has changed by comparing hashesCOMMENT
LOWopenmemory/api/app/utils/permissions.py27 # Check if memory is activeCOMMENT
LOWopenmemory/api/app/utils/permissions.py35 # Check if app exists and is activeCOMMENT
LOWopenmemory/api/app/utils/permissions.py40 # Check if app is paused/inactiveCOMMENT
LOWopenmemory/api/app/utils/permissions.py52 # Check if memory is in the accessible setCOMMENT
Fake / Example Data73 hits · 72 pts
SeverityFileLineSnippetContext
LOWtests/test_telemetry_aliasing.py142 setup_module.mark_aliased("oss-uuid", "user@example.com")CODE
LOWtests/test_telemetry_aliasing.py147 assert setup_module.is_aliased("oss-uuid", "user@example.com")CODE
LOWtests/test_telemetry_aliasing.py153 setup_module.mark_aliased("oss-uuid", "user@example.com")CODE
LOWtests/test_telemetry_aliasing.py161 setup_module.mark_aliased("oss-uuid", "user@example.com")CODE
LOWtests/test_telemetry_aliasing.py162 assert setup_module.is_aliased("oss-uuid", "user@example.com")CODE
LOWtests/test_telemetry_aliasing.py163 assert not setup_module.is_aliased("new-uuid", "user@example.com")CODE
LOWtests/test_telemetry_aliasing.py177 at.capture_identify("anon-123", "user@example.com")CODE
LOWtests/test_telemetry_aliasing.py181 assert kwargs["distinct_id"] == "user@example.com"CODE
LOWtests/test_telemetry_aliasing.py191 at.capture_identify("user@example.com", "user@example.com")CODE
LOWtests/test_telemetry_aliasing.py200 at.capture_identify("", "user@example.com")CODE
LOWtests/test_telemetry_aliasing.py209 at.capture_identify("anon-123", "user@example.com") # must not raiseCODE
LOWtests/test_telemetry_aliasing.py219 at.capture_identify("anon-123", "user@example.com") # must not raiseCODE
LOWtests/test_telemetry_aliasing.py250 client_main._maybe_alias_anon_to_email("user@example.com")CODE
LOWtests/test_telemetry_aliasing.py251 telemetry.capture_identify.assert_called_once_with("oss-uuid", "user@example.com")CODE
LOWtests/test_telemetry_aliasing.py252 mark.assert_called_once_with("oss-uuid", "user@example.com")CODE
LOWtests/test_telemetry_aliasing.py268 client_main._maybe_alias_anon_to_email("user@example.com")CODE
LOWtests/test_telemetry_aliasing.py269 telemetry.capture_identify.assert_called_once_with("cli-anon-xyz", "user@example.com")CODE
LOWtests/test_telemetry_aliasing.py285 client_main._maybe_alias_anon_to_email("user@example.com")CODE
LOWtests/test_telemetry_aliasing.py288 assert ("oss-uuid", "user@example.com") in callsCODE
LOWtests/test_telemetry_aliasing.py289 assert ("cli-anon", "user@example.com") in callsCODE
LOWtests/test_telemetry_aliasing.py304 client_main._maybe_alias_anon_to_email("user@example.com")CODE
LOWtests/test_telemetry_aliasing.py349 client_main._maybe_alias_anon_to_email("user@example.com") # must not raiseCODE
LOWtests/test_telemetry_aliasing.py360 return_value={"oss": "user@example.com", "cli": None, "aliased_pairs": []},CODE
LOWtests/test_telemetry_aliasing.py366 client_main._maybe_alias_anon_to_email("user@example.com")CODE
LOWtests/test_telemetry_aliasing.py377 client_main._maybe_alias_anon_to_email("user@example.com") # must not raiseCODE
LOWtests/test_telemetry_aliasing.py329 client_main._maybe_alias_anon_to_email("user@example.com")CODE
LOWtests/test_telemetry_aliasing.py402 client_main._maybe_alias_anon_to_email("user@example.com")CODE
LOWtests/test_telemetry_aliasing.py407 client_main._maybe_alias_anon_to_email("user@example.com")CODE
LOWtests/test_server_params.py39 with patch.dict(os.environ, {"OPENAI_API_KEY": "fake-key", "ADMIN_API_KEY": ""}):CODE
LOWtests/test_client_feedback.py10 client.user_email = "user@example.com"CODE
LOWtests/test_client_feedback.py39 client.user_email = "user@example.com"CODE
LOWtests/test_api_keys_router.py55 fake_user = User(id=uuid.uuid4(), name="t", email="t@e.com", password_hash="x", role="admin")CODE
LOWtests/test_api_keys_router.py56 app.dependency_overrides[require_auth] = lambda: fake_userCODE
LOWtests/test_client.py19 json=lambda: {"org_id": "org1", "project_id": "proj1", "user_email": "test@test.com"},CODE
LOWtests/test_server_auth.py44 with patch.dict(os.environ, {"OPENAI_API_KEY": "fake-key"}):CODE
LOWtests/vector_stores/test_mongodb.py42 mock_collection.insert_one.assert_called_once_with({"_id": 0, "placeholder": True})CODE
LOWmem0-ts/src/oss/tests/vector-stores-compat.test.ts574 supabaseKey: "fake-key",CODE
LOWmem0-ts/src/oss/tests/vector-stores-compat.test.ts593 supabaseKey: "fake-key",CODE
LOWmem0-ts/src/oss/tests/vector-stores-compat.test.ts630 supabaseKey: "fake-key",CODE
LOWmem0-ts/src/oss/tests/vector-stores-compat.test.ts691 apiKey: "fake-key",CODE
LOWmem0-ts/src/oss/tests/vector-stores-compat.test.ts710 apiKey: "fake-key",CODE
LOWmem0-ts/src/oss/tests/vector-stores-compat.test.ts4482 apiToken: "fake-token",CODE
LOWmem0-ts/src/oss/tests/vector-stores-compat.test.ts4499 apiKey: "fake-token",CODE
LOWmem0-ts/src/oss/tests/vector-stores-compat.test.ts4518 apiKey: "fake-token",CODE
LOWmem0-ts/src/client/tests/telemetry-aliasing.test.ts107 await markMem0Aliased("oss-uuid", "user@example.com");CODE
LOWmem0-ts/src/client/tests/telemetry-aliasing.test.ts114 expect(await isMem0Aliased("oss-uuid", "user@example.com")).toBe(true);CODE
LOWmem0-ts/src/client/tests/telemetry-aliasing.test.ts122 await markMem0Aliased("oss-uuid", "user@example.com");CODE
LOWmem0-ts/src/client/tests/telemetry-aliasing.test.ts134 await markMem0Aliased("oss-uuid", "user@example.com");CODE
LOWmem0-ts/src/client/tests/telemetry-aliasing.test.ts135 expect(await isMem0Aliased("oss-uuid", "user@example.com")).toBe(true);CODE
LOWmem0-ts/src/client/tests/telemetry-aliasing.test.ts136 expect(await isMem0Aliased("other-uuid", "user@example.com")).toBe(false);CODE
LOWmem0-ts/src/client/tests/telemetry-aliasing.test.ts145 markMem0Aliased("oss-uuid", "user@example.com"),CODE
LOWmem0-ts/src/client/tests/telemetry-aliasing.test.ts161 await telemetry.captureIdentify("anon-uuid", "user@example.com");CODE
LOWmem0-ts/src/client/tests/telemetry-aliasing.test.ts167 expect(payload.distinct_id).toBe("user@example.com");CODE
LOWmem0-ts/src/client/tests/telemetry-aliasing.test.ts175 await telemetry.captureIdentify("user@example.com", "user@example.com");CODE
LOWmem0-ts/src/client/tests/telemetry-aliasing.test.ts182 await telemetry.captureIdentify("", "user@example.com");CODE
LOWcli/python/tests/test_cli_integration.py175 ["delete", "--api-key", "m0-fake-key"],CODE
LOWintegrations/openclaw/openclaw.plugin.json81 "placeholder": "m0-...",CODE
LOWintegrations/openclaw/openclaw.plugin.json86 "placeholder": "default",CODE
LOWintegrations/openclaw/openclaw.plugin.json99 "placeholder": "Only store user preferences and important facts...",CODE
LOWintegrations/openclaw/openclaw.plugin.json114 "placeholder": "0.3",CODE
13 more matches not shown…
Modern Structural Boilerplate54 hits · 52 pts
SeverityFileLineSnippetContext
LOWtests/vector_stores/test_neptune_analytics.py22logger = logging.getLogger(__name__)CODE
LOWserver/server_state.py15def set_session_factory(factory: Callable) -> None:CODE
LOWcli/python/src/mem0_cli/state.py14def set_agent_mode(val: bool) -> None:CODE
LOWcli/python/src/mem0_cli/state.py23def set_current_command(name: str) -> None:CODE
LOWcli/python/src/mem0_cli/backend/__init__.py5__all__ = ["Backend", "get_backend"]CODE
LOWcli/python/src/mem0_cli/commands/init_cmd.py505def _setup_platform(config: Mem0Config) -> None:CODE
LOWcli/python/src/mem0_cli/commands/init_cmd.py523def _setup_defaults(config: Mem0Config) -> None:CODE
LOWexamples/misc/personalized_search.py21logger = logging.getLogger(__name__)CODE
LOWexamples/misc/multillm_memory.py28logger = logging.getLogger(__name__)CODE
LOWexamples/multiagents/llamaindex_learning_system.py32logger = logging.getLogger(__name__)CODE
LOWmem0/reranker/cohere_reranker.py13logger = logging.getLogger(__name__)CODE
LOWmem0/reranker/__init__.py12__all__ = [CODE
LOWmem0/reranker/huggingface_reranker.py16logger = logging.getLogger(__name__)CODE
LOWmem0/reranker/llm_reranker.py10logger = logging.getLogger(__name__)CODE
LOWmem0/reranker/zero_entropy_reranker.py13logger = logging.getLogger(__name__)CODE
LOWmem0/reranker/sentence_transformer_reranker.py15logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/cassandra.py21logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/valkey.py15logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/elasticsearch.py16logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/s3_vectors.py15logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/milvus.py24logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/azure_mysql.py27logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/pinecone.py16logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/opensearch.py16logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/supabase.py15logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/turbopuffer.py16logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/qdrant.py26logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/upstash_vector.py14logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/mongodb.py17logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/neptune_analytics.py16logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/faiss.py31logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/pgvector.py34logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/redis.py17logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/weaviate.py22logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/azure_ai_search.py34logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/databricks.py30logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/langchain.py15logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/baidu.py41logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/chroma.py14logger = logging.getLogger(__name__)CODE
LOWmem0/vector_stores/vertex_ai_vector_search.py26logger = logging.getLogger(__name__)CODE
LOWmem0/memory/notices.py883def _update_first_run_variant(variant) -> None:CODE
LOWmem0/memory/utils.py12logger = logging.getLogger(__name__)CODE
LOWmem0/memory/storage.py8logger = logging.getLogger(__name__)CODE
LOWmem0/memory/main.py82logger = logging.getLogger(__name__)CODE
LOWmem0/memory/main.py416logger = logging.getLogger(__name__)CODE
LOWmem0/proxy/main.py25logger = logging.getLogger(__name__)CODE
LOWmem0/utils/spacy_models.py12logger = logging.getLogger(__name__)CODE
LOWmem0/utils/lemmatization.py19logger = logging.getLogger(__name__)CODE
LOWmem0/llms/aws_bedrock.py17logger = logging.getLogger(__name__)CODE
LOWmem0/llms/groq.py15logger = logging.getLogger(__name__)CODE
LOWmem0/client/utils.py13logger = logging.getLogger(__name__)CODE
LOWmem0/client/main.py26logger = logging.getLogger(__name__)CODE
LOWmem0/client/project.py13logger = logging.getLogger(__name__)CODE
LOWopenmemory/api/app/routers/__init__.py7__all__ = ["memories_router", "apps_router", "stats_router", "config_router", "backup_router"]CODE
AI Structural Patterns43 hits · 37 pts
SeverityFileLineSnippetContext
LOWcli/python/src/mem0_cli/app.py255CODE
LOWcli/python/src/mem0_cli/app.py323CODE
LOWcli/python/src/mem0_cli/app.py441CODE
LOWcli/python/src/mem0_cli/app.py547CODE
LOWcli/python/src/mem0_cli/app.py730CODE
LOWcli/python/src/mem0_cli/app.py850CODE
LOWcli/python/src/mem0_cli/backend/platform.py77CODE
LOWcli/python/src/mem0_cli/backend/platform.py162CODE
LOWcli/python/src/mem0_cli/backend/platform.py210CODE
LOWcli/python/src/mem0_cli/backend/base.py15CODE
LOWcli/python/src/mem0_cli/backend/base.py32CODE
LOWcli/python/src/mem0_cli/backend/base.py52CODE
LOWcli/python/src/mem0_cli/commands/init_cmd.py197CODE
LOWintegrations/mem0-plugin/scripts/auto_capture.py107CODE
LOWexamples/misc/strands_agent_aws_elasticache_neptune.py112CODE
LOWmem0/vector_stores/cassandra.py42CODE
LOWmem0/vector_stores/milvus.py235CODE
LOWmem0/vector_stores/milvus.py325CODE
LOWmem0/vector_stores/qdrant.py30CODE
LOWmem0/vector_stores/qdrant.py592CODE
LOWmem0/vector_stores/mongodb.py224CODE
LOWmem0/vector_stores/databricks.py52CODE
LOWmem0/memory/utils.py173CODE
LOWmem0/memory/main.py723CODE
LOWmem0/memory/main.py1972CODE
LOWmem0/memory/main.py2374CODE
LOWmem0/memory/main.py3638CODE
LOWmem0/proxy/main.py52CODE
LOWmem0/configs/prompts.py1016CODE
LOWmem0/configs/embeddings/base.py14CODE
LOWmem0/configs/llms/vllm.py12CODE
LOWmem0/configs/llms/minimax.py12CODE
LOWmem0/configs/llms/lmstudio.py12CODE
LOWmem0/configs/llms/azure.py13CODE
LOWmem0/configs/llms/gemini.py14CODE
LOWmem0/configs/llms/aws_bedrock.py14CODE
LOWmem0/configs/llms/openai.py12CODE
LOWmem0/configs/llms/deepseek.py12CODE
LOWmem0/configs/llms/anthropic.py12CODE
LOWmem0/configs/llms/xai.py12CODE
LOWmem0/configs/llms/ollama.py12CODE
LOWmem0/configs/llms/base.py16CODE
LOWopenmemory/api/app/routers/memories.py102CODE
Modern AI Meta-Vocabulary14 hits · 31 pts
SeverityFileLineSnippetContext
MEDIUM…ations/mem0-plugin/tests/test_auto_setup_categories.py24# Fake client (dependency injection — apply_categories takes a client) #COMMENT
MEDIUM…ations/mem0-plugin/skills/mem0/references/use-cases.md11- [Multi-Agent / Multi-Tenant](#5-multi-agent--multi-tenant)CODE
MEDIUMexamples/misc/movie_recommendation_grok3.py31 "model": "all-MiniLM-L6-v2" # open embedding modelCODE
MEDIUMexamples/misc/strands_agent_aws_elasticache_neptune.py15- AWS Blog: https://aws.amazon.com/blogs/database/build-persistent-memory-for-agentic-ai-applications-with-mem0-open-souSTRING
MEDIUMexamples/misc/strands_agent_aws_elasticache_neptune.py16- Mem0 Blog: https://mem0.ai/blog/build-persistent-memory-for-agentic-ai-applications-with-mem0-open-source-amazon-elastSTRING
MEDIUMexamples/multiagents/llamaindex_learning_system.py136 # Create the multi-agent workflowSTRING
MEDIUMexamples/multiagents/llamaindex_learning_system.py158 # The magic happens here - multi-agent memory is automatically shared!STRING
MEDIUMexamples/multiagents/llamaindex_learning_system.py190 # Second session - multi-agent memory will remember the firstCOMMENT
MEDIUMexamples/multiagents/llamaindex_learning_system.py195 # Show what the multi-agent system remembersCOMMENT
MEDIUM.github/workflows/docs-llms-txt-check.yml7# python scripts/check-llms-txt-coverage.py --write # scaffold placeholdersCOMMENT
MEDIUMmem0/vector_stores/databricks.py421 # so we inline using _format_sql_value (values are floats from the embedding model).COMMENT
MEDIUMmem0/memory/main.py891 # Map UUIDs to integers (anti-hallucination)COMMENT
MEDIUMmem0/memory/main.py2529 # Map UUIDs to integers (anti-hallucination)COMMENT
MEDIUMskills/mem0/references/use-cases.md11- [Multi-Agent / Multi-Tenant](#5-multi-agent--multi-tenant)CODE
Over-Commented Block23 hits · 22 pts
SeverityFileLineSnippetContext
LOWmem0-ts/src/global.d.ts1// Injected by tsup/esbuild's `define` at build time from package.json.COMMENT
LOW…tions/mem0-plugin/scripts/enforce_metadata_defaults.sh1#!/usr/bin/env bashCOMMENT
LOWintegrations/mem0-plugin/scripts/on_stop.sh1#!/usr/bin/env bashCOMMENT
LOWintegrations/mem0-plugin/scripts/_identity.sh1# Source this file. Sets MEM0_API_KEY, MEM0_RESOLVED_USER_ID, and settings.COMMENT
LOWintegrations/mem0-plugin/scripts/on_file_read.sh1#!/usr/bin/env bashCOMMENT
LOWintegrations/mem0-plugin/scripts/on_bash_output.sh1#!/usr/bin/env bashCOMMENT
LOWintegrations/mem0-plugin/scripts/block_memory_write.sh1#!/usr/bin/env bashCOMMENT
LOWintegrations/mem0-plugin/scripts/_project.sh1# Source this file. Sets MEM0_PROJECT_ID and MEM0_BRANCH.COMMENT
LOWintegrations/mem0-plugin/scripts/parse_export_file.py41 """COMMENT
LOWintegrations/mem0-plugin/scripts/on_user_prompt.sh1#!/usr/bin/env bashCOMMENT
LOWexamples/mem0-demo/next-env.d.ts1/// <reference types="next" />COMMENT
LOWexamples/nemoclaw/install-mem0-plugin.sh1#!/usr/bin/env bashCOMMENT
LOWexamples/nemoclaw/setup-mem0-nemoclaw.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/llms-txt-ignore.txt1# Page path prefixes (relative to docs/, without .mdx) that intentionallyCOMMENT
LOW.github/workflows/release.yml1name: Release Router 🚦COMMENT
LOW.github/workflows/ci-gate.yml1name: CI GateCOMMENT
LOWopenmemory/ui/next-env.d.ts1/// <reference types="next" />COMMENT
LOWopenmemory/backup-scripts/export_openmemory.sh1#!/usr/bin/env bashCOMMENT
LOWopenmemory/api/alembic.ini1# A generic, single database configuration.COMMENT
LOWopenmemory/api/alembic.ini21# installed by adding `alembic[tz]` to the pip requirementsCOMMENT
LOWopenmemory/api/alembic.ini41COMMENT
LOWopenmemory/api/alembic.ini61sqlalchemy.url = sqlite:///./openmemory.dbCOMMENT
LOWopenmemory/api/app/__init__.py1# This file makes the app directory a Python packageCOMMENT
Example Usage Blocks5 hits · 8 pts
SeverityFileLineSnippetContext
LOWexamples/misc/test.py83# Example usageCOMMENT
LOWexamples/misc/study_buddy.py63# Example usageCOMMENT
LOWexamples/nemoclaw/install-mem0-plugin.sh8# Usage:COMMENT
LOWexamples/nemoclaw/setup-mem0-nemoclaw.sh8# Usage:COMMENT
LOWopenmemory/backup-scripts/export_openmemory.sh11# Usage:COMMENT
Slop Phrases2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMmem0-ts/src/oss/tests/extract-json.test.ts37 '{"facts": ["Loves pizza"]}\nLet me know if you need anything else!';CODE
LOWopenmemory/api/app/database.py7# load .env file (make sure you have DATABASE_URL set)COMMENT
AI Slop Vocabulary2 hits · 3 pts
SeverityFileLineSnippetContext
LOWmem0/vector_stores/valkey.py353 # No filters, just use the KNN searchCOMMENT
LOWmem0/memory/setup.py142 # If no vector store provided, just return the user_idCOMMENT
Cross-Language Confusion1 hit · 2 pts
SeverityFileLineSnippetContext
HIGHcli/python/src/mem0_cli/commands/agent_mode_cmd.py35 A backend regression that returns ``{"api_key": null}`` would otherwise beSTRING