ForcePilot/web/src/utils/kb_utils.js

29 lines
561 B
JavaScript
Raw Normal View History

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