nat.plugins.ragas.rag_evaluator.llm_adapter#
Classes#
Expose a NAT-managed LangChain LLM through ragas' native LLM contract. |
Module Contents#
- class NatLangChainRagasLLMAdapter( )#
Bases:
ragas.llms.base.InstructorBaseRagasLLMExpose a NAT-managed LangChain LLM through ragas’ native LLM contract.
Why this adapter exists instead of a new
LLMFrameworkEnumentry:Framework enums model agent/runtime ecosystems (LangChain, LlamaIndex, etc).
ragas’
InstructorBaseRagasLLMis a library-specific scoring interface, not a workflow framework.Keeping the adaptation local avoids expanding global builder/registry surface area for a ragas-only concern while preserving the front-facing LLM configuration model.
- _langchain_llm#
- _llm_name = None#
- static _coerce_output( ) ragas.llms.base.InstructorTypeVar#
- generate( ) ragas.llms.base.InstructorTypeVar#