LoadResult

org.llm4s.rag.loader.LoadResult
See theLoadResult companion trait
object LoadResult

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
LoadResult.type

Members list

Type members

Classlikes

final case class Failure(source: String, error: LLMError, recoverable: Boolean) extends LoadResult

Failed to load document.

Failed to load document.

Value parameters

error

The error that occurred

recoverable

Whether the error is potentially recoverable (e.g., timeout)

source

Identifier for the failed source (path, URL, etc.)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait LoadResult
class Object
trait Matchable
class Any
Show all
final case class Skipped(source: String, reason: String) extends LoadResult

Document was intentionally skipped.

Document was intentionally skipped.

Value parameters

reason

Why the document was skipped

source

Identifier for the skipped source

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait LoadResult
class Object
trait Matchable
class Any
Show all
final case class Success(document: Document) extends LoadResult

Successfully loaded document.

Successfully loaded document.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait LoadResult
class Object
trait Matchable
class Any
Show all

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 failure(source: String, error: LLMError): LoadResult
def skipped(source: String, reason: String): LoadResult