ragflow/api
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
..
apps fix add slef base url openai error (#1854) 2024-08-07 19:16:46 +08:00
db fix: Reference markers in the context may be carried over into the next answer (#1855) 2024-08-08 12:25:57 +08:00
utils add support for eml file parser (#1768) 2024-08-06 16:42:14 +08:00
__init__.py rename web_server to api (#29) 2024-01-17 09:43:27 +08:00
contants.py API: create dataset (#1106) 2024-06-11 11:16:37 +08:00
ragflow_server.py refine db connection (#1494) 2024-07-12 18:11:34 +08:00
settings.py add support for eml file parser (#1768) 2024-08-06 16:42:14 +08:00
versions.py add version (#807) 2024-05-16 16:17:48 +08:00