mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-06-04 11:24:00 +08:00

## Summary Fixed grammar errors and improved clarity in prompt templates throughout `rag/prompts.py`. ## Changes Made - **Fixed incomplete sentence**: `"If the user's latest question is completely, don't do anything"` → `"If the user's latest question is already complete, don't do anything"` - **Improved phrasing**: `"of like [ID:i]"` → `"such as [ID:i]"` - **Added missing articles**: `"give top 3"` → `"give the top 3"` - **Fixed prepositions**: `"in language of"` → `"in the same language as"` - **Corrected spelling**: `"Jappanese"` → `"Japanese"` - **Standardized formatting**: Consistent role descriptions and punctuation ## Impact These changes improve prompt readability and should make instructions clearer for the underlying language models. ## Test Plan - [x] Verified changes maintain original prompt functionality - [x] No breaking changes to prompt structure or expected outputs Co-authored-by: Adrian Altermatt <adrian.altermatt@fgcz.uzh.ch>