feat: implement knowledge search feature with enhanced configuration and UI

- Updated `config.yaml` to adjust conversation parameters for improved search performance.
- Added a new `knowledgeSemanticSearch` API function for semantic search capabilities.
- Introduced new SVG icons for search functionality.
- Created `KnowledgeSearch.vue` component for the search interface, including query input and result display.
- Enhanced menu and routing to support navigation to the new knowledge search page.
- Updated internationalization files to include translations for the knowledge search feature.

This update provides users with a powerful tool to perform semantic searches across knowledge bases, improving content discoverability.
This commit is contained in:
wizardchen
2026-03-02 15:51:11 +08:00
committed by lyingbug
parent e595e9345e
commit 612b3f2c90
13 changed files with 884 additions and 18 deletions
+8
View File
@@ -299,3 +299,11 @@ export function searchKnowledge(
if (options?.agent_id) query.set('agent_id', options.agent_id);
return get(`/api/v1/knowledge/search?${query.toString()}`);
}
export function knowledgeSemanticSearch(data: {
query: string;
knowledge_base_ids?: string[];
knowledge_ids?: string[];
}) {
return post('/api/v1/knowledge-search', data);
}