refiner#
Attributes#
Classes#
Module Contents#
- refiner.log#
- class refiner.JanusRefiner#
- class refiner.FixParserExceptions(llm, parser, max_retries)#
Bases:
JanusRefiner
,langchain.output_parsers.RetryWithErrorOutputParser
- Parameters:
llm (janus.llm.models_info.JanusModel) –
parser (janus.parsers.parser.JanusParser) –
max_retries (int) –
- class refiner.ReflectionRefiner(llm, parser, max_retries, prompt_template_name='refinement/reflection')#
Bases:
JanusRefiner
- Parameters:
llm (janus.llm.models_info.JanusModel) –
parser (janus.parsers.parser.JanusParser) –
max_retries (int) –
prompt_template_name (str) –
- reflection_chain: langchain_core.runnables.RunnableSerializable#
- revision_chain: langchain_core.runnables.RunnableSerializable#
- class refiner.HallucinationRefiner(**kwargs)#
Bases:
ReflectionRefiner