feat: Enhance agent settings and UI components
- Updated the Input-field component to improve styling and consistency with new color scheme. - Added model recommendation section in AgentSettings with localized content for better user guidance. - Enhanced AgentStreamDisplay to conditionally show timeline based on event types, improving user experience. - Updated botmsg and docInfo components for better display of web search references and document information. - Improved fallback response handling in session management, allowing for more flexible user interactions. - Introduced deduplication and scoring mechanisms in grep_chunks and knowledge_search tools to enhance search result relevance and diversity.
This commit is contained in:
@@ -297,7 +297,9 @@ func (s *agentService) getKnowledgeBaseInfos(ctx context.Context, kbIDs []string
|
||||
break
|
||||
}
|
||||
recentDocs = append(recentDocs, agent.RecentDocInfo{
|
||||
KnowledgeID: entry.ChunkID,
|
||||
ChunkID: entry.ChunkID,
|
||||
KnowledgeID: entry.KnowledgeID,
|
||||
KnowledgeBaseID: entry.KnowledgeBaseID,
|
||||
Title: entry.StandardQuestion,
|
||||
Type: string(types.ChunkTypeFAQ),
|
||||
CreatedAt: entry.CreatedAt.Format("2006-01-02"),
|
||||
|
||||
Reference in New Issue
Block a user