MCPcopy Create free account

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

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

↓ 1 callersFunctionmain
()
proxy-bridge.py:45
↓ 1 callersFunctionmain
()
import_ai_chats.py:171
↓ 1 callersFunctionmain
()
import_daylife.py:141
↓ 1 callersFunctionmain
()
patch_hindsight.py:51
↓ 1 callersFunctionmain
()
sync_daylife_smart.py:46
↓ 1 callersFunctionmain
()
backup-memomind.py:142
↓ 1 callersFunctionmain
()
restore_backup.py:87
↓ 1 callersFunctionmain
Start the Hindsight API server with local defaults.
engine/hindsight_api/mcp_local.py:29
↓ 1 callersFunctionmain
Main entry point for the hindsight-worker CLI.
engine/hindsight_api/worker/main.py:105
↓ 1 callersFunctionmain
()
engine/hindsight_api/admin/cli.py:378
↓ 1 callersMethodmerge_bank_mission
Merge new mission information with existing mission using LLM. Normalizes to first person ("I") and resolves conflicts. Args
engine/hindsight_api/engine/memory_engine.py:4979
↓ 1 callersMethodname
Get parser name. Returns: Parser name (e.g., "markitdown")
engine/hindsight_api/engine/parsers/base.py:51
↓ 1 callersFunctionnormalize_config_key
Convert environment variable format to Python field name format. Examples: HINDSIGHT_API_LLM_PROVIDER -> llm_provider LLM_MO
engine/hindsight_api/config.py:82
↓ 1 callersMethodon_file_convert_complete
Called after a file is converted to markdown (before the retain step). Override to implement post-conversion logic such as:
engine/hindsight_api/extensions/operation_validator.py:525
↓ 1 callersMethodon_mental_model_get_complete
Called after a mental model GET operation completes (success or failure). Override to implement post-operation logic such as trackin
engine/hindsight_api/extensions/operation_validator.py:588
↓ 1 callersMethodon_mental_model_refresh_complete
Called after a mental model refresh operation completes (success or failure). Override to implement post-operation logic such as tra
engine/hindsight_api/extensions/operation_validator.py:604
↓ 1 callersMethodon_reflect_complete
Called after a reflect operation completes (success or failure). Override this method to implement post-operation logic such as:
engine/hindsight_api/extensions/operation_validator.py:461
↓ 1 callersMethodon_retain_complete
Called after a retain operation completes (success or failure). Override this method to implement post-operation logic such as:
engine/hindsight_api/extensions/operation_validator.py:423
↓ 1 callersMethodoperation
Create a budgeted operation context. Args: max_connections: Max concurrent connections for this operation.
engine/hindsight_api/engine/db_budget.py:70
↓ 1 callersFunctionpatch_link_expansion
Copy the custom link_expansion_retrieval.py with super-entity filtering.
patch_hindsight.py:34
↓ 1 callersFunctionprint_banner
Print the Hindsight startup banner.
engine/hindsight_api/banner.py:46
↓ 1 callersFunctionprint_startup_info
Print styled startup information.
engine/hindsight_api/banner.py:79
↓ 1 callersFunctionprune_stale_observations
Delete observations with proof_count <= 1 that are older than 30 days.
backup-memomind.py:54
↓ 1 callersFunctionrecordScene
(name, actions, options = {})
scripts/record-demo.mjs:14
↓ 1 callersMethodrecord_http_request
Context manager to record HTTP request metrics. Usage: status_code = [200] # Use list for mutability with m
engine/hindsight_api/metrics.py:411
↓ 1 callersMethodrecord_llm_call
Record stats for a single LLM call.
patches/consolidator.py:144
↓ 1 callersMethodrecord_query_embedding
Record the query embedding.
engine/hindsight_api/engine/search/tracer.py:102
↓ 1 callersMethodrecord_temporal_constraint
Record the detected temporal constraint from query analysis.
engine/hindsight_api/engine/search/tracer.py:106
↓ 1 callersMethodrecover_own_tasks
Recover tasks that were assigned to this worker but not completed. This handles the case where a worker crashes while processing tas
engine/hindsight_api/worker/poller.py:391
↓ 1 callersMethodrefresh
Refresh a mental model.
engine/hindsight/api_namespaces.py:86
↓ 1 callersFunctionregister_mcp_tools
Register MCP tools on a FastMCP server. Args: mcp: FastMCP server instance memory: MemoryEngine instance config: Tool con
engine/hindsight_api/mcp_tools.py:131
↓ 1 callersMethodregister_tools
Register additional MCP tools. Args: mcp: FastMCP server instance to register tools on memory: MemoryEngine instance
engine/hindsight_api/extensions/mcp.py:35
↓ 1 callersFunctionrequires_api_key
Return True if the given provider requires an API key to operate.
engine/hindsight_api/engine/llm_wrapper.py:133
↓ 1 callersMethodreset_bank_config
Reset bank configuration to defaults (remove all overrides). Args: bank_id: Bank identifier
engine/hindsight_api/config_resolver.py:257
↓ 1 callersMethodresolve_entities_batch
Resolve multiple entities in batch (MUCH faster than sequential). Groups entities by type, queries candidates in bulk, and resolves
engine/hindsight_api/engine/entity_resolver.py:156
↓ 1 callersFunctionretain
调用 MemoMind retain API。返回 True 表示成功。
import_ai_chats.py:128
↓ 1 callersFunctionretain
Call MemoMind retain API.
import_daylife.py:107
↓ 1 callersFunctionretain
Call MemoMind retain API for a single memory.
restore_backup.py:53
↓ 1 callersMethodretain_async
Store content as memory units with temporal and semantic links (ASYNC version). This is a convenience wrapper around retain_batch_as
engine/hindsight_api/engine/memory_engine.py:1894
↓ 1 callersMethodretrieve
Retrieve relevant facts via graph traversal. Args: pool: Database connection pool query_embedding_str: Query
engine/hindsight_api/engine/search/graph_retrieval.py:36
↓ 1 callersFunctionretrieve_all_fact_types_parallel
Optimized retrieval for multiple fact types using batched queries. This reduces database round-trips by: 1. Combining semantic + BM25 in
engine/hindsight_api/engine/search/retrieval.py:521
↓ 1 callersMethodretrieve_batch_results
Retrieve completed batch results. Args: batch_id: Batch identifier returned from submit_batch Returns:
engine/hindsight_api/engine/llm_interface.py:177
↓ 1 callersMethodretrieve_batch_results
Retrieve completed batch results. Args: batch_id: Batch identifier Returns: List of result dicts (o
engine/hindsight_api/engine/providers/openai_compatible_llm.py:908
↓ 1 callersFunctionretrieve_semantic_bm25_combined
Combined semantic + BM25 retrieval for multiple fact types in a single query. Uses UNION ALL of per-fact_type subqueries so that each arm ha
engine/hindsight_api/engine/search/retrieval.py:88
↓ 1 callersFunctionretrieve_temporal_combined
Temporal retrieval for multiple fact types in a single query. Batches the entry point query using window functions to get top-N per fact typ
engine/hindsight_api/engine/search/retrieval.py:252
↓ 1 callersMethodretry_operation
Re-queue a failed async operation.
engine/hindsight_api/engine/memory_engine.py:7188
↓ 1 callersFunctionrrf_fusion
Reciprocal Rank Fusion to combine pattern results. Args: results: List of pattern results k: RRF constant (higher = more uni
engine/hindsight_api/engine/search/mpfp_retrieval.py:400
↓ 1 callersFunctionrun
()
engine/hindsight_api/worker/main.py:175
↓ 1 callersFunctionrun_graph_for_fact_type
(ft: str)
engine/hindsight_api/engine/search/retrieval.py:618
↓ 1 callersMethodrun_migration
Run database migrations for a specific schema. This creates the schema if it doesn't exist and runs all pending migrations.
engine/hindsight_api/extensions/context.py:37
↓ 1 callersFunctionrun_migrations_offline
Run migrations in 'offline' mode. This configures the context with just a URL and not an Engine, though an Engine is acceptable here as w
engine/hindsight_api/alembic/env.py:80
↓ 1 callersFunctionrun_migrations_online
Run migrations in 'online' mode with synchronous engine.
engine/hindsight_api/alembic/env.py:106
↓ 1 callersFunctionrun_reflect_agent
Execute the reflect agent loop using native tool calling. The agent uses hierarchical retrieval: 1. search_mental_models - User-curated
engine/hindsight_api/engine/reflect/agent.py:304
↓ 1 callersFunctionsample_messages
如果消息数超过 max_count,均匀采样。
import_ai_chats.py:76
↓ 1 callersFunctionsave_last_sync_date
Save the last synced date to marker file.
sync_daylife_smart.py:40
↓ 1 callersMethodset_executor
Set the executor callback for processing tasks. Args: executor: Async function that takes a task dict and executes it
engine/hindsight_api/engine/task_backend.py:46
↓ 1 callersMethodstop
Stop the server. Args: timeout: Maximum time to wait for server to stop (seconds)
patches/hindsight_server.py:188
↓ 1 callersMethodstore
Store file and return storage key. Args: file_data: Raw file bytes key: Storage key (e.g., "banks/{bank_id}/
engine/hindsight_api/engine/storage/base.py:10
↓ 1 callersMethodsubmit_async_file_retain
Submit batch file conversion + retain operation. Each file is converted to markdown and then retained as a memory. Files are
engine/hindsight_api/engine/memory_engine.py:7517
↓ 1 callersMethodsubmit_batch
Submit a batch of requests to the provider's batch API. Args: requests: List of request dicts in JSONL format (custom_id
engine/hindsight_api/engine/llm_interface.py:140
↓ 1 callersMethodsubmit_batch
Submit a batch of requests to OpenAI/Groq Batch API. Args: requests: List of request dicts with custom_id, method, url,
engine/hindsight_api/engine/providers/openai_compatible_llm.py:815
↓ 1 callersMethodsupports
Check if parser supports this file type. Override this for local/static extension-based filtering. Parsers that delegate to
engine/hindsight_api/engine/parsers/base.py:33
↓ 1 callersMethodsupports_batch_api
Check if this provider supports batch API operations. Returns: True if provider supports submit_batch/get_batch_status/r
engine/hindsight_api/engine/llm_interface.py:131
↓ 1 callersMethodto_dict
Convert to dict for JSON serialization.
engine/hindsight_api/engine/operation_metadata.py:21
↓ 1 callersMethodto_dict
Convert to dict for JSON serialization.
engine/hindsight_api/engine/operation_metadata.py:35
↓ 1 callersFunctiontool_expand
Expand multiple memories to get chunk or document context. Args: conn: Database connection bank_id: Bank identifier
engine/hindsight_api/engine/reflect/tools.py:248
↓ 1 callersFunctiontool_recall
Search memories using TEMPR retrieval. This is the ground truth - raw facts and experiences. Use when mental models/observations don't e
engine/hindsight_api/engine/reflect/tools.py:192
↓ 1 callersFunctiontool_search_mental_models
Search user-curated mental models by semantic similarity. Mental models are high-quality, manually created summaries about specific topics.
engine/hindsight_api/engine/reflect/tools.py:24
↓ 1 callersFunctiontool_search_observations
Search consolidated observations using recall with include_source_facts. Observations are auto-generated from memories. Returns freshness in
engine/hindsight_api/engine/reflect/tools.py:126
↓ 1 callersMethodupdate_bank_disposition
Update bank disposition traits. Args: bank_id: bank IDentifier disposition: Dict with skepticism, literalism
engine/hindsight_api/engine/memory_engine.py:4925
↓ 1 callersMethodupdate_document
Update mutable fields on a document without re-processing its content. Tag changes propagate to all associated memory units and trig
engine/hindsight_api/engine/memory_engine.py:3500
↓ 1 callersFunctionutcnow
Get current UTC time.
patches/orchestrator.py:18
↓ 1 callersFunctionutcnow
Get current UTC time with timezone info.
engine/hindsight_api/engine/memory_engine.py:199
↓ 1 callersFunctionutcnow
Get current UTC time.
engine/hindsight_api/engine/retain/orchestrator.py:18
↓ 1 callersMethodvalidate
Validate configuration values and raise errors for invalid combinations.
engine/hindsight_api/config.py:920
↓ 1 callersMethodvalidate_mental_model_get
Validate a mental model GET operation before execution. Override to implement custom validation logic for mental model retrieval.
engine/hindsight_api/extensions/operation_validator.py:550
↓ 1 callersMethodvalidate_mental_model_refresh
Validate a mental model refresh/create operation before execution. Override to implement custom validation logic for mental model re
engine/hindsight_api/extensions/operation_validator.py:567
↓ 1 callersMethodvalidate_recall
Validate a recall operation before execution. Called before the recall operation is processed. Return ValidationResult.reject()
engine/hindsight_api/extensions/operation_validator.py:371
↓ 1 callersMethodvalidate_reflect
Validate a reflect operation before execution. Called before the reflect operation is processed. Return ValidationResult.reject()
engine/hindsight_api/extensions/operation_validator.py:399
↓ 1 callersMethodvisit_node
Record visiting a node. Args: node_id: Memory unit ID text: Memory unit text context: Memory uni
engine/hindsight_api/engine/search/tracer.py:133
↓ 1 callersMethodwait_for_pending_tasks
Wait for pending tasks to be processed. In the broker model, this polls the database to check if tasks for this process have
engine/hindsight_api/engine/task_backend.py:234
↓ 1 callersMethodwrap_pool
Wrap a pool with this operation's budget. The returned BudgetedPool can be passed to functions expecting a pool, and all acq
engine/hindsight_api/engine/db_budget.py:147
Method__add__
Allow aggregating token usage from multiple calls.
engine/hindsight_api/engine/response_models.py:94
Method__call__
(self, scope, receive, send)
engine/hindsight_api/daemon.py:33
Method__call__
(self, x)
engine/hindsight_api/engine/jina_mlx_reranker.py:25
Method__call__
(self, scope, receive, send)
engine/hindsight_api/api/mcp.py:288
Method__del__
Cleanup on garbage collection.
engine/hindsight/embedded.py:231
Method__enter__
Context manager entry.
patches/hindsight_server.py:211
Method__enter__
Context manager entry - ensures server is started.
engine/hindsight/embedded.py:222
Method__exit__
Context manager exit.
patches/hindsight_server.py:215
Method__exit__
Context manager exit - stops the server.
engine/hindsight/embedded.py:227
Method__getattr__
Proxy all method calls to the underlying Hindsight client. This allows HindsightEmbedded to expose all HindsightClient methods
engine/hindsight/embedded.py:197
Method__getattr__
Proxy other attributes to the underlying pool.
engine/hindsight_api/engine/db_budget.py:282
Method__getattr__
(self, name: str)
engine/hindsight_api/engine/llm_wrapper.py:750
Method__init__
Args: causal_weight_threshold: Minimum weight for causal links to follow.
patches/link_expansion_retrieval.py:91
Method__init__
(self, bank_id: str)
patches/consolidator.py:124
Method__init__
Initialize the Hindsight server. Args: db_url: Database URL. Use "pg0" for embedded PostgreSQL. llm_provider
patches/hindsight_server.py:56
Method__init__
Args: causal_weight_threshold: Minimum weight for causal links to follow.
engine/link_expansion_retrieval.py:91
Method__init__
Initialize the embedded client (daemon starts on first use). Args: profile: Profile name for data isolation
engine/hindsight/embedded.py:79
Method__init__
(self, embedded: "HindsightEmbedded")
engine/hindsight/api_namespaces.py:19
← previousnext →601–700 of 1,372, ranked by callers