Introducing Rubrics: Build Agents that Evaluate and Correct Their Work

Langchain··Submitted by Mads Kristian Nylund
AI InfrastructureAI-agentsAI Evaluation

RubricMiddleware enables agents to self-evaluate and iteratively refine their outputs to meet specific criteria, addressing the issue of outputs that pass general checks but fail detailed requirements. It uses a grader sub-agent to provide feedback and ensure all rubric criteria are satisfied, offering greater flexibility than previous implementations. The middleware allows for defining a rubric once and applying it to an agent, with the grader reviewing the agent's output and iterating until all criteria are met or a configured number of attempts are reached.

Read Article

More from Langchain

Related Articles