Create Memory
API Reference
Memories
添加记忆 - 异步队列处理
记忆添加操作通过 Celery 队列异步处理,防止 LLM 被打爆。 返回 task_id 可用于查询处理状态。
POST
Create Memory
The Memories API allows you to store, retrieve, search, and manage memories for your AI applications.
Create Memory
Create a new memory. The memory is processed asynchronously with AI classification.The memory content to store
Project ID for organizing memories
Additional metadata for the memory
Request
Response
List Memories
Retrieve all memories for the authenticated user.Filter by project ID
Maximum number of results
Number of results to skip
Request
Response
Get Memory
Retrieve a specific memory by ID.Delete Memory
Delete a memory by ID.Response
Search Memories
Search memories using vector similarity and keyword matching.Search query string
Filter by project ID
Maximum number of results
Request
Response
Cognitive Sectors
Memories are automatically classified into cognitive sectors:| Sector | Description | Example |
|---|---|---|
episodic | Specific events/experiences | ”User visited Paris in 2024” |
semantic | Facts and general knowledge | ”User prefers dark mode” |
procedural | Skills and how-to knowledge | ”User knows Python” |
emotional | Feelings and preferences | ”User enjoys sci-fi movies” |
reflective | Insights and summaries | ”User values privacy” |