rlancemartin/auto-evaluator
Auto-evaluator :brain: :memo:
This is a lightweight evaluation tool for question-answering using Langchain to:
- Ask the user to input a set of documents of interest
- Apply an LLM (
GPT-3.5-turbo) to auto-generatequestion-answerpairs from these docs
- Generate a question-answering chain with a specified set of UI-chosen configurations
- Use the chain to generate a response to each
question
- Use an LLM (
GPT-3.5-turbo) to score the response relative to theanswer
- Explore scoring across various chain configurations
Run as Streamlit app
pip install -r requirements.txt
streamlit run auto-evaluator.py
Inputs
num_eval_questions - Number of questions to auto-generate (if the user does not supply an eval set)
split_method - Method for text splitting
chunk_chars - Chunk size for text splitting
overlap - Chunk overlap for text splitting
embeddings - Embedding method for chunks
retriever_type - Chunk retrieval method
num_neighbors - Neighbors for retrieval
model - LLM for summarization of retrieved chunks
grade_prompt - Prompt choice for model self-grading
Blog
https://blog.langchain.dev/auto-eval-of-question-answering-tasks/
UI

Hosted app
See: https://github.com/langchain-ai/auto-evaluator
And: https://autoevaluator.langchain.com/
Disclaimer
