2025-08-05 18:00:45 +08:00
|
|
|
|
2026-01-15 02:38:02 +08:00
|
|
|
import { Database, Waypoints, DatabaseZap } from 'lucide-vue-next';
|
|
|
|
|
|
2025-08-05 18:00:45 +08:00
|
|
|
export const getKbTypeLabel = (type) => {
|
|
|
|
|
const labels = {
|
|
|
|
|
lightrag: 'LightRAG',
|
2026-01-15 02:38:02 +08:00
|
|
|
milvus: 'CommonRAG'
|
2025-08-05 18:00:45 +08:00
|
|
|
};
|
|
|
|
|
return labels[type] || type;
|
|
|
|
|
};
|
|
|
|
|
|
2026-01-15 02:38:02 +08:00
|
|
|
export const getKbTypeIcon = (type) => {
|
|
|
|
|
const icons = {
|
|
|
|
|
lightrag: Waypoints,
|
|
|
|
|
milvus: DatabaseZap
|
|
|
|
|
};
|
|
|
|
|
return icons[type] || Database;
|
|
|
|
|
};
|
|
|
|
|
|
2025-08-05 18:00:45 +08:00
|
|
|
export const getKbTypeColor = (type) => {
|
|
|
|
|
const colors = {
|
|
|
|
|
lightrag: 'purple',
|
|
|
|
|
milvus: 'red'
|
|
|
|
|
};
|
|
|
|
|
return colors[type] || 'blue';
|
|
|
|
|
};
|