Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/24kchengYe/MemoMind
/ functions
Functions
1,372 in github.com/24kchengYe/MemoMind
⨍
Functions
1,372
◇
Types & classes
350
↳
Endpoints
62
Function
downgrade
Remove 'directive' from mental_models subtype constraint.
engine/hindsight_api/alembic/versions/k6f7g8h9i0j1_add_directive_subtype.py:43
Function
downgrade
()
engine/hindsight_api/alembic/versions/b3c4d5e6f7g8_add_temporal_date_indexes.py:61
Function
drop_bank_hnsw_indexes
Drop per-(bank, fact_type) partial HNSW indexes for a bank being deleted. Called before the bank row is deleted so internal_id is still known.
engine/hindsight_api/engine/retain/bank_utils.py:55
Method
encode
Generate embeddings for a list of texts. Args: texts: List of text strings to encode Returns: List
engine/hindsight_api/engine/embeddings.py:191
Method
encode
Generate embeddings using the remote TEI server. Args: texts: List of text strings to encode Returns:
engine/hindsight_api/engine/embeddings.py:326
Method
encode
Generate embeddings using the OpenAI API. Args: texts: List of text strings to encode Returns: List
engine/hindsight_api/engine/embeddings.py:448
Method
encode
Generate embeddings using the Cohere API. Args: texts: List of text strings to encode Returns: List
engine/hindsight_api/engine/embeddings.py:575
Method
encode
Generate embeddings using the LiteLLM proxy. Args: texts: List of text strings to encode Returns: L
engine/hindsight_api/engine/embeddings.py:689
Method
encode
Generate embeddings using the LiteLLM SDK. Args: texts: List of text strings to encode Returns: Lis
engine/hindsight_api/engine/embeddings.py:816
Function
ensure_bank_exists
Ensure bank exists in the database. Creates bank with default values if it doesn't exist. Args: conn: Database connection
patches/fact_storage.py:178
Function
ensure_bank_exists
Ensure bank exists in the database. Creates bank with default values if it doesn't exist. Args: conn: Database connection
engine/hindsight_api/engine/retain/fact_storage.py:178
Method
ensure_created_at_timezone_aware
Ensure created_at is always timezone-aware UTC.
engine/hindsight_api/engine/reflect/observations.py:78
Method
ensure_entities_list
Ensure entities is always a list (convert None to empty list).
patches/fact_extraction.py:170
Method
ensure_entities_list
(cls, v)
patches/fact_extraction.py:280
Method
ensure_entities_list
(cls, v)
patches/fact_extraction.py:323
Method
ensure_entities_list
Ensure entities is always a list (convert None to empty list).
engine/hindsight_api/engine/retain/fact_extraction.py:170
Method
ensure_entities_list
(cls, v)
engine/hindsight_api/engine/retain/fact_extraction.py:280
Method
ensure_entities_list
(cls, v)
engine/hindsight_api/engine/retain/fact_extraction.py:323
Method
ensure_timezone_aware
Ensure timestamp is always timezone-aware UTC.
engine/hindsight_api/engine/reflect/observations.py:47
Method
evidence_count
Number of evidence items supporting this observation.
engine/hindsight_api/engine/reflect/observations.py:110
Method
evidence_span
Get the time span covered by evidence.
engine/hindsight_api/engine/reflect/observations.py:98
Method
execute_task
Execute a task by routing it to the appropriate handler. This method is called by the task backend to execute tasks. It rece
engine/hindsight_api/engine/memory_engine.py:957
Method
exists
Check if file exists in PostgreSQL.
engine/hindsight_api/engine/storage/postgresql.py:128
Method
exists
(self, key: str)
engine/hindsight_api/engine/storage/gcs.py:97
Method
exists
(self, key: str)
engine/hindsight_api/engine/storage/azure.py:54
Method
exists
(self, key: str)
engine/hindsight_api/engine/storage/s3.py:63
Method
expand_fn
(memory_ids: list[str], depth: str)
engine/hindsight_api/engine/memory_engine.py:5182
Function
extract_entities_batch_optimized
Process LLM-extracted entities for ALL facts in batch. Uses entities provided by the LLM (no spaCy needed), then resolves and links them
engine/hindsight_api/engine/retain/link_utils.py:143
Function
extract_facts
Extract semantic facts from text using LLM. Uses LLM for intelligent fact extraction that: - Filters out social pleasantries and filler
engine/hindsight_api/engine/utils.py:16
Method
file_conversion_max_batch_size_bytes
Get maximum total batch size in bytes.
engine/hindsight_api/config.py:863
Method
for_answer_generation
Create provider for answer generation. Falls back to memory config if not set.
engine/hindsight_api/engine/llm_wrapper.py:690
Method
for_judge
Create provider for judge/evaluator operations. Falls back to memory config if not set.
engine/hindsight_api/engine/llm_wrapper.py:709
Method
for_memory
Create provider for memory operations from environment variables.
engine/hindsight_api/engine/llm_wrapper.py:672
Function
format_entity_summaries_for_prompt
Format entity summaries for inclusion in the reflect prompt. Args: entities: Dict mapping entity name to EntityState objects Returns
engine/hindsight_api/engine/search/think_utils.py:78
Function
forward
(src, dst)
proxy-bridge.py:11
Function
generate_embedding
Generate embedding for text using the provided embeddings backend. Args: embeddings_backend: Embeddings instance to use for encoding
engine/hindsight_api/engine/retain/embedding_utils.py:11
Function
generate_embeddings_batch
Generate embeddings for multiple texts using the provided embeddings backend. Runs the embedding generation in a thread pool to avoid blocki
engine/hindsight_api/engine/retain/embedding_utils.py:29
Function
generate_embeddings_batch
Generate embeddings for a batch of texts. Args: embeddings_model: Embeddings model instance texts: List of text strings to e
engine/hindsight_api/engine/retain/embedding_processing.py:49
Method
get
Get a specific mental model.
engine/hindsight/api_namespaces.py:81
Method
get
Get a specific mental model.
engine/hindsight/client_wrapper.py:80
Method
get
Get a specific directive.
engine/hindsight/client_wrapper.py:135
Function
get_bank
Get the profile of a memory bank. Returns bank metadata including name, disposition, and mission. Args:
engine/hindsight_api/mcp_tools.py:2429
Method
get_bank_profile
Get bank profile including disposition and mission. Args: bank_id: The memory bank ID. request_context: Requ
engine/hindsight_api/engine/interface.py:159
Function
get_bank_stats
Get statistics for a memory bank. Returns counts of nodes, links, and other metrics. Args: bank_id: Optional ba
engine/hindsight_api/mcp_tools.py:2492
Method
get_bank_stats
Get statistics about memory nodes and links for a bank. Args: bank_id: The memory bank ID. request_context:
engine/hindsight_api/engine/interface.py:457
Method
get_chunk
Get a specific chunk. Args: chunk_id: The chunk ID. request_context: Request context for authentication.
engine/hindsight_api/engine/interface.py:407
Method
get_chunks_for_content
Get all chunks for a specific content item.
engine/hindsight_api/engine/retain/types.py:266
Method
get_cpu_times
Get process CPU times.
engine/hindsight_api/metrics.py:459
Function
get_current_api_key
Get the current API key from context.
engine/hindsight_api/api/mcp.py:92
Function
get_current_api_key_id
Get the current api_key_id from context.
engine/hindsight_api/api/mcp.py:102
Function
get_current_bank_id
Get the current bank_id from context.
engine/hindsight_api/api/mcp.py:87
Function
get_current_tenant_id
Get the current tenant_id from context.
engine/hindsight_api/api/mcp.py:97
Function
get_document
Get a specific document by ID. Returns document metadata and associated memory information. Args:
engine/hindsight_api/mcp_tools.py:1987
Method
get_document
Get a specific document. Args: document_id: The document ID. bank_id: The memory bank ID. reques
engine/hindsight_api/engine/interface.py:365
Method
get_download_url
Get download URL for PostgreSQL-stored file. Returns an API endpoint path (not a pre-signed URL since the file is stored in
engine/hindsight_api/engine/storage/postgresql.py:143
Method
get_download_url
(self, key: str, expires_in: int = 3600)
engine/hindsight_api/engine/storage/gcs.py:104
Method
get_download_url
Get a URL for downloading the file. For PostgreSQL storage, this might be a relative API path. For S3, this would be a pre-s
engine/hindsight_api/engine/storage/base.py:69
Method
get_download_url
(self, key: str, expires_in: int = 3600)
engine/hindsight_api/engine/storage/azure.py:61
Method
get_download_url
(self, key: str, expires_in: int = 3600)
engine/hindsight_api/engine/storage/s3.py:70
Method
get_entity
Get entity details including metadata and observations. Args: bank_id: The memory bank ID. entity_id: The en
engine/hindsight_api/engine/interface.py:477
Method
get_entity_by_text
Find an entity by text (for query resolution). Args: bank_id: bank ID entity_text: Entity text to search for
engine/hindsight_api/engine/entity_resolver.py:828
Method
get_entity_state
Get the current state of an entity. NOTE: Entity observations/summaries have been moved to mental models. This method return
engine/hindsight_api/engine/memory_engine.py:5594
Method
get_entry_point_nodes
Get all entry point visits.
engine/hindsight_api/engine/search/trace.py:254
Method
get_facts_for_content
Get all extracted facts for a specific content item.
engine/hindsight_api/engine/retain/types.py:262
Method
get_graph_data
Get graph data for visualization. Args: bank_id: The memory bank ID. fact_type: Filter by fact type.
engine/hindsight_api/engine/interface.py:309
Method
get_hierarchical_fields
DEPRECATED: Use get_configurable_fields() instead. Kept for backward compatibility during migration.
engine/hindsight_api/config.py:895
Method
get_last_weekday
(weekday: int)
engine/hindsight_api/engine/query_analyzer.py:344
Function
get_memory
Get a specific memory by ID. Returns the full memory unit including content, metadata, and timestamps. Args:
engine/hindsight_api/mcp_tools.py:1762
Method
get_memory_engine
Get the memory engine interface. Returns the MemoryEngineInterface for performing memory operations like retain, recall, ref
engine/hindsight_api/extensions/context.py:58
Method
get_memory_engine
Get the memory engine interface.
engine/hindsight_api/extensions/context.py:150
Method
get_memory_usage
Get process memory usage in bytes.
engine/hindsight_api/metrics.py:468
Function
get_mental_model
Get a specific mental model by ID. Returns the full mental model including its generated content, source query,
engine/hindsight_api/mcp_tools.py:888
Method
get_mock_calls
Get the list of recorded mock calls. Returns: List of call records, each containing: - provider: Provide
engine/hindsight_api/engine/providers/mock_llm.py:306
Method
get_nodes_by_link_type
Get all nodes reached via a specific link type.
engine/hindsight_api/engine/search/trace.py:250
Method
get_observation_consolidated
Get a single observation by ID. Args: bank_id: Bank identifier observation_id: Observation ID include_sou
engine/hindsight_api/engine/memory_engine.py:5986
Method
get_open_file_descriptors
Get number of open file descriptors.
engine/hindsight_api/metrics.py:480
Function
get_operation
Get the status of an async operation. Check progress of background tasks like retain processing or mental model refresh.
engine/hindsight_api/mcp_tools.py:2212
Method
get_pool_free_size
Get number of free connections in pool.
engine/hindsight_api/metrics.py:551
Method
get_pool_max_size
Get pool maximum size.
engine/hindsight_api/metrics.py:567
Method
get_pool_min_size
Get pool minimum size.
engine/hindsight_api/metrics.py:559
Method
get_pool_size
Get current pool size.
engine/hindsight_api/metrics.py:543
Function
get_request_context
Extract request context from Authorization header. Supports: - Bearer token: "Bearer <api_key>" - Direct API key: "<
engine/hindsight_api/api/http.py:2021
Method
get_search_path_to_node
Get the path from entry point to a specific node.
engine/hindsight_api/engine/search/trace.py:236
Method
get_thread_count
Get number of active threads.
engine/hindsight_api/metrics.py:494
Method
get_uncached
Get node IDs that haven't been fully loaded yet.
engine/hindsight_api/engine/search/mpfp_retrieval.py:88
Method
get_units_by_entity
Get all units that mention an entity. Args: entity_id: Entity ID limit: Max results Returns:
engine/hindsight_api/engine/entity_resolver.py:803
Function
handle
(client)
proxy-bridge.py:26
Function
handle_document_tracking
Handle document tracking in the database. Args: conn: Database connection bank_id: Bank identifier document_id: Docu
patches/fact_storage.py:208
Function
handle_document_tracking
Handle document tracking in the database. Args: conn: Database connection bank_id: Bank identifier document_id: Docu
engine/hindsight_api/engine/retain/fact_storage.py:208
Method
handler
(args: dict[str, Any])
engine/hindsight_api/engine/providers/claude_code_llm.py:358
Method
health_check
Check the health of the memory system. Returns: Dict with 'status' key ('healthy' or 'unhealthy') and additional info.
engine/hindsight_api/engine/interface.py:32
Function
health_endpoint
Health check endpoint.
engine/hindsight_api/worker/main.py:69
Function
health_endpoint
Health check endpoint that verifies database connectivity. Returns 200 if healthy, 503 if unhealthy.
engine/hindsight_api/api/http.py:2055
Function
hierarchical
Mark a config field as hierarchical (can be overridden per-tenant/bank). Hierarchical fields can be customized at the tenant or bank level v
engine/hindsight_api/config.py:61
Function
http_metrics_middleware
Record HTTP request metrics.
engine/hindsight_api/api/http.py:1978
Method
id
Convenience property to access ID.
engine/hindsight_api/engine/search/types.py:98
Method
id
Convenience property to access ID.
engine/hindsight_api/engine/search/types.py:128
Method
init_cross_encoder
Initialize cross-encoder model.
engine/hindsight_api/engine/memory_engine.py:1534
Method
init_embeddings
Initialize embedding model.
engine/hindsight_api/engine/memory_engine.py:1526
Method
init_query_analyzer
Initialize query analyzer model.
engine/hindsight_api/engine/memory_engine.py:1545
← previous
next →
1,001–1,100 of 1,372, ranked by callers