Canner / WrenAI

🚀 Open-source SQL AI Agent for Text-to-SQL. Make Text2SQL Easy! 🙌
https://getwren.ai/oss
GNU Affero General Public License v3.0
1.73k stars 155 forks source link

feat(wren-ai-service): question based accuracy metric #585

Closed paopa closed 1 month ago

paopa commented 1 month ago

This PR introduces a question-based accuracy metric, where the overall accuracy for a question is set to 1 if any candidate's score is 1. It also fixes the contextual precision metric to ensure scores do not exceed 1 and adds faithfulness to the generation metrics. Additionally, a batch mechanism is implemented to reduce frequent requests to the engine, which helps prevent errors.

Screenshots

image