mirror of
https://github.com/langgenius/dify.git
synced 2026-07-24 13:08:34 +08:00
16 lines
512 B
TypeScript
16 lines
512 B
TypeScript
'use client'
|
|
import { RETRIEVE_METHOD } from '@/types/app'
|
|
import { retrievalIcon } from '../../create/icons'
|
|
|
|
export const getIcon = (type: RETRIEVE_METHOD) => {
|
|
return (
|
|
{
|
|
[RETRIEVE_METHOD.semantic]: retrievalIcon.vector,
|
|
[RETRIEVE_METHOD.fullText]: retrievalIcon.fullText,
|
|
[RETRIEVE_METHOD.hybrid]: retrievalIcon.hybrid,
|
|
[RETRIEVE_METHOD.invertedIndex]: retrievalIcon.vector,
|
|
[RETRIEVE_METHOD.keywordSearch]: retrievalIcon.vector,
|
|
}[type] || retrievalIcon.vector
|
|
)
|
|
}
|