mirror of
https://github.com/HKUDS/LightRAG.git
synced 2025-08-08 16:51:57 +00:00
Merge branch 'fix-history-turns'
This commit is contained in:
commit
2b51ea7480
@ -70,6 +70,7 @@ export default function RetrievalTesting() {
|
||||
query: userMessage.content,
|
||||
conversation_history: prevMessages
|
||||
.filter((m) => m.isError !== true)
|
||||
.slice(-(state.querySettings.history_turns || 0) * 2)
|
||||
.map((m) => ({ role: m.role, content: m.content }))
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user