29 lines
561 B
JavaScript
29 lines
561 B
JavaScript
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'
|
|
}
|