Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

451 B
Raw Blame
'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.keywordSearch]: retrievalIcon.vector,
    }[type] || retrievalIcon.vector
  )
}