## 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> |
||
|---|---|---|
| .. | ||
| app | ||
| llm | ||
| nlp | ||
| res | ||
| svr | ||
| utils | ||
| __init__.py | ||
| benchmark.py | ||
| prompts.py | ||
| raptor.py | ||
| settings.py | ||