Skip to main content

Module generation

Module generation 

Source
Expand description

Text generation and LLM interactions (async feature only) Answer generation from retrieval results.

Synthesises natural-language answers by feeding retrieved chunks and graph context to a LanguageModel, over the GenerationParams knobs.

Modules§

async_mock_llm
Async implementation of MockLLM demonstrating async trait patterns

Structs§

AnswerContext
Context information assembled from search results
AnswerGenerator
Main answer generator that orchestrates the response generation process
GeneratedAnswer
Generated answer with metadata
GenerationConfig
Configuration for answer generation
GeneratorStatistics
Statistics about the answer generator
MockLLM
Simple mock LLM implementation for testing
PromptTemplate
Template system for constructing context-aware prompts
SourceAttribution
Source attribution for generated answers

Enums§

AnswerMode
Different modes for answer generation

Traits§

LLMInterface
Mock LLM interface for testing without external dependencies