mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Refa: change citation mark as [ID:n] (#7923)
### What problem does this PR solve? Change citation mark as [ID:n], it's easier for LLMs to follow the instruction :) #7904 ### Type of change - [x] Refactoring
This commit is contained in:
@ -245,7 +245,7 @@ class Dealer:
|
||||
for c in cites[i]:
|
||||
if c in seted:
|
||||
continue
|
||||
res += f" ##{c}$$"
|
||||
res += f" [ID:{c}]"
|
||||
seted.add(c)
|
||||
|
||||
return res, seted
|
||||
|
||||
Reference in New Issue
Block a user