Document
A document to ingest into the knowledge graph.
Usage
Document(
title,
content,
source="",
metadata=dict(),
)Parameters
title: str-
Human-readable title or filename.
content: str-
Full text content of the document.
source: str = ""-
Origin identifier (file path, URL, connector name).
metadata: dict[str, Any] = dict()- Arbitrary key-value metadata (folder, tags, dates, etc.).
Examples
import talk_box as tb
doc = tb.Document(
title="README.md",
content="# My Project\nThis is a project.",
source="/path/to/README.md",
)
doc.title # "README.md"