mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-09-07 17:58:55 +08:00
### What problem does this PR solve? core module for agent layer built on top of graph engine #16039 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
11 lines
342 B
Go
11 lines
342 B
Go
package summarization
|
|
|
|
// DefaultMaxTokens is the default max tokens before summarization triggers.
|
|
const DefaultMaxTokens = 160000
|
|
|
|
// DefaultKeepMessages is the default number of recent messages to keep.
|
|
const DefaultKeepMessages = 10
|
|
|
|
// SummaryTag is used to mark summary messages.
|
|
const SummaryTag = "[Previous conversation summarized]"
|