Documentation
Learn how to use Compozy
Learn about the parameters and definitions of memory in Compozy.
{ "type": "object", "required": ["id", "vector"], "properties": { "id": { "type": "string", "description": "Unique identifier for the memory" }, "storage": { "type": "object", "properties": { "use": { "type": "string", "description": "Storage implementation reference" }, "config": { "type": "object", "description": "Storage-specific configuration" } }, "required": ["use", "config"] }, "vector": { "type": "object", "properties": { "use": { "type": "string", "description": "Vector store implementation reference" }, "dimensions": { "type": "number", "description": "Vector dimensions for embeddings" }, "config": { "type": "object", "description": "Vector store configuration" } }, "required": ["use", "dimensions", "config"] }, "embedder": { "type": "object", "properties": { "use": { "type": "string", "description": "Embedder implementation reference" }, "config": { "type": "object", "description": "Embedder-specific configuration" } }, "required": ["use", "config"] }, "options": { "type": "object", "properties": { "lastMessages": { "type": "number", "description": "Number of recent messages to include" }, "semanticRecall": { "type": "object", "properties": { "enabled": { "type": "boolean", "default": true }, "maxResults": { "type": "number", "default": 5 } } }, "workingMemory": { "type": "object", "properties": { "enabled": { "type": "boolean", "default": false }, "template": { "type": "string", "description": "XML template for structured memory" } } } } } } }
Show Properties
"compozy/storage:postgres"
url
token
path
"compozy/vector:pg-vector"
apiKey
"compozy/embedder:openai"
model
project
enabled
maxResults
template
{ "thread_id": "thread_123", "messages": [ { "role": "user", "content": "Hello!", "timestamp": "2024-03-20T10:30:00Z" } ], "metadata": { "created_at": "2024-03-20T10:30:00Z", "updated_at": "2024-03-20T10:30:00Z" } }
[ { "role": "user", "content": "What's the weather?", "timestamp": "2024-03-20T10:29:00Z" }, { "role": "assistant", "content": "It's sunny today.", "timestamp": "2024-03-20T10:29:30Z" } ]
[ { "content": "Previous relevant conversation", "similarity": 0.92, "timestamp": "2024-03-19T15:45:00Z", "metadata": { "thread_id": "thread_122" } } ]