Mem0OSSGetAll
Python template · sinapsis_mem0.templates.oss.get_all
Overview
Template to retrieve all scoped memories from OSS Mem0.
Template attributes take precedence over packet identity when both are available.
Capabilities
Capabilities: not setInstallation
Install the published package using pip or uv.
pip install sinapsis-mem0==1.0.0uv pip install sinapsis-mem0==1.0.0uv add sinapsis-mem0==1.0.0Configuration
Effective fields from the inspector schema, including nested Pydantic model fields.
Explicit retrieval scope and filters.
Optional
Default: null
Maximum number of memories to retrieve.
Optional
Default: 100
Optional run scope.
Optional
Default: null
Optional Mem0 filters.
Optional
Default: null
Optional user scope.
Optional
Default: null
Optional agent scope.
Optional
Default: null
Optional
Default: null
Optional
Default: null
Configuration for the language model
Optional
Default: null
Configuration for the specific LLM
Optional
Default: {}
Provider of the LLM (e.g., 'ollama', 'openai')
Optional
Default: "openai"
The version of the API
Optional
Default: "v1.1"
Configuration for the embedding model
Optional
Default: null
Configuration for the specific embedding model
Optional
Default: {}
Provider of the embedding model (e.g., 'ollama', 'openai')
Optional
Default: "openai"
Configuration for the reranker
Optional
Default: null
Provider-specific reranker configuration
Optional
Default: null
Reranker provider (e.g., 'cohere', 'sentence_transformer')
Optional
Default: "cohere"
Configuration for the vector store
Optional
Default: null
Configuration for the specific vector store
Optional
Default: null
Provider of the vector store (e.g., 'qdrant', 'chroma', 'upstash_vector')
Optional
Default: "qdrant"
Path to the history database
Optional
Default: "/home/ariel/.mem0/history.db"
Custom instructions for fact extraction
Optional
Default: null
Configuration example
Example from the Python docstring:
agent:
name: my_test_agent
templates:
- template_name: InputTemplate
class_name: InputTemplate
attributes: {}
- template_name: Mem0OSSGetAll
class_name: Mem0OSSGetAll
template_input: InputTemplate
attributes:
memory_config:
vector_store:
provider: qdrant
config: null
llm:
provider: openai
config: {}
embedder:
provider: openai
config: {}
history_db_path: /path/to/.mem0/history.db
graph_store:
provider: neo4j
config:
url: null
username: null
password: null
database: null
base_label: null
llm: null
custom_prompt: null
version: v1.1
custom_fact_extraction_prompt: null
custom_update_memory_prompt: null
get_args:
user_id: null
run_id: null
agent_id: null
filters: null
limit: 100Show schema-based configuration skeleton
templates:
- template_name: "Mem0OSSGetAll"
class_name: "Mem0OSSGetAll"
attributes:
get_args:
limit: 100
run_id: null
filters: null
user_id: null
agent_id: null
memory_config:
llm:
config: {}
provider: "openai"
version: "v1.1"
embedder:
config: {}
provider: "openai"
reranker:
config: null
provider: "cohere"
vector_store:
config: null
provider: "qdrant"
history_db_path: "/home/ariel/.mem0/history.db"
custom_instructions: null
Inheritance
sinapsis_mem0.templates.oss.base.Mem0OSSBaseEnvironment variables
Environment definitions belong to their canonical Python modules.
No directly related environment variables listed.