ragflow/rag
Adrian Altermatt 31d2b3cb5a
Fix: Grammar and clarity improvements in prompt templates (#8023)
## 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>
2025-06-03 19:41:59 +08:00
..
app Fix: Unnecessary truncation in markdown parser (#7972) 2025-05-30 15:04:21 +08:00
llm Fix: url path join issue. (#8013) 2025-06-03 14:18:40 +08:00
nlp Fix: order chunks from docx by positions. (#7979) 2025-05-30 17:20:53 +08:00
res Update synonym dictionary file (#7997) 2025-06-03 09:41:53 +08:00
svr Perf: reduce upload to minio limiter scope (#7878) 2025-05-27 17:49:37 +08:00
utils Fix: Opensearch chunk management (#7802) 2025-05-26 16:57:58 +08:00
__init__.py Update comments (#4569) 2025-01-21 20:52:28 +08:00
benchmark.py Refactor embedding batch_size (#3825) 2024-12-03 16:22:39 +08:00
prompts.py Fix: Grammar and clarity improvements in prompt templates (#8023) 2025-06-03 19:41:59 +08:00
raptor.py <think> tag is missing. (#7256) 2025-04-24 11:44:10 +08:00
settings.py set PARALLEL_DEVICES default value= 0 (#7935) 2025-05-29 13:32:16 +08:00