ContextFormatter

org.llm4s.rag.ContextFormatter
See theContextFormatter companion trait
@Experimental

Attributes

Companion
trait
Source
RAGAnswerContext.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete fields

The content alone, with no metadata.

The content alone, with no metadata.

Attributes

Source
RAGAnswerContext.scala

source:, title: and heading: lines where the chunk's metadata has them, a blank line, then the content. The source is the first of the metadata's url, source and chunk.sourceFile (a crawled page's source is web-crawler, so its url comes first), the heading the chunk's heading path joined with >.

source:, title: and heading: lines where the chunk's metadata has them, a blank line, then the content. The source is the first of the metadata's url, source and chunk.sourceFile (a crawled page's source is web-crawler, so its url comes first), the heading the chunk's heading path joined with >.

Attributes

Source
RAGAnswerContext.scala