ragflow/api/db
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
..
services fix: Reference markers in the context may be carried over into the next answer (#1855) 2024-08-08 12:25:57 +08:00
__init__.py add support for eml file parser (#1768) 2024-08-06 16:42:14 +08:00
db_models.py trival (#1760) 2024-08-01 09:07:37 +08:00
db_utils.py apply pep8 formalize (#155) 2024-03-27 11:33:46 +08:00
init_data.py add support for eml file parser (#1768) 2024-08-06 16:42:14 +08:00
operatioins.py apply pep8 formalize (#155) 2024-03-27 11:33:46 +08:00
reload_config_base.py apply pep8 formalize (#155) 2024-03-27 11:33:46 +08:00
runtime_config.py apply pep8 formalize (#155) 2024-03-27 11:33:46 +08:00