feat: Enhance suggested questions functionality with wiki integration

- Updated the SuggestedQuestion interface to include 'wiki' as a new source type, allowing for more diverse question origins.
- Implemented ListRecentForSuggestions method in the wikiPageRepository to retrieve recent wiki pages for fallback suggestions, improving the agent's ability to generate relevant questions when other sources are unavailable.
- Enhanced the customAgentService to utilize the new wiki page suggestions, ensuring a broader range of questions can be generated from wiki content.

These changes significantly improve the agent's suggestion capabilities by incorporating wiki content, enhancing user interaction and information retrieval.
This commit is contained in:
wizardchen
2026-04-21 15:20:41 +08:00
parent 3f97a7a090
commit 0531700518
5 changed files with 121 additions and 9 deletions
+1 -1
View File
@@ -222,7 +222,7 @@ export function toggleIMChannel(id: string) {
// 推荐问题
export interface SuggestedQuestion {
question: string;
source: 'faq' | 'document' | 'agent_config';
source: 'faq' | 'document' | 'agent_config' | 'wiki';
knowledge_base_id?: string;
}