Ingest text content into Cerebe's Knowledge Graph. The system automatically extracts entities and relationships using Graphiti, building a temporal knowledge graph that evolves over time.
from cerebe import AsyncCerebeclient = AsyncCerebe(api_key="ck_live_...")result = await client.knowledge.ingest( content="Alice is a senior engineer at Acme Corp. She mentors Bob, who joined the team in January.", entity_id="team_alpha", source="onboarding_notes",)print(result)# → {"entities_created": 3, "relationships_created": 2, "status": "completed"}
import Cerebe from '@cerebe/sdk'const client = new Cerebe({ apiKey: 'ck_live_...' })const result = await client.knowledge.ingest({ content: 'Alice is a senior engineer at Acme Corp. She mentors Bob, who joined the team in January.', entityId: 'team_alpha', source: 'onboarding_notes',})console.log(result)// → { entitiesCreated: 3, relationshipsCreated: 2, status: "completed" }
curl -X POST https://api.cerebe.ai/api/v1/knowledge/ingest \ -H "X-API-Key: ck_live_..." \ -H "Content-Type: application/json" \ -d '{ "content": "Alice is a senior engineer at Acme Corp. She mentors Bob, who joined the team in January.", "entity_id": "team_alpha", "source": "onboarding_notes" }'