UNPKG

@botonic/react

Version:

Build Chatbots using React

20 lines (19 loc) 805 B
import { ChunkIdsGroupedBySourceData } from '../../../index-types'; import { HubtypeChunk, HubtypeSource } from '../events/knowledge-bases-types'; interface UseKnowledgeBaseInfoParams { sourceIds: string[]; chunkIds: string[]; messageId?: string; existingChunksWithSources?: ChunkIdsGroupedBySourceData[]; failReason?: string; } export declare const useKnowledgeBaseInfo: ({ sourceIds, chunkIds, messageId, existingChunksWithSources, failReason, }: UseKnowledgeBaseInfoParams) => { sources: HubtypeSource[]; chunks: HubtypeChunk[]; chunksWithSources: ChunkIdsGroupedBySourceData[]; isLoading: boolean; getIconForSourceType: (source: HubtypeSource) => import("react/jsx-runtime").JSX.Element | null; hasKnowledge: boolean; isFaithful: boolean; }; export {};