Skip to main content

Module model

Module model 

Source
Expand description

Core data types shared across the pipeline: documents, chunks, scored hits.

Structs§

Chunk
One retrievable chunk of a document.
Document
A source document, stored once with its metadata. Its text lives in Chunks.
Scored
A retrieval hit: a chunk plus the score that ranked it.

Enums§

RetrievalMode
The retrieval strategy to run for a query.

Functions§

content_hash
sha256 hex digest of the given bytes — used for document dedup.
new_id
Generate a fresh hyphenated UUID v4.
now_rfc3339
Current time as an RFC-3339 string, without pulling in chrono.