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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user