Skip to main content

Module knowledge

Module knowledge 

Source
Expand description

Knowledge base — document ingestion, chunking, and vector or BM25 retrieval.

Modules§

chunker
Document chunker — splits large documents into overlapping text chunks for indexing.
in_memory
In-memory knowledge base backed by BM25 scoring.
loader
Document loader — reads plain text, Markdown, and PDF files into the knowledge base.
tools
Knowledge base tool definitions for agent document retrieval.

Structs§

Chunk
Atomic search unit: a slice of a document.
DocumentSource
Provenance of a document chunk.
KnowledgeQuery
Query parameters for knowledge search.
SearchResult
A single search result with relevance info.

Traits§

KnowledgeBase
Trait for knowledge base implementations.