IndexedChunk

org.llm4s.rag.IndexedChunk
final case class IndexedChunk(id: String, index: Int, content: String)

A chunk as RAG indexed it: the id its records are stored under, which is the id a search result for it carries.

Value parameters

content

the chunk's text

id

the stored id: <documentId>-chunk-<index>, or, in a collection of a permission-aware SearchIndex, the id that index gives it (coll-<collectionId>-<documentId>-chunk-<index> for PgSearchIndex)

index

the chunk's position in its document, from 0

Attributes

Source
RAGTypes.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product