Home / Class/ QA Class — langchain Architecture

QA Class — langchain Architecture

Architecture documentation for the QA class in config.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  953e988d_ba0b_a27f_626d_2c743d80b980["QA"]
  5528a09f_3682_a8b0_958b_cd9a898b6e3c["SingleKeyEvalConfig"]
  953e988d_ba0b_a27f_626d_2c743d80b980 -->|extends| 5528a09f_3682_a8b0_958b_cd9a898b6e3c
  ba7f9415_541a_d99f_0400_a688a10212b0["config.py"]
  953e988d_ba0b_a27f_626d_2c743d80b980 -->|defined in| ba7f9415_541a_d99f_0400_a688a10212b0

Relationship Graph

Source Code

libs/langchain/langchain_classic/smith/evaluation/config.py lines 177–187

    class QA(SingleKeyEvalConfig):
        """Configuration for a QA evaluator.

        Attributes:
            prompt: The prompt template to use for generating the question.
            llm: The language model to use for the evaluation chain.
        """

        evaluator_type: EvaluatorType = EvaluatorType.QA
        llm: BaseLanguageModel | None = None
        prompt: BasePromptTemplate | None = None

Frequently Asked Questions

What is the QA class?
QA is a class in the langchain codebase, defined in libs/langchain/langchain_classic/smith/evaluation/config.py.
Where is QA defined?
QA is defined in libs/langchain/langchain_classic/smith/evaluation/config.py at line 177.
What does QA extend?
QA extends SingleKeyEvalConfig.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free