ForcePilot/web/src/utils/kb_utils.js

27 lines
516 B
JavaScript
Raw Normal View History

import { Database, Waypoints, DatabaseZap } from 'lucide-vue-next';
export const getKbTypeLabel = (type) => {
const labels = {
lightrag: 'LightRAG',
milvus: 'CommonRAG'
};
return labels[type] || type;
};
export const getKbTypeIcon = (type) => {
const icons = {
lightrag: Waypoints,
milvus: DatabaseZap
};
return icons[type] || Database;
};
export const getKbTypeColor = (type) => {
const colors = {
lightrag: 'purple',
milvus: 'red'
};
return colors[type] || 'blue';
};