A simple web interface to configure and run promptfoo evaluations for your RAG application.
This tool helps you test and evaluate your RAG (Retrieval-Augmented Generation) application by:
- Letting you configure your RAG API URL and API Key for authentication
- Running tests to check if your RAG responses meet specific criteria
- Showing the evaluation results directly in your browser
- Make sure you have Node.js installed (version 14 or higher)
- Open your terminal/command prompt
- Navigate to this folder
- Run this command to install dependencies:
npm install
- Visit https://aiproxy.sanand.workers.dev/
- Log in with your IITM email ID
- Copy your API token
- In the terminal, run:
node server.js - You should see a message:
Server running on http://localhost:3000
- Open your web browser and go to:
http://localhost:3000 - Enter the API URL of your RAG application (e.g.,
http://localhost:8000/ask) - Enter your API Key from aiproxy.sanand.workers.dev
- Click "Run Evaluation"
- Watch the results appear in real-time
- The tool updates the
checkos.yamlconfiguration file with your:- RAG application API URL (replaces
userapiurlin the YAML) - API key (replaces
userapikeyin the YAML)
- RAG application API URL (replaces
- It then runs
promptfoo evalto test your RAG application against predefined test cases - The results are streamed to your browser in real-time
- Nothing happens after clicking "Run Evaluation": Check that your API key is correct
- Error messages appear: Make sure your RAG application is running and the API URL is correct
- Server won't start: Make sure you've installed all dependencies with
npm install
If you encounter any issues, please check that:
- Your RAG application is running and accessible at the URL you provided
- You're using the correct API key from aiproxy.sanand.workers.dev
- The server is running (you should see "Server running on http://localhost:3000" in your terminal)