org.llm4s.rag.loader.Document
See theDocument companion object
final case class Document(id: String, content: String, metadata: Map[String, String], hints: Option[DocumentHints], version: Option[DocumentVersion])
A document ready for RAG ingestion.
Documents represent content from any source (files, URLs, databases, APIs) in a normalized form ready for chunking and embedding.
Value parameters
- content
-
The text content of the document
- hints
-
Optional processing hints suggested by the loader
- id
-
Unique identifier for this document
- metadata
-
Key-value metadata (source, author, timestamp, etc.)
- version
-
Optional version for change detection
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article