Load documents from raw text content.
Useful for:
- Programmatically created content
- Database records
- API responses
- Testing
Value parameters
- documents
-
Documents to load
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait DocumentLoaderclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Human-readable description of this loader.
Human-readable description of this loader.
Used for logging and debugging.
Attributes
Estimated number of documents (if known).
Estimated number of documents (if known).
Used for progress reporting and resource allocation. Returns None if count is unknown or expensive to compute.
Attributes
- Definition Classes
Load documents from this source.
Load documents from this source.
Returns an iterator of LoadResult for streaming large document sets. Each result is either a successfully loaded document or a loading error. This allows processing to continue even when some documents fail.
Attributes
- Returns
-
Iterator of load results (successes and failures)
Add a document
Add a document
Attributes
Add a document from content and ID
Add a document from content and ID
Attributes
Add metadata to all documents
Add metadata to all documents
Attributes
Inherited methods
Combine this loader with another.
Combine this loader with another.
Creates a composite loader that loads from both sources.
Attributes
- Inherited from:
- DocumentLoader
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product