Memories API
Create Memory
Create a new memory (graph or vector)
POST
/
memories
/
create
curl --request POST \
--url https://api.duohub.ai/memories/create \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"name": "Historical Knowledge Base",
"description": "Cultural memory for historical facts",
"memoryType": "graph",
"ontology": "cultural",
"chunkSize": 250,
"chunkOverlap": 10,
"webhookUrl": "https://api.example.com/webhook",
"acceleration": false,
"factExtraction": false
}'
{
"status": "success",
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Historical Knowledge Base",
"description": "Cultural memory for historical facts",
"memoryType": "graph",
"userID": "user123",
"graphDBName": "987fcdeb-51a2-43b7-91fa-987654321000",
"vectorDBCollection": "456e7890-c12d-34e5-b678-426614174000",
"adapterRepo": "cultural_rdf_graph",
"adapterVersion": 1,
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-01T00:00:00.000Z",
"step": "select",
"chunkSize": 1000,
"chunkOverlap": 200,
"factExtraction": false,
"acceleration": false
}
}
Authorizations
Your duohub API key. Type: str
Body
application/json
Response
201
application/json
Memory created successfully
The response is of type object
.
curl --request POST \
--url https://api.duohub.ai/memories/create \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"name": "Historical Knowledge Base",
"description": "Cultural memory for historical facts",
"memoryType": "graph",
"ontology": "cultural",
"chunkSize": 250,
"chunkOverlap": 10,
"webhookUrl": "https://api.example.com/webhook",
"acceleration": false,
"factExtraction": false
}'
{
"status": "success",
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Historical Knowledge Base",
"description": "Cultural memory for historical facts",
"memoryType": "graph",
"userID": "user123",
"graphDBName": "987fcdeb-51a2-43b7-91fa-987654321000",
"vectorDBCollection": "456e7890-c12d-34e5-b678-426614174000",
"adapterRepo": "cultural_rdf_graph",
"adapterVersion": 1,
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-01T00:00:00.000Z",
"step": "select",
"chunkSize": 1000,
"chunkOverlap": 200,
"factExtraction": false,
"acceleration": false
}
}
Assistant
Responses are generated using AI and may contain mistakes.