MCPcopy Create free account

hub / github.com/24kchengYe/MemoMind / functions

Functions1,372 in github.com/24kchengYe/MemoMind

↓ 2 callersFunction_convert_causal_relations
Convert causal relations from LLM format to ExtractedFact format. Adjusts target_fact_index from content-relative to global indices.
patches/fact_extraction.py:2041
↓ 2 callersFunction_convert_causal_relations
Convert causal relations from LLM format to ExtractedFact format. Adjusts target_fact_index from content-relative to global indices.
engine/hindsight_api/engine/retain/fact_extraction.py:2035
↓ 2 callersMethod_convert_seeds
Convert RetrievalResult seeds to SeedNode format.
engine/hindsight_api/engine/search/mpfp_retrieval.py:644
↓ 2 callersMethod_create_entity
Create a new entity or get existing one if it already exists. Uses INSERT ... ON CONFLICT to handle race conditions where tw
engine/hindsight_api/engine/entity_resolver.py:635
↓ 2 callersFunction_detect_text_search_extension
()
engine/hindsight_api/alembic/versions/a2b3c4d5e6f7_add_text_signals_column.py:32
↓ 2 callersFunction_detect_vector_extension
Validate vector extension: 'pgvector', 'vchord', or 'pgvectorscale'. Args: conn: SQLAlchemy connection object vector_extensi
engine/hindsight_api/migrations.py:45
↓ 2 callersFunction_fact_to_result
(fact: "MemoryFact")
engine/hindsight_api/api/http.py:2353
↓ 2 callersMethod_get_header
Extract a header value from ASGI scope.
engine/hindsight_api/api/mcp.py:280
↓ 2 callersFunction_get_schema_prefix
Get schema prefix for table names (required for multi-tenant support).
engine/hindsight_api/alembic/versions/x9s0t1u2v3w4_add_bank_config_column.py:29
↓ 2 callersFunction_get_schema_prefix
Get schema prefix for table names (required for multi-tenant support).
engine/hindsight_api/alembic/versions/y0t1u2v3w4x5_add_result_metadata_gin_index.py:26
↓ 2 callersFunction_get_schema_prefix
Get schema prefix for table names (required for multi-tenant support).
engine/hindsight_api/alembic/versions/h3c4d5e6f7g8_mental_models_v4.py:27
↓ 2 callersFunction_get_schema_prefix
()
engine/hindsight_api/alembic/versions/a2b3c4d5e6f8_add_gin_index_source_memory_ids.py:33
↓ 2 callersFunction_get_schema_prefix
Get schema prefix for table names (e.g., 'tenant_x.' or '' for public).
engine/hindsight_api/alembic/versions/d9f6a3b4c5e2_rename_bank_to_interactions.py:18
↓ 2 callersFunction_get_schema_prefix
Get schema prefix for table names (required for multi-tenant support).
engine/hindsight_api/alembic/versions/m8h9i0j1k2l3_mental_model_id_to_text.py:22
↓ 2 callersFunction_get_schema_prefix
()
engine/hindsight_api/alembic/versions/c3d4e5f6g7h8_add_history_to_mental_models.py:18
↓ 2 callersFunction_get_schema_prefix
Get schema prefix for table names (required for multi-tenant support).
engine/hindsight_api/alembic/versions/z1u2v3w4x5y6_add_observation_tags_to_memory_units.py:22
↓ 2 callersFunction_get_schema_prefix
Get schema prefix for table names (e.g., 'tenant_x.' or '' for public).
engine/hindsight_api/alembic/versions/f1a2b3c4d5e6_add_memory_links_composite_index.py:22
↓ 2 callersFunction_get_schema_prefix
()
engine/hindsight_api/alembic/versions/d5e6f7a8b9c0_add_bank_internal_id_and_per_bank_hnsw.py:45
↓ 2 callersFunction_get_schema_prefix
()
engine/hindsight_api/alembic/versions/d4e5f6g7h8i9_gin_source_memory_ids_fastupdate_off.py:27
↓ 2 callersFunction_get_schema_prefix
()
engine/hindsight_api/alembic/versions/a2b3c4d5e6f7_add_text_signals_column.py:27
↓ 2 callersFunction_get_schema_prefix
Get schema prefix for table names (required for multi-tenant support).
engine/hindsight_api/alembic/versions/l7g8h9i0j1k2_add_worker_columns.py:27
↓ 2 callersFunction_get_schema_prefix
Get schema prefix for table names (required for multi-tenant support).
engine/hindsight_api/alembic/versions/n9i0j1k2l3m4_learnings_and_pinned_reflections.py:26
↓ 2 callersFunction_get_schema_prefix
()
engine/hindsight_api/alembic/versions/e5f6g7h8i9j0_cascade_delete_ops_on_bank_delete.py:22
↓ 2 callersFunction_get_schema_prefix
Get schema prefix for table names (required for multi-tenant support).
engine/hindsight_api/alembic/versions/r3m4n5o6p7q8_add_reflect_response_to_reflections.py:23
↓ 2 callersFunction_get_schema_prefix
Get schema prefix for table names (required for multi-tenant support).
engine/hindsight_api/alembic/versions/s4n5o6p7q8r9_add_consolidated_at_to_memory_units.py:22
↓ 2 callersFunction_get_schema_prefix
Get schema prefix for table names (required for multi-tenant support).
engine/hindsight_api/alembic/versions/aa2b3c4d5e6f_nullable_event_date.py:21
↓ 2 callersFunction_get_schema_prefix
()
engine/hindsight_api/alembic/versions/f7g8h9i0j1k2_add_webhook_http_config.py:21
↓ 2 callersFunction_get_schema_prefix
Get schema prefix for table names (required for multi-tenant support).
engine/hindsight_api/alembic/versions/w8r9s0t1u2v3_fix_mental_models_pk_isolation.py:24
↓ 2 callersFunction_get_schema_prefix
()
engine/hindsight_api/alembic/versions/e4f5a6b7c8d9_add_webhooks_tables.py:21
↓ 2 callersFunction_get_schema_prefix
Get schema prefix for table names (required for multi-tenant support).
engine/hindsight_api/alembic/versions/t5o6p7q8r9s0_rename_mental_models_to_observations.py:26
↓ 2 callersFunction_get_schema_prefix
Get schema prefix for table names (required for multi-tenant support).
engine/hindsight_api/alembic/versions/j5e6f7g8h9i0_mental_model_versions.py:25
↓ 2 callersFunction_get_schema_prefix
Get schema prefix for table names (e.g., 'tenant_x.' or '' for public).
engine/hindsight_api/alembic/versions/g2a3b4c5d6e7_add_tags_column.py:22
↓ 2 callersFunction_get_schema_prefix
Get schema prefix for table names (required for multi-tenant support).
engine/hindsight_api/alembic/versions/a1b2c3d4e5f6_add_file_storage_table.py:24
↓ 2 callersFunction_get_schema_prefix
Get schema prefix for table names (required for multi-tenant support).
engine/hindsight_api/alembic/versions/p1k2l3m4n5o6_new_knowledge_architecture.py:31
↓ 2 callersFunction_get_schema_prefix
()
engine/hindsight_api/alembic/versions/d2e3f4a5b6c7_add_memory_links_expansion_indexes.py:43
↓ 2 callersFunction_get_schema_prefix
()
engine/hindsight_api/alembic/versions/c1a2b3d4e5f6_enable_pg_trgm_and_entities_trgm_index.py:22
↓ 2 callersFunction_get_schema_prefix
Get schema prefix for table names (required for multi-tenant support).
engine/hindsight_api/alembic/versions/o0j1k2l3m4n5_migrate_mental_models_data.py:26
↓ 2 callersFunction_get_schema_prefix
Get schema prefix for table names (required for multi-tenant support).
engine/hindsight_api/alembic/versions/q2l3m4n5o6p7_fix_mental_model_fact_type.py:22
↓ 2 callersFunction_get_schema_prefix
Get schema prefix for table names (required for multi-tenant support).
engine/hindsight_api/alembic/versions/v7q8r9s0t1u2_add_max_tokens_to_mental_models.py:22
↓ 2 callersFunction_get_schema_prefix
Get schema prefix for table names (required for multi-tenant support).
engine/hindsight_api/alembic/versions/u6p7q8r9s0t1_mental_models_text_id.py:21
↓ 2 callersFunction_get_schema_prefix
Get schema prefix for table names (e.g., 'tenant_x.' or '' for public).
engine/hindsight_api/alembic/versions/e0a1b2c3d4e5_disposition_to_3_traits.py:24
↓ 2 callersFunction_get_schema_prefix
Get schema prefix for table names (required for multi-tenant support).
engine/hindsight_api/alembic/versions/k6f7g8h9i0j1_add_directive_subtype.py:22
↓ 2 callersFunction_get_schema_prefix
()
engine/hindsight_api/alembic/versions/b3c4d5e6f7g8_add_temporal_date_indexes.py:31
↓ 2 callersFunction_get_target_schema
Get the target schema name (tenant schema or 'public').
engine/hindsight_api/alembic/versions/rename_personality_to_disposition.py:22
↓ 2 callersFunction_get_target_schema
Get the target schema name (tenant schema or 'public').
engine/hindsight_api/alembic/versions/e0a1b2c3d4e5_disposition_to_3_traits.py:30
↓ 2 callersFunction_hnsw_index_name
Deterministic, schema-safe HNSW index name for a (bank, fact_type) pair. Uses the first 16 hex chars of internal_id (8 bytes of entropy) — unique
engine/hindsight_api/engine/retain/bank_utils.py:27
↓ 2 callersFunction_infer_temporal_date
Infer a temporal date from fact text when LLM didn't provide occurred_start. This is a fallback for when the LLM fails to extract temporal i
patches/fact_extraction.py:29
↓ 2 callersFunction_infer_temporal_date
Infer a temporal date from fact text when LLM didn't provide occurred_start. This is a fallback for when the LLM fails to extract temporal i
engine/hindsight_api/engine/retain/fact_extraction.py:29
↓ 2 callersFunction_inject_label_tags
For label groups with tag=True, add extracted key:value label entities to each fact's tags list. Modifies facts in place. This lets enti
patches/fact_extraction.py:2085
↓ 2 callersFunction_inject_label_tags
For label groups with tag=True, add extracted key:value label entities to each fact's tags list. Modifies facts in place. This lets enti
engine/hindsight_api/engine/retain/fact_extraction.py:2079
↓ 2 callersFunction_interpolate_color
Interpolate between two RGB colors.
engine/hindsight_api/banner.py:22
↓ 2 callersFunction_is_done_tool
Check if the tool name represents the 'done' tool.
engine/hindsight_api/engine/reflect/agent.py:75
↓ 2 callersMethod_link_units_to_entities_batch_impl
(self, conn, unit_entity_pairs: list[tuple[str, str]])
engine/hindsight_api/engine/entity_resolver.py:759
↓ 2 callersFunction_load_chat_index
Load and cache the AI chat history index.json.
dashboard.py:48
↓ 2 callersFunction_max_date
Return the maximum non-None datetime from an iterable.
patches/consolidator.py:777
↓ 2 callersFunction_max_date
Return the maximum non-None datetime from an iterable.
engine/hindsight_api/engine/consolidation/consolidator.py:777
↓ 2 callersFunction_migrate_label_group
Migrate legacy free_values/multi_value fields to the new type field.
engine/hindsight_api/engine/retain/entity_labels.py:77
↓ 2 callersFunction_migrate_table_embedding_dimension
Migrate the embedding column of a single table to the required dimension. - If dimensions match: no action needed - If dimensions differ
engine/hindsight_api/migrations.py:474
↓ 2 callersFunction_min_date
Return the minimum non-None datetime from an iterable.
patches/consolidator.py:772
↓ 2 callersFunction_min_date
Return the minimum non-None datetime from an iterable.
engine/hindsight_api/engine/consolidation/consolidator.py:772
↓ 2 callersFunction_parse_http_config
Parse http_config column value (JSONB returned as text or dict) into a model.
engine/hindsight_api/webhooks/manager.py:33
↓ 2 callersFunction_parse_str_list
Parse a comma-separated string into a non-empty list of stripped tokens.
engine/hindsight_api/config.py:564
↓ 2 callersFunction_process_memory_batch
Process a batch of memories in a single LLM call. Steps: 1. Parallel recalls — one per fact (read-only; safe to parallelise) 2. Unio
patches/consolidator.py:577
↓ 2 callersFunction_process_memory_batch
Process a batch of memories in a single LLM call. Steps: 1. Parallel recalls — one per fact (read-only; safe to parallelise) 2. Unio
engine/hindsight_api/engine/consolidation/consolidator.py:577
↓ 2 callersMethod_resolve_entities_batch_impl
( self, conn, bank_id: str, entities_data: list[dict], context: str,
engine/hindsight_api/engine/entity_resolver.py:195
↓ 2 callersMethod_resolve_from_candidates
Shared scoring + upsert logic used by both lookup strategies.
engine/hindsight_api/engine/entity_resolver.py:357
↓ 2 callersFunction_resolve_parser
Normalize parser value to a non-empty list of names.
engine/hindsight_api/api/http.py:4616
↓ 2 callersMethod_retain_batch_async_internal
Internal method for batch processing without chunking logic. Assumes contents are already appropriately sized (< 50k chars).
engine/hindsight_api/engine/memory_engine.py:2177
↓ 2 callersMethod_row_to_observation_consolidated
Convert a database row to an observation dict.
engine/hindsight_api/engine/memory_engine.py:6050
↓ 2 callersFunction_sanitize
(text: str, special_tokens: dict[str, str])
engine/hindsight_api/engine/jina_mlx_reranker.py:45
↓ 2 callersFunction_tool_call_to_dict
Convert LLMToolCall to OpenAI message format.
engine/hindsight_api/engine/reflect/agent.py:896
↓ 2 callersFunction_truncate_to_tokens
Truncate text to at most max_tokens using the shared tiktoken encoder.
engine/hindsight_api/engine/cross_encoder.py:824
↓ 2 callersMethod_update_webhook_delivery_metadata
Persist last HTTP attempt info into async_operations.result_metadata.
engine/hindsight_api/engine/memory_engine.py:1147
↓ 2 callersFunction_validate_parsers
Raise HTTP 400 if any parser name is not in the allowlist.
engine/hindsight_api/api/http.py:4622
↓ 2 callersMethodadd_all_edges
Add loaded edges to the cache (all edge types at once). Args: edges_by_type: Dict mapping edge_type -> from_node_id -> l
engine/hindsight_api/engine/search/mpfp_retrieval.py:92
↓ 2 callersMethodadd_event
No-op.
engine/hindsight_api/tracing.py:82
↓ 2 callersMethodauthenticate
Authenticate the action context and return tenant context. Args: context: The action context containing API key and othe
engine/hindsight_api/extensions/tenant.py:64
↓ 2 callersFunctionbuild_content_dict
Build a content dict for retain operations. Args: content: The memory content context: Category for the memory timestamp:
engine/hindsight_api/mcp_tools.py:91
↓ 2 callersFunctionbuild_labels_model
Build a dynamic Pydantic model for structured label extraction. Each LabelGroup becomes a typed field based on its type: - type="text"
engine/hindsight_api/engine/retain/entity_labels.py:94
↓ 2 callersFunctionchunk_text
Split text into chunks, preserving conversation structure when possible. For JSON conversation arrays (user/assistant turns), splits at turn
patches/fact_extraction.py:335
↓ 2 callersFunctionchunk_text
Split text into chunks, preserving conversation structure when possible. For JSON conversation arrays (user/assistant turns), splits at turn
engine/hindsight_api/engine/retain/fact_extraction.py:335
↓ 2 callersFunctioncreate_metrics_collector
Create and set the global metrics collector. Should be called after initialize_metrics().
engine/hindsight_api/metrics.py:618
↓ 2 callersMethoddelete_memory_unit
Delete a single memory unit and all its associated links. Due to CASCADE DELETE constraints, this will automatically delete:
engine/hindsight_api/engine/memory_engine.py:3634
↓ 2 callersFunctionensure_embedding_dimension
Ensure the embedding column dimension matches the model's dimension for all tables. Checks and adjusts memory_units.embedding and mental_mod
engine/hindsight_api/migrations.py:593
↓ 2 callersFunctionensure_text_search_extension
Ensure the text search columns and indexes match the configured extension. This function checks the current search_vector column type and in
engine/hindsight_api/migrations.py:864
↓ 2 callersFunctionensure_vector_extension
Ensure the vector indexes match the configured vector extension. This function checks the current vector index type in the database and
engine/hindsight_api/migrations.py:643
↓ 2 callersFunctionextract_facts_from_text
Extract semantic facts from conversational or narrative text using LLM. For large texts (>3000 chars), automatically chunks at sentence boun
engine/hindsight_api/engine/retain/fact_extraction.py:1360
↓ 2 callersMethodfire_event_with_conn
Queue webhook deliveries within an existing database connection/transaction. Identical to fire_event() but uses the provided connect
engine/hindsight_api/webhooks/manager.py:151
↓ 2 callersMethodflush_pending_stats
Flush accumulated entity stats and co-occurrence counts for the current task. Must be called AFTER the retain transaction commits.
engine/hindsight_api/engine/entity_resolver.py:88
↓ 2 callersFunctionformat_facts_for_prompt
Format facts as JSON for LLM prompt.
engine/hindsight_api/engine/search/think_utils.py:51
↓ 2 callersMethodfrom_extracted_fact
Create ProcessedFact from ExtractedFact. Args: extracted_fact: Source ExtractedFact embedding: Generated emb
engine/hindsight_api/engine/retain/types.py:184
↓ 2 callersMethodget_allowed_config_fields
Get set of config fields that this tenant/bank is allowed to modify. This method controls which configurable fields can be modified
engine/hindsight_api/extensions/tenant.py:116
↓ 2 callersMethodget_config_updates
Return only the config fields that were explicitly set. reflect_mission takes precedence over deprecated mission/background aliases.
engine/hindsight_api/api/http.py:990
↓ 2 callersFunctionget_database_url
Get and process the database URL from config or environment. Returns the URL with the correct driver (psycopg2) for migrations.
engine/hindsight_api/alembic/env.py:52
↓ 2 callersFunctionget_default_graph_retriever
Get or create the default graph retriever based on config.
engine/hindsight_api/engine/search/retrieval.py:59
↓ 2 callersMethodget_mock_calls
Get the list of recorded mock calls.
engine/hindsight_api/engine/llm_wrapper.py:568
↓ 2 callersMethodget_python_log_level
Get the Python logging level from the configured log level string.
engine/hindsight_api/config.py:1301
↓ 2 callersFunctionget_token_bucket
Convert a token count to a bucket label for use as a dimension. This allows analyzing token usage patterns without high-cardinality issues.
engine/hindsight_api/metrics.py:51
↓ 2 callersMethodget_visit_by_node_id
Find a visit by node ID.
engine/hindsight_api/engine/search/trace.py:229
↓ 2 callersMethodhealth_check
Perform a health check by querying the database. Returns: dict with status and optional error message Note:
engine/hindsight_api/engine/memory_engine.py:1778
← previousnext →201–300 of 1,372, ranked by callers