ListingFailure

org.llm4s.rag.loader.LoadResult.ListingFailure
final case class ListingFailure(source: String, error: LLMError) extends LoadResult

The loader could not enumerate its documents: an S3 listing that failed (no credentials, missing bucket, access denied), a directory that does not exist.

Unlike Failure, this is not about one document. The set of documents the loader would have produced is unknown, so it cannot be counted as one failed document among successes: RAG.ingest, RAG.sync and RAG.refresh (and their async forms) return its error as a Left, and sync deletes nothing, rather than treat every indexed document as gone. A listing that fails part-way through (a later S3 page) is reported the same way, after the documents that were listed before it.

Value parameters

error

The error that occurred

source

The source that could not be listed (e.g. S3(s3://bucket/prefix), a path)

Attributes

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

Members list

Value members

Concrete methods

def isSuccess: Boolean

Inherited methods

def isFailure: Boolean

Attributes

Inherited from:
LoadResult
def isSkipped: Boolean

Attributes

Inherited from:
LoadResult
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def toOption: Option[Document]

Get document if successful

Get document if successful

Attributes

Inherited from:
LoadResult