ragflow/api/db/services
Jason Lee c981a57616
fix: Reference markers in the context may be carried over into the next answer (#1855)
The answer in the context carries reference markers and passes them to
the large model, which may include the markers in the new answer,
leading to abnormal reference points.
```
 {'role': 'assistant', 'content': '设置在地下或半地下空间 ##0$$。'}
```

![image](https://github.com/user-attachments/assets/bcfdb3fc-7b54-44cb-ab70-2f9b715d06b8)

### What problem does this PR solve?

_Briefly describe what this PR aims to solve. Include background context
that will help reviewers understand the purpose of the PR._

### Type of change

- Bug Fix (non-breaking change which fixes an issue)
2024-08-08 12:25:57 +08:00
..
__init__.py fix set_api_key bug (#191) 2024-04-01 19:03:13 +08:00
api_service.py Fit a lot of encodings for text file. (#458) 2024-04-19 18:02:53 +08:00
canvas_service.py fix file preview in file management (#1151) 2024-06-14 10:33:59 +08:00
common_service.py refine README (#169) 2024-03-29 10:48:29 +08:00
dialog_service.py fix: Reference markers in the context may be carried over into the next answer (#1855) 2024-08-08 12:25:57 +08:00
document_service.py refine loginfo about graprag progress (#1823) 2024-08-06 16:01:43 +08:00
file2document_service.py let file in knowledgebases visible in file manager (#714) 2024-05-11 16:04:28 +08:00
file_service.py feat: Do not display arrow icons on leaf node of folders #1826 (#1862) 2024-08-08 10:50:41 +08:00
knowledgebase_service.py API: created list_doc (#1327) 2024-07-01 18:15:00 +08:00
llm_service.py Add ParsertType Audio (#1637) 2024-07-22 19:17:30 +08:00
task_service.py Add graphrag (#1793) 2024-08-02 18:51:14 +08:00
user_service.py add rerank model (#969) 2024-05-29 16:50:02 +08:00