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.

599 B
Raw Blame
import { atomWithLazy } from 'jotai/utils'
import { parseAsString } from 'nuqs'
import { createQueryGroup } from 'nuqs-jotai'

export const retrievalKnowledgeSpaceIdAtom = atomWithLazy<string>(() => {
  throw new Error('Missing retrieval knowledge space id')
})

export const retrievalCanQueryAtom = atomWithLazy<boolean>(() => false)

export const retrievalQueryGroup = createQueryGroup(
  {
    research: parseAsString,
    retest: parseAsString,
    trace: parseAsString,
  },
  {
    debugLabel: 'retrieval.location',
  },
)

export const retrievalLinkedSelectionAtom = retrievalQueryGroup.atom