Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/IamLiuLv/business-component-codegen
/ functions
Functions
121 in github.com/IamLiuLv/business-component-codegen
⨍
Functions
121
◇
Types & classes
15
↓ 23 callers
Function
cn
(...inputs: ClassValue[])
app/components/ui/lib/utils.ts:4
↓ 6 callers
Function
getAnnotationData
( annotations: MessageAnnotation[], type: MessageAnnotationType, )
app/components/ui/chat/index.ts:89
↓ 4 callers
Function
appendEventData
(data: StreamData, title?: string)
app/api/chat/llamaindex/streaming/events.ts:41
↓ 4 callers
Function
useClientConfig
()
app/components/ui/chat/hooks/use-config.ts:20
↓ 3 callers
Function
copyToClipboard
(value: string)
app/components/ui/chat/hooks/use-copy-to-clipboard.tsx:14
↓ 3 callers
Function
initSettings
()
app/api/chat/engine/settings.ts:45
↓ 3 callers
Function
readContent
(input: { file: File; asUrl?: boolean; })
app/components/ui/chat/hooks/use-file.ts:89
↓ 3 callers
Function
useCopyToClipboard
({ timeout = 2000, }: useCopyToClipboardProps)
app/components/ui/chat/hooks/use-copy-to-clipboard.tsx:9
↓ 2 callers
Function
addDoc
(file: DocumentFile)
app/components/ui/chat/hooks/use-file.ts:33
↓ 2 callers
Function
getDataSource
(params?: any)
app/api/chat/engine/index.ts:5
↓ 2 callers
Function
getValidAnnotation
(annotation: JSONValue)
app/api/chat/llamaindex/streaming/annotations.ts:109
↓ 2 callers
Function
inKB
(size: number)
app/components/ui/document-preview.tsx:117
↓ 2 callers
Function
toDownloadedName
(pipelineId: string, fileName: string)
app/api/chat/llamaindex/streaming/events.ts:189
↓ 1 callers
Function
LlamaIndexStream
( response: AsyncIterable<EngineResponse>, data: StreamData, chatHistory: ChatMessage[], opts?: {
app/api/chat/llamaindex/streaming/stream.ts:11
↓ 1 callers
Function
appendSourceData
( data: StreamData, sourceNodes?: NodeWithScore<Metadata>[], )
app/api/chat/llamaindex/streaming/events.ts:17
↓ 1 callers
Function
appendToolData
( data: StreamData, toolCall: ToolCall, toolOutput: ToolOutput, )
app/api/chat/llamaindex/streaming/events.ts:51
↓ 1 callers
Function
convertAnnotations
(annotations: JSONValue[])
app/api/chat/llamaindex/streaming/annotations.ts:65
↓ 1 callers
Function
convertMessageContent
( content: string, annotations?: JSONValue[], )
app/api/chat/llamaindex/streaming/annotations.ts:51
↓ 1 callers
Function
createCallbackManager
(stream: StreamData)
app/api/chat/llamaindex/streaming/events.ts:81
↓ 1 callers
Function
createChatEngine
(documentIds?: string[], params?: any)
app/api/chat/engine/chat.ts:5
↓ 1 callers
Function
createParser
( res: AsyncIterable<EngineResponse>, data: StreamData, chatHistory: ChatMessage[], )
app/api/chat/llamaindex/streaming/stream.ts:24
↓ 1 callers
Function
createStreamTimeout
(stream: StreamData)
app/api/chat/llamaindex/streaming/events.ts:72
↓ 1 callers
Function
displayDay
(time: string)
app/components/ui/chat/widgets/WeatherCard.tsx:163
↓ 1 callers
Function
docEqual
(a: DocumentFile, b: DocumentFile)
app/components/ui/chat/hooks/use-file.ts:27
↓ 1 callers
Function
downloadFile
( urlToDownload: string, filename: string, folder = "output/uploaded", )
app/api/chat/llamaindex/streaming/file.ts:5
↓ 1 callers
Function
downloadFilesFromNodes
(nodes: NodeWithScore<Metadata>[])
app/api/chat/llamaindex/streaming/events.ts:144
↓ 1 callers
Function
extractQuestions
(text: string)
app/api/chat/llamaindex/streaming/suggestion.ts:42
↓ 1 callers
Function
generateDatasource
()
app/api/chat/engine/generate.ts:20
↓ 1 callers
Function
generateFilters
(documentIds: string[])
app/api/chat/engine/queryFilter.ts:3
↓ 1 callers
Function
generateNextQuestions
( conversation: ChatMessage[], numberOfQuestions: number = N_QUESTIONS_TO_GENERATE, )
app/api/chat/llamaindex/streaming/suggestion.ts:16
↓ 1 callers
Function
generateRandomString
(length: number, lowercase = false)
app/components/ui/chat/chat-message/codeblock.tsx:50
↓ 1 callers
Function
getAnnotations
()
app/components/ui/chat/hooks/use-file.ts:72
↓ 1 callers
Function
getBackendOrigin
()
app/components/ui/chat/hooks/use-config.ts:7
↓ 1 callers
Function
getDocuments
()
app/api/chat/engine/loader.ts:12
↓ 1 callers
Function
getExtractors
()
app/api/chat/engine/loader.ts:8
↓ 1 callers
Function
getNodeUrl
(metadata: Metadata)
app/api/chat/llamaindex/streaming/events.ts:114
↓ 1 callers
Function
getRuntime
(func: any)
app/api/chat/engine/generate.ts:13
↓ 1 callers
Function
getSourceAnnotationData
( annotations: MessageAnnotation[], )
app/components/ui/chat/index.ts:96
↓ 1 callers
Function
handleSubmitWithAnnotations
( e: React.FormEvent<HTMLFormElement>, annotations: JSONValue[] | undefined, )
app/components/ui/chat/chat-input.tsx:42
↓ 1 callers
Function
handleUpload
(file: File)
app/components/ui/file-uploader.tsx:62
↓ 1 callers
Function
initAnthropic
()
app/api/chat/engine/settings.ts:178
↓ 1 callers
Function
initAzureOpenAI
()
app/api/chat/engine/settings.ts:96
↓ 1 callers
Function
initGemini
()
app/api/chat/engine/settings.ts:191
↓ 1 callers
Function
initGroq
()
app/api/chat/engine/settings.ts:157
↓ 1 callers
Function
initMistralAI
()
app/api/chat/engine/settings.ts:200
↓ 1 callers
Function
initObservability
()
app/observability/index.ts:4
↓ 1 callers
Function
initOllama
()
app/api/chat/engine/settings.ts:143
↓ 1 callers
Function
initOpenAI
()
app/api/chat/engine/settings.ts:81
↓ 1 callers
Function
isFileSizeExceeded
(file: File)
app/components/ui/file-uploader.tsx:43
↓ 1 callers
Function
isValid
(config: LlamaCloudConfig)
app/components/ui/chat/widgets/LlamaCloudSelector.tsx:140
↓ 1 callers
Function
isValidUrl
(url?: string)
app/components/ui/lib/utils.ts:8
↓ 1 callers
Function
loadDocuments
(fileBuffer: Buffer, mimeType: string)
app/api/chat/llamaindex/documents/helper.ts:27
↓ 1 callers
Function
nodesToLlamaCloudFiles
(nodes: NodeWithScore<Metadata>[])
app/api/chat/llamaindex/streaming/events.ts:165
↓ 1 callers
Function
preprocessCitations
(content: string, sources?: SourceData)
app/components/ui/chat/chat-message/markdown.tsx:42
↓ 1 callers
Function
preprocessContent
(content: string, sources?: SourceData)
app/components/ui/chat/chat-message/markdown.tsx:66
↓ 1 callers
Function
preprocessLaTeX
(content: string)
app/components/ui/chat/chat-message/markdown.tsx:19
↓ 1 callers
Function
preprocessMedia
(content: string)
app/components/ui/chat/chat-message/markdown.tsx:33
↓ 1 callers
Function
preprocessSourceNodes
(nodes: SourceNode[])
app/components/ui/chat/index.ts:112
↓ 1 callers
Function
removeDoc
(file: DocumentFile)
app/components/ui/chat/hooks/use-file.ts:42
↓ 1 callers
Function
reset
()
app/components/ui/chat/hooks/use-file.ts:46
↓ 1 callers
Function
resetInput
()
app/components/ui/file-uploader.tsx:47
↓ 1 callers
Function
retrieveDocumentIds
(annotations?: JSONValue[])
app/api/chat/llamaindex/streaming/annotations.ts:24
↓ 1 callers
Function
runPipeline
( currentIndex: VectorStoreIndex, documents: Document[], )
app/api/chat/llamaindex/documents/pipeline.ts:9
↓ 1 callers
Function
saveDocument
(fileBuffer: Buffer, mimeType: string)
app/api/chat/llamaindex/documents/helper.ts:38
↓ 1 callers
Function
scrollToBottom
()
app/components/ui/chat/chat-messages.tsx:23
↓ 1 callers
Function
setPipeline
(pipelineConfig?: PipelineConfig)
app/components/ui/chat/widgets/LlamaCloudSelector.tsx:79
↓ 1 callers
Function
storeAndParseFile
(fileBuffer: Buffer, mimeType: string)
app/api/chat/llamaindex/documents/helper.ts:14
↓ 1 callers
Function
uploadContent
( file: File, requestParams: any = {}, )
app/components/ui/chat/hooks/use-file.ts:51
↓ 1 callers
Function
uploadDocument
( index: VectorStoreIndex | LlamaCloudIndex, filename: string, raw: string, )
app/api/chat/llamaindex/documents/upload.ts:6
↓ 1 callers
Function
uploadFile
(file: File, requestParams: any = {})
app/components/ui/chat/hooks/use-file.ts:107
↓ 1 callers
Function
useFile
()
app/components/ui/chat/hooks/use-file.ts:22
Function
ChatActions
( props: Pick<ChatHandler, "stop" | "reload"> & { showReload?: boolean; showStop?: boolean; }, )
app/components/ui/chat/chat-actions.tsx:6
Function
ChatAvatar
({ role }: { role: string })
app/components/ui/chat/chat-message/chat-avatar.tsx:4
Function
ChatEvents
({ data, isLoading, }: { data: EventData[]; isLoading: boolean; })
app/components/ui/chat/chat-message/chat-events.tsx:11
Function
ChatFiles
({ data }: { data: DocumentFileData })
app/components/ui/chat/chat-message/chat-files.tsx:4
Function
ChatImage
({ data }: { data: ImageData })
app/components/ui/chat/chat-message/chat-image.tsx:4
Function
ChatInput
( props: Pick< ChatHandler, | "isLoading" | "input" | "onFileUpload" | "onFileError"
app/components/ui/chat/chat-input.tsx:13
Function
ChatMessage
({ chatMessage, isLoading, append, }: { chatMessage: Message; isLoading: boolean; append: Pick<Cha
app/components/ui/chat/chat-message/index.tsx:121
Function
ChatMessageContent
({ message, isLoading, append, }: { message: Message; isLoading: boolean; append: Pick<ChatHandler
app/components/ui/chat/chat-message/index.tsx:33
Function
ChatMessages
( props: Pick< ChatHandler, "messages" | "isLoading" | "reload" | "stop" | "append" >, )
app/components/ui/chat/chat-messages.tsx:10
Function
ChatSection
()
app/components/chat-section.tsx:8
Function
ChatSources
({ data }: { data: SourceData })
app/components/ui/chat/chat-message/chat-sources.tsx:21
Function
ChatTools
({ data }: { data: ToolData })
app/components/ui/chat/chat-message/chat-tools.tsx:5
Function
DocumentInfo
({ document }: { document: Document })
app/components/ui/chat/chat-message/chat-sources.tsx:100
Function
DocumentPreview
(props: DocumentPreviewProps)
app/components/ui/document-preview.tsx:25
Function
Drawer
({ shouldScaleBackground = true, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>)
app/components/ui/drawer.tsx:8
Function
DrawerFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
app/components/ui/drawer.tsx:69
Function
DrawerHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
app/components/ui/drawer.tsx:58
Function
FileUploader
({ config, onFileUpload, onFileError, }: FileUploaderProps)
app/components/ui/file-uploader.tsx:23
Function
GET
( _request: NextRequest, { params }: { params: { slug: string[] } }, )
app/api/files/[...slug]/route.ts:10
Function
GET
()
app/api/chat/config/route.ts:6
Function
GET
()
app/api/chat/config/llamacloud/route.ts:7
Function
Header
()
app/components/header.tsx:3
Function
Home
()
app/page.tsx:4
Function
LlamaCloudSelector
({ setRequestData, onSelect, defaultPipeline, shouldCheckValid = true, }: LlamaCloudSelectorProps)
app/components/ui/chat/widgets/LlamaCloudSelector.tsx:44
Function
Markdown
({ content, sources, }: { content: string; sources?: SourceData; })
app/components/ui/chat/chat-message/markdown.tsx:73
Function
NodeInfo
({ nodeInfo }: { nodeInfo: SourceNode })
app/components/ui/chat/chat-message/chat-sources.tsx:155
Function
POST
(request: NextRequest)
app/api/chat/route.ts:23
Function
POST
(request: NextRequest)
app/api/chat/upload/route.ts:11
Function
PdfDialog
(props: PdfDialogProps)
app/components/ui/chat/widgets/PdfDialog.tsx:31
next →
1–100 of 121, ranked by callers