feat(docparser): enhance sortedKeys function for numeric string sorting
- Modified the sortedKeys function to sort keys numerically when all keys are numeric strings, ensuring correct order for keys like "2" and "10". - Updated the NeedsKBRetrieval method to include IntentSummarize as a valid case for knowledge base retrieval. - Added a new test data file for chat import to support testing of document parsing and processing functionalities.
This commit is contained in:
@@ -71,7 +71,7 @@ const (
|
||||
// which also considers the WebSearchEnabled flag.
|
||||
func (i QueryIntent) NeedsKBRetrieval() bool {
|
||||
switch i {
|
||||
case IntentKBSearch, IntentClarification, "":
|
||||
case IntentKBSearch, IntentClarification, IntentSummarize, "":
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user