Ingest & parse¶
Ingestion operations¶
Start with a stable document identity, commit source changes through sync, then parse sections or semantic atoms. Feed the committed current state into dependency-aware updates so retrieval and derived knowledge share the same source revisions.
Input |
Operation |
Output |
|---|---|---|
Provider APIs and event notifications |
Poll or stream canonical source changes |
|
Completed source pages |
Reconcile against prior snapshot |
Ordered upsert/delete plan and next cursor |
Documents |
Parse and resolve evidence |
Typed facts, answers, decisions, summaries, links |
PDFs, slides, and spreadsheets |
Preserve pages, regions, tables, figures, and derived representations |
|
Source repositories |
Preserve symbols and structural relations |
|
Markdown bodies |
Split and fingerprint |
Stable |
Parsed Markdown |
Extract stable semantic units |
Paragraph, list-item, table-row, code, and fallback atoms |
Function map¶
Function |
Required inputs |
Principal options |
Returns |
|---|---|---|---|
|
Text, artifact ID, revision |
Table parsing, fence recovery, parser ID |
|
|
Text, artifact ID, revision |
Parser ID |
Blocks and expanded table cells with raw spans |
|
Text, source ID, revision |
Delimiter detection, quote character, header, identity fields, strict width |
Independently accepted records and positioned issues |
|
Text, source ID, revision |
Identity fields, parser ID |
Positioned fields. Malformed siblings remain issues |
|
JSON array text, source ID, revision |
Identity fields, parser ID |
Positioned object records and member-specific issues |
|
Source, repository, revision, path |
Parser ID |
Symbols, definition/call edges, unresolved or ambiguous references |
|
Prior state, page, source, mode |
Full or incremental semantics |
Side-effect-free mutations and proposed next state |
Example ingestion flow
Source event |
Connector output |
Sync plan |
Parser work |
|---|---|---|---|
New file |
Upsert document |
Insert stable ID and revision |
Parse every section |
Edited section |
Upsert new revision |
Replace prior revision |
Reparse source structure, then select changed derivations |
Deleted file |
Tombstone |
Delete source document |
Invalidate derived artifacts |