Skip to documentation
Docs navigation
Docs/ingestText()
MemoGrafter

ingestText()

Convert raw text into topic and memory nodes.

What it does

Convert raw text into topic and memory nodes.

Raw text ingestion is useful for notes, documents, and external knowledge. The text is segmented and extracted into the same graph model used for conversational memory.

Signature

TypeScript
ingestText(text: string, sessionId: string, options?: IngestTextOptions & IngestOptions): Promise<TopicNode[]>

Parameters

text (string) — Raw text to analyze and convert into memories.
sessionId (string) — The application-owned session whose memory should be read or changed.
options? (IngestTextOptions & IngestOptions) — Optional limits, filters, tags, or operation-specific behavior.

Result

The topic nodes created, selected, or copied by the operation.

Example

example.ts
await memo.ingestText(note, "project-a", { label: "Roadmap" });