MCPcopy Create free account

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

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

Functiondowngrade
Remove 'directive' from mental_models subtype constraint.
engine/hindsight_api/alembic/versions/k6f7g8h9i0j1_add_directive_subtype.py:43
Functiondowngrade
()
engine/hindsight_api/alembic/versions/b3c4d5e6f7g8_add_temporal_date_indexes.py:61
Functiondrop_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
Methodencode
Generate embeddings for a list of texts. Args: texts: List of text strings to encode Returns: List
engine/hindsight_api/engine/embeddings.py:191
Methodencode
Generate embeddings using the remote TEI server. Args: texts: List of text strings to encode Returns:
engine/hindsight_api/engine/embeddings.py:326
Methodencode
Generate embeddings using the OpenAI API. Args: texts: List of text strings to encode Returns: List
engine/hindsight_api/engine/embeddings.py:448
Methodencode
Generate embeddings using the Cohere API. Args: texts: List of text strings to encode Returns: List
engine/hindsight_api/engine/embeddings.py:575
Methodencode
Generate embeddings using the LiteLLM proxy. Args: texts: List of text strings to encode Returns: L
engine/hindsight_api/engine/embeddings.py:689
Methodencode
Generate embeddings using the LiteLLM SDK. Args: texts: List of text strings to encode Returns: Lis
engine/hindsight_api/engine/embeddings.py:816
Functionensure_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
Functionensure_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
Methodensure_created_at_timezone_aware
Ensure created_at is always timezone-aware UTC.
engine/hindsight_api/engine/reflect/observations.py:78
Methodensure_entities_list
Ensure entities is always a list (convert None to empty list).
patches/fact_extraction.py:170
Methodensure_entities_list
(cls, v)
patches/fact_extraction.py:280
Methodensure_entities_list
(cls, v)
patches/fact_extraction.py:323
Methodensure_entities_list
Ensure entities is always a list (convert None to empty list).
engine/hindsight_api/engine/retain/fact_extraction.py:170
Methodensure_entities_list
(cls, v)
engine/hindsight_api/engine/retain/fact_extraction.py:280
Methodensure_entities_list
(cls, v)
engine/hindsight_api/engine/retain/fact_extraction.py:323
Methodensure_timezone_aware
Ensure timestamp is always timezone-aware UTC.
engine/hindsight_api/engine/reflect/observations.py:47
Methodevidence_count
Number of evidence items supporting this observation.
engine/hindsight_api/engine/reflect/observations.py:110
Methodevidence_span
Get the time span covered by evidence.
engine/hindsight_api/engine/reflect/observations.py:98
Methodexecute_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
Methodexists
Check if file exists in PostgreSQL.
engine/hindsight_api/engine/storage/postgresql.py:128
Methodexists
(self, key: str)
engine/hindsight_api/engine/storage/gcs.py:97
Methodexists
(self, key: str)
engine/hindsight_api/engine/storage/azure.py:54
Methodexists
(self, key: str)
engine/hindsight_api/engine/storage/s3.py:63
Methodexpand_fn
(memory_ids: list[str], depth: str)
engine/hindsight_api/engine/memory_engine.py:5182
Functionextract_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
Functionextract_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
Methodfile_conversion_max_batch_size_bytes
Get maximum total batch size in bytes.
engine/hindsight_api/config.py:863
Methodfor_answer_generation
Create provider for answer generation. Falls back to memory config if not set.
engine/hindsight_api/engine/llm_wrapper.py:690
Methodfor_judge
Create provider for judge/evaluator operations. Falls back to memory config if not set.
engine/hindsight_api/engine/llm_wrapper.py:709
Methodfor_memory
Create provider for memory operations from environment variables.
engine/hindsight_api/engine/llm_wrapper.py:672
Functionformat_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
Functionforward
(src, dst)
proxy-bridge.py:11
Functiongenerate_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
Functiongenerate_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
Functiongenerate_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
Methodget
Get a specific mental model.
engine/hindsight/api_namespaces.py:81
Methodget
Get a specific mental model.
engine/hindsight/client_wrapper.py:80
Methodget
Get a specific directive.
engine/hindsight/client_wrapper.py:135
Functionget_bank
Get the profile of a memory bank. Returns bank metadata including name, disposition, and mission. Args:
engine/hindsight_api/mcp_tools.py:2429
Methodget_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
Functionget_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
Methodget_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
Methodget_chunk
Get a specific chunk. Args: chunk_id: The chunk ID. request_context: Request context for authentication.
engine/hindsight_api/engine/interface.py:407
Methodget_chunks_for_content
Get all chunks for a specific content item.
engine/hindsight_api/engine/retain/types.py:266
Methodget_cpu_times
Get process CPU times.
engine/hindsight_api/metrics.py:459
Functionget_current_api_key
Get the current API key from context.
engine/hindsight_api/api/mcp.py:92
Functionget_current_api_key_id
Get the current api_key_id from context.
engine/hindsight_api/api/mcp.py:102
Functionget_current_bank_id
Get the current bank_id from context.
engine/hindsight_api/api/mcp.py:87
Functionget_current_tenant_id
Get the current tenant_id from context.
engine/hindsight_api/api/mcp.py:97
Functionget_document
Get a specific document by ID. Returns document metadata and associated memory information. Args:
engine/hindsight_api/mcp_tools.py:1987
Methodget_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
Methodget_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
Methodget_download_url
(self, key: str, expires_in: int = 3600)
engine/hindsight_api/engine/storage/gcs.py:104
Methodget_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
Methodget_download_url
(self, key: str, expires_in: int = 3600)
engine/hindsight_api/engine/storage/azure.py:61
Methodget_download_url
(self, key: str, expires_in: int = 3600)
engine/hindsight_api/engine/storage/s3.py:70
Methodget_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
Methodget_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
Methodget_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
Methodget_entry_point_nodes
Get all entry point visits.
engine/hindsight_api/engine/search/trace.py:254
Methodget_facts_for_content
Get all extracted facts for a specific content item.
engine/hindsight_api/engine/retain/types.py:262
Methodget_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
Methodget_hierarchical_fields
DEPRECATED: Use get_configurable_fields() instead. Kept for backward compatibility during migration.
engine/hindsight_api/config.py:895
Methodget_last_weekday
(weekday: int)
engine/hindsight_api/engine/query_analyzer.py:344
Functionget_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
Methodget_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
Methodget_memory_engine
Get the memory engine interface.
engine/hindsight_api/extensions/context.py:150
Methodget_memory_usage
Get process memory usage in bytes.
engine/hindsight_api/metrics.py:468
Functionget_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
Methodget_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
Methodget_nodes_by_link_type
Get all nodes reached via a specific link type.
engine/hindsight_api/engine/search/trace.py:250
Methodget_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
Methodget_open_file_descriptors
Get number of open file descriptors.
engine/hindsight_api/metrics.py:480
Functionget_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
Methodget_pool_free_size
Get number of free connections in pool.
engine/hindsight_api/metrics.py:551
Methodget_pool_max_size
Get pool maximum size.
engine/hindsight_api/metrics.py:567
Methodget_pool_min_size
Get pool minimum size.
engine/hindsight_api/metrics.py:559
Methodget_pool_size
Get current pool size.
engine/hindsight_api/metrics.py:543
Functionget_request_context
Extract request context from Authorization header. Supports: - Bearer token: "Bearer <api_key>" - Direct API key: "<
engine/hindsight_api/api/http.py:2021
Methodget_search_path_to_node
Get the path from entry point to a specific node.
engine/hindsight_api/engine/search/trace.py:236
Methodget_thread_count
Get number of active threads.
engine/hindsight_api/metrics.py:494
Methodget_uncached
Get node IDs that haven't been fully loaded yet.
engine/hindsight_api/engine/search/mpfp_retrieval.py:88
Methodget_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
Functionhandle
(client)
proxy-bridge.py:26
Functionhandle_document_tracking
Handle document tracking in the database. Args: conn: Database connection bank_id: Bank identifier document_id: Docu
patches/fact_storage.py:208
Functionhandle_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
Methodhandler
(args: dict[str, Any])
engine/hindsight_api/engine/providers/claude_code_llm.py:358
Methodhealth_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
Functionhealth_endpoint
Health check endpoint.
engine/hindsight_api/worker/main.py:69
Functionhealth_endpoint
Health check endpoint that verifies database connectivity. Returns 200 if healthy, 503 if unhealthy.
engine/hindsight_api/api/http.py:2055
Functionhierarchical
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
Functionhttp_metrics_middleware
Record HTTP request metrics.
engine/hindsight_api/api/http.py:1978
Methodid
Convenience property to access ID.
engine/hindsight_api/engine/search/types.py:98
Methodid
Convenience property to access ID.
engine/hindsight_api/engine/search/types.py:128
Methodinit_cross_encoder
Initialize cross-encoder model.
engine/hindsight_api/engine/memory_engine.py:1534
Methodinit_embeddings
Initialize embedding model.
engine/hindsight_api/engine/memory_engine.py:1526
Methodinit_query_analyzer
Initialize query analyzer model.
engine/hindsight_api/engine/memory_engine.py:1545
← previousnext →1,001–1,100 of 1,372, ranked by callers