TextLoader

org.llm4s.rag.loader.TextLoader
See theTextLoader companion class
object TextLoader

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
TextLoader.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(content: String, id: String): TextLoader

Create from a single content string with ID

Create from a single content string with ID

Attributes

def apply(content: String): TextLoader

Create from content with auto-generated ID

Create from content with auto-generated ID

Attributes

def apply(content: String, id: String, metadata: Map[String, String]): TextLoader

Create from content, ID, and metadata

Create from content, ID, and metadata

Attributes

Create a builder for fluent construction

Create a builder for fluent construction

Attributes

def fromContents(contents: String*): TextLoader

Create from content strings with auto-generated IDs

Create from content strings with auto-generated IDs

Attributes

def fromMap(map: Map[String, String]): TextLoader

Create from a map of ID -> content

Create from a map of ID -> content

Attributes

def fromPairs(pairs: (String, String)*): TextLoader

Create from ID-content pairs

Create from ID-content pairs

Attributes

Concrete fields

Empty loader

Empty loader

Attributes