MCPcopy Create free account

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

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

↓ 1 callersMethodadd_reranked
Record reranked results. Args: reranked_results: List of result dicts after reranking rrf_merged: Original R
engine/hindsight_api/engine/search/tracer.py:371
↓ 1 callersMethodadd_rrf_merged
Record RRF merged results. Args: merged_results: List of (doc_id, data, rrf_meta) tuples from RRF merge
engine/hindsight_api/engine/search/tracer.py:352
↓ 1 callersMethodanalyze
Analyze a natural language query. Args: query: Natural language query to analyze reference_date: Reference d
engine/hindsight_api/engine/query_analyzer.py:63
↓ 1 callersFunctionapi_delete
(path)
backup-memomind.py:46
↓ 1 callersFunctionapply_combined_scoring
Apply combined scoring to a list of ScoredResults in-place. Uses the cross-encoder score as the primary relevance signal, with recency and te
engine/hindsight_api/engine/search/reranking.py:18
↓ 1 callersMethodauthenticate
Validate API key and return configured schema context.
engine/hindsight_api/extensions/builtin/tenant.py:71
↓ 1 callersMethodauthenticate_mcp
Authenticate MCP requests. By default, this calls authenticate(). Override this method to provide different authentication b
engine/hindsight_api/extensions/tenant.py:141
↓ 1 callersFunctionbudgeted_operation
Convenience function to create a budgeted operation. Args: max_connections: Max concurrent connections for this operation op
engine/hindsight_api/engine/db_budget.py:212
↓ 1 callersFunctionbuildPresentation
()
build-ppt-zh.js:65
↓ 1 callersFunctionbuildPresentation
()
build-ppt.js:127
↓ 1 callersFunctionbuild_batch_consolidation_prompt
Build the consolidation prompt for batch mode (multiple facts per LLM call). The mission defines *what* to track (customisable per bank).
patches/consolidation_prompts.py:70
↓ 1 callersFunctionbuild_batch_consolidation_prompt
Build the consolidation prompt for batch mode (multiple facts per LLM call). The mission defines *what* to track (customisable per bank).
engine/hindsight_api/engine/consolidation/prompts.py:70
↓ 1 callersFunctionbuild_content
构建 retain 的 content 字符串,控制在 MAX_CONTENT_LEN 以内。
import_ai_chats.py:93
↓ 1 callersFunctionbuild_directives_reminder
Build a reminder section for directives to place at the end of the prompt. Args: directives: List of directive mental models with ob
engine/hindsight_api/engine/reflect/prompts.py:65
↓ 1 callersFunctionbuild_directives_section
Build the directives section for the system prompt. Directives are hard rules that MUST be followed in all responses.
engine/hindsight_api/engine/reflect/prompts.py:33
↓ 1 callersFunctionbuild_disposition_description
Build a disposition description string from disposition traits.
engine/hindsight_api/engine/search/think_utils.py:19
↓ 1 callersFunctionbuild_system_prompt_for_tools
Build the system prompt for tool-calling reflect agent. The agent uses hierarchical retrieval: 1. search_mental_models - User-curated su
engine/hindsight_api/engine/reflect/prompts.py:95
↓ 1 callersFunctionbuild_think_prompt
Build the think prompt for the LLM. Note: opinion_facts_text parameter removed - opinions are now stored as mental models and included via en
engine/hindsight_api/engine/search/think_utils.py:103
↓ 1 callersMethodcall
Make an LLM API call with retry logic. Args: messages: List of message dicts with 'role' and 'content'. resp
engine/hindsight_api/engine/providers/anthropic_llm.py:95
↓ 1 callersMethodcall
Make an LLM API call with retry logic. Args: messages: List of message dicts with 'role' and 'content'. resp
engine/hindsight_api/engine/providers/openai_compatible_llm.py:162
↓ 1 callersMethodcall
Make a Gemini/VertexAI API call with retry logic. Args: messages: List of message dicts with 'role' and 'content'.
engine/hindsight_api/engine/providers/gemini_llm.py:156
↓ 1 callersMethodcall
Make an LLM API call with retry logic. Args: messages: List of message dicts with 'role' and 'content'. resp
engine/hindsight_api/engine/providers/claude_code_llm.py:106
↓ 1 callersMethodcall
Make API call to Codex backend with SSE streaming.
engine/hindsight_api/engine/providers/codex_llm.py:145
↓ 1 callersMethodcall_with_tools
Make an LLM API call with tool/function calling support. Args: messages: List of message dicts. Can include tool results
engine/hindsight_api/engine/llm_wrapper.py:496
↓ 1 callersMethodcall_with_tools
Make a mock LLM API call with tool/function calling support. Records the call for test verification and returns the configured mock
engine/hindsight_api/engine/providers/mock_llm.py:171
↓ 1 callersMethodclaim_batch
Claim pending tasks atomically across all tenant schemas, respecting slot limits (total and consolidation). Uses FOR UPDATE
engine/hindsight_api/worker/poller.py:157
↓ 1 callersMethodclear_observations
Clear all observations for a bank (consolidated knowledge). Args: bank_id: Bank ID to clear observations for
engine/hindsight_api/engine/memory_engine.py:3815
↓ 1 callersMethodclear_observations_for_memory
Clear all observations derived from a specific memory and mark source memories (including the given memory itself) for re-consolidati
engine/hindsight_api/engine/memory_engine.py:3866
↓ 1 callersFunctioncolor_end
Color text with gradient end color (#009296).
engine/hindsight_api/banner.py:64
↓ 1 callersFunctioncolor_start
Color text with gradient start color (#0074d9).
engine/hindsight_api/banner.py:59
↓ 1 callersFunctioncompute_temporal_links
Compute temporal links between new units and candidate neighbors. This is a pure function that takes query results and returns link tuples,
engine/hindsight_api/engine/retain/link_utils.py:26
↓ 1 callersFunctioncompute_temporal_query_bounds
Compute the min/max date bounds for querying temporal neighbors. Args: new_units: Dict mapping unit_id (str) to event_date (datetime
engine/hindsight_api/engine/retain/link_utils.py:84
↓ 1 callersFunctioncompute_trend
Compute the trend for an observation based on evidence timestamps. The trend indicates how the evidence is distributed over time: - STABLE: E
engine/hindsight_api/engine/reflect/observations.py:115
↓ 1 callersMethodconvert
Parse file to markdown. Args: file_data: Raw file bytes filename: Original filename (used for format detecti
engine/hindsight_api/engine/parsers/base.py:16
↓ 1 callersMethodconvert
Parse file to markdown using markitdown.
engine/hindsight_api/engine/parsers/markitdown.py:43
↓ 1 callersMethodconvert_with_fallback
Try each parser in order, falling back on failure or empty content. Moves to the next parser if the current one raises UnsupportedFi
engine/hindsight_api/engine/parsers/__init__.py:81
↓ 1 callersFunctioncreate_cross_encoder_from_env
Create a CrossEncoderModel instance based on configuration. Reads configuration via get_config() to ensure consistency across the codebase.
engine/hindsight_api/engine/cross_encoder.py:1170
↓ 1 callersFunctioncreate_embeddings_from_env
Create an Embeddings instance based on configuration. Reads configuration via get_config() to ensure consistency across the codebase. R
engine/hindsight_api/engine/embeddings.py:869
↓ 1 callersFunctioncreate_file_storage
Create file storage backend based on configuration. Args: storage_type: "native" (PostgreSQL BYTEA) or "s3" (S3-compatible object st
engine/hindsight_api/engine/storage/__init__.py:11
↓ 1 callersFunctioncreate_llm_provider
Factory function to create the appropriate LLM provider implementation. Args: provider: Provider name ("openai", "groq", "ollama", "
engine/hindsight_api/engine/llm_wrapper.py:138
↓ 1 callersFunctioncreate_mcp_servers
Create multi-bank and single-bank MCP servers and their Starlette apps. Returns the servers and apps separately so lifespans can be chained befor
engine/hindsight_api/api/mcp.py:437
↓ 1 callersFunctioncreate_span_recorder
Create and set the global span recorder.
engine/hindsight_api/tracing.py:473
↓ 1 callersFunctioncreate_worker_app
Create a minimal FastAPI app for worker metrics and health.
engine/hindsight_api/worker/main.py:34
↓ 1 callersFunctiondaemonize
Fork the current process into a background daemon. Uses double-fork technique to properly detach from terminal.
engine/hindsight_api/daemon.py:61
↓ 1 callersMethoddelete
Delete file by storage key. Args: key: Storage key
engine/hindsight_api/engine/storage/base.py:46
↓ 1 callersMethodensure_initialized
Ensure the cross-encoder model is initialized (for lazy initialization).
engine/hindsight_api/engine/search/reranking.py:95
↓ 1 callersMethodexecute_task
Execute a single task as a background job (fire-and-forget).
engine/hindsight_api/worker/poller.py:336
↓ 1 callersFunctionextract_facts_from_contents
Extract facts from multiple content items in parallel. This function: 1. Extracts facts from all contents in parallel using the LLM
patches/fact_extraction.py:1898
↓ 1 callersFunctionextract_facts_from_contents
Extract facts from multiple content items in parallel. This function: 1. Extracts facts from all contents in parallel using the LLM
engine/hindsight_api/engine/retain/fact_extraction.py:1892
↓ 1 callersFunctionextract_facts_from_contents_batch_api
Extract facts using LLM Batch API (OpenAI/Groq). Submits all chunks as a single batch, polls until complete, then processes results. Onl
patches/fact_extraction.py:1450
↓ 1 callersFunctionextract_facts_from_contents_batch_api
Extract facts using LLM Batch API (OpenAI/Groq). Submits all chunks as a single batch, polls until complete, then processes results. Onl
engine/hindsight_api/engine/retain/fact_extraction.py:1444
↓ 1 callersFunctionextract_facts_from_text
Extract semantic facts from conversational or narrative text using LLM. For large texts (>3000 chars), automatically chunks at sentence boun
patches/fact_extraction.py:1366
↓ 1 callersFunctionextract_temporal_constraint
Extract temporal constraint from query. Returns (start_date, end_date) tuple if temporal constraint found, else None. Args: que
engine/hindsight_api/engine/search/temporal_extraction.py:34
↓ 1 callersFunctionextract_user_messages
从 messages 数组中提取用户发的文本消息内容。
import_ai_chats.py:59
↓ 1 callersFunctionfetch_memory_units_by_ids
Fetch full memory unit details for a list of node IDs.
engine/hindsight_api/engine/search/mpfp_retrieval.py:439
↓ 1 callersMethodfilter_bank_list
Filter the bank list after querying. Unlike validate_* methods, this is a post-query filter that narrows results rather than
engine/hindsight_api/extensions/operation_validator.py:665
↓ 1 callersFunctionfilter_graph_edges
Filter graph edges to reduce backup size. - Remove temporal edges (reconstructable from timestamps) - Only include semantic edges with weight
backup-memomind.py:91
↓ 1 callersMethodfinalize
Finalize the trace and return the complete SearchTrace object. Args: final_results: Final ranked results returned to use
engine/hindsight_api/engine/search/tracer.py:418
↓ 1 callersMethodfire_event
Queue webhook deliveries for an event as async_operations tasks. Loads per-bank and global webhooks, inserts pending webhook_deliver
engine/hindsight_api/webhooks/manager.py:65
↓ 1 callersMethodflush
Flush all log lines to the logger.
patches/consolidator.py:150
↓ 1 callersFunctionformat_event_content
Format a single event into a self-contained string for retain. Format: "2024年3月15日 [科研] 写论文第三章 已完成 (9:00-12:30, 210分钟)"
import_daylife.py:58
↓ 1 callersMethodfrom_async_operation_row
(cls, row: dict)
engine/hindsight_api/api/http.py:1764
↓ 1 callersMethodget_batch_status
Get the status of a batch job. Args: batch_id: Batch identifier returned from submit_batch Returns:
engine/hindsight_api/engine/llm_interface.py:162
↓ 1 callersMethodget_batch_status
Get the status of a batch job. Args: batch_id: Batch identifier Returns: Dict with status info (bat
engine/hindsight_api/engine/providers/openai_compatible_llm.py:871
↓ 1 callersFunctionget_budget_manager
Get or create the global budget manager. Args: default_budget: Default max connections per operation Returns: Global Co
engine/hindsight_api/engine/db_budget.py:195
↓ 1 callersMethodget_chunk
Get a specific chunk by its ID. Args: chunk_id: Chunk ID (format: bank_id_document_id_chunk_index) request_c
engine/hindsight_api/engine/memory_engine.py:4822
↓ 1 callersMethodget_credential_fields
Get set of field names that are credentials (NEVER exposed via API). Credential fields include API keys, base URLs, and service acco
engine/hindsight_api/config.py:882
↓ 1 callersFunctionget_default_analyzer
Get or create the default query analyzer. Uses lazy initialization to avoid loading at import time. Returns: Default Dateparser
engine/hindsight_api/engine/search/temporal_extraction.py:19
↓ 1 callersFunctionget_embedded_postgres
Get or create the default EmbeddedPostgres instance.
engine/hindsight_api/pg0.py:128
↓ 1 callersMethodget_entity
Get entity details including metadata and observations.
engine/hindsight_api/engine/memory_engine.py:5723
↓ 1 callersFunctionget_entries
Read all entries from DayLife SQLite DB.
import_daylife.py:32
↓ 1 callersMethodget_graph_data
Get graph data for visualization. Args: bank_id: Filter by bank ID fact_type: Filter by fact type (world, ex
engine/hindsight_api/engine/memory_engine.py:3966
↓ 1 callersFunctionget_last_sync_date
Read the last successfully synced date from marker file.
sync_daylife_smart.py:30
↓ 1 callersMethodget_llm_base_url
Get the LLM base URL, with provider-specific defaults.
engine/hindsight_api/config.py:1286
↓ 1 callersMethodget_mental_model_history
Get the refresh history of a mental model. Returns None if the mental model is not found. Returns a list of history entries (most rec
engine/hindsight_api/engine/memory_engine.py:6208
↓ 1 callersFunctionget_meter
Get the global meter instance.
engine/hindsight_api/metrics.py:154
↓ 1 callersMethodget_neighbors
Get neighbors for a node via a specific edge type.
engine/hindsight_api/engine/search/mpfp_retrieval.py:68
↓ 1 callersMethodget_normalized_neighbors
Get top-k neighbors with weights normalized to sum to 1.
engine/hindsight_api/engine/search/mpfp_retrieval.py:72
↓ 1 callersMethodget_observation_history
Get the history of an observation, with source facts resolved to their text. Returns None if the memory is not found or is not an ob
engine/hindsight_api/engine/memory_engine.py:4583
↓ 1 callersMethodget_parser
Get parser by name or auto-detect. Args: name: Parser name (e.g., "markitdown") or None for auto-detect file
engine/hindsight_api/engine/parsers/__init__.py:47
↓ 1 callersFunctionget_reflect_tools
Get the list of tools for the reflect agent. The tools support a hierarchical retrieval strategy: 1. search_mental_models - User-curated
engine/hindsight_api/engine/reflect/tools_schema.py:230
↓ 1 callersMethodget_root_router
Return a FastAPI router with endpoints mounted at the app root. Unlike get_router() which is mounted at /ext/, this router is mounte
engine/hindsight_api/extensions/http.py:91
↓ 1 callersMethodget_router
Return a FastAPI router with custom endpoints. The router will be mounted at /ext/ on the main application. All routes defin
engine/hindsight_api/extensions/http.py:61
↓ 1 callersMethodget_static_fields
Get set of field names that are static (server-level only). Static fields are infrastructure-level settings that cannot vary
engine/hindsight_api/config.py:904
↓ 1 callersFunctionget_system_message
Get the system message for the think LLM call.
engine/hindsight_api/engine/search/think_utils.py:164
↓ 1 callersMethodget_tenant_config
Get tenant-specific configuration overrides. This method is called during hierarchical configuration resolution to get tenan
engine/hindsight_api/extensions/tenant.py:93
↓ 1 callersMethodget_uri
Get the connection URI for the PostgreSQL server.
engine/hindsight_api/pg0.py:101
↓ 1 callersFunctiongradient_text
Render text with a gradient color effect.
engine/hindsight_api/banner.py:31
↓ 1 callersMethodinitialize
No-op for sync backend.
engine/hindsight_api/engine/task_backend.py:109
↓ 1 callersMethodinitialize
Initialize the backend.
engine/hindsight_api/engine/task_backend.py:163
↓ 1 callersFunctioninitialize_tracing
Initialize OpenTelemetry tracing with OTLP exporter. Args: service_name: Name of the service for resource attributes endpoin
engine/hindsight_api/tracing.py:139
↓ 1 callersMethodlink_units_to_entities_batch
Link multiple memory units to entities in batch (MUCH faster than sequential). Also updates co-occurrence cache for entities that ap
engine/hindsight_api/engine/entity_resolver.py:740
↓ 1 callersMethodlist_entities
List all entities for a bank with pagination. Args: bank_id: bank IDentifier limit: Maximum number of entiti
engine/hindsight_api/engine/memory_engine.py:5426
↓ 1 callersMethodlist_parsers
Get list of registered parser names.
engine/hindsight_api/engine/parsers/__init__.py:126
↓ 1 callersMethodload
Load dateparser and warm up internal data structures. Triggers the real initialization cost (regex tables, timezone data) at load tim
engine/hindsight_api/engine/query_analyzer.py:94
↓ 1 callersMethodload
Load the T5 model for temporal extraction.
engine/hindsight_api/engine/query_analyzer.py:310
↓ 1 callersFunctionload_backup
Load and parse a MemoMind backup JSON file.
restore_backup.py:33
↓ 1 callersFunctionload_env
Load environment variables from .env
engine/hindsight_api/alembic/env.py:19
↓ 1 callersFunctionload_index
(path: str)
import_ai_chats.py:54
↓ 1 callersMethodlog_config
Log the current configuration (without sensitive values).
engine/hindsight_api/config.py:1337
← previousnext →501–600 of 1,372, ranked by callers