GroundTruthGenerator

org.llm4s.rag.benchmark.GroundTruthGenerator
See theGroundTruthGenerator companion class

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

Create a generator with default options.

Create a generator with default options.

Attributes

Create a generator with custom options.

Create a generator with custom options.

Attributes

def generateAndSave(llmClient: LLMClient, documents: Seq[(String, String)], outputPath: String, questionsPerDoc: Int, datasetName: String): Result[Unit]

Generate and save a dataset in one call.

Generate and save a dataset in one call.

Value parameters

datasetName

Dataset name

documents

Source documents

llmClient

LLM client

outputPath

Output JSON file path

questionsPerDoc

QA pairs per document

Attributes

Returns

Unit or error