MCPcopy Create free account

hub / github.com/Jordan-Gilliam/ai-template / functions

Functions143 in github.com/Jordan-Gilliam/ai-template

↓ 154 callersFunctioncn
(...inputs: ClassValue[])
lib/utils.ts:4
↓ 9 callersFunctiontoast
({ ...props }: Toast)
hooks/use-toast.ts:138
↓ 5 callersFunctiondispatch
(action: Action)
hooks/use-toast.ts:129
↓ 5 callersFunctionsendData
(data: string)
pages/api/query.ts:51
↓ 4 callersFunctioninitPinecone
()
config/pinecone.ts:3
↓ 2 callersFunctionaddToRemoveQueue
(toastId: string)
hooks/use-toast.ts:55
↓ 2 callersFunctionextractTextFromImage
(imagePath)
lib/file.ts:27
↓ 2 callersFunctiont
(v)
components/icons.tsx:22
↓ 2 callersFunctiontruncateLongFileName
( fileName: string, maxLength: number = 15 )
lib/utils.ts:73
↓ 2 callersFunctiontruncateLongUrl
( longUrl: string, maxLength: number = 15 )
lib/utils.ts:53
↓ 2 callersFunctionuseToggle
(initialState: boolean = false)
hooks/use-toggle.tsx:3
↓ 1 callersFunctionconvertFileToString
(file: formidable.File, chunks)
lib/file.ts:63
↓ 1 callersFunctioncopyToClipboard
(value: string)
hooks/use-copy-to-clipboard.tsx:14
↓ 1 callersFunctioncreateChainAndSendResponse
( req: NextApiRequest, res: NextApiResponse, vectorStore: any )
pages/api/query.ts:43
↓ 1 callersFunctiondismiss
()
hooks/use-toast.ts:146
↓ 1 callersFunctionfileConsumer
(acc: T[])
lib/file.ts:52
↓ 1 callersFunctionformidablePromise
( req: NextApiRequest, opts?: Parameters<typeof formidable>[0] )
lib/file.ts:36
↓ 1 callersFunctiongenId
()
hooks/use-toast.ts:24
↓ 1 callersFunctiongenerateAnswer
(e: any)
hooks/use-query.tsx:43
↓ 1 callersFunctiongenerateRandomString
(length: number, lowercase = false)
components/ui/codeblock.tsx:47
↓ 1 callersFunctiongetDocumentsFromUrl
(urls: string[])
lib/webpage.ts:19
↓ 1 callersFunctiongetFileText
(req: NextApiRequest)
lib/file.ts:121
↓ 1 callersFunctiongetNamespaceKeys
( indexDescription: IndexDescription )
hooks/use-pinecone-stats.tsx:29
↓ 1 callersFunctiongetSecondLevelDomain
(hostname: string)
lib/utils.ts:37
↓ 1 callersFunctiongetTextContentFromPDF
(pdfBuffer)
lib/file.ts:20
↓ 1 callersFunctionisValidUrl
(urlString: string)
lib/utils.ts:24
↓ 1 callersFunctionmakePdfChain
( vectorstore: PineconeStore, onTokenStream?: (token: string) => void, sourceCount?: number )
lib/chain.ts:7
↓ 1 callersFunctionpluralize
( word: string, count: number, pluralForm?: string )
lib/utils.ts:8
↓ 1 callersFunctionprepareResponse
(res: NextApiResponse)
pages/api/query.ts:7
↓ 1 callersFunctionreducer
(state: State, action: Action)
hooks/use-toast.ts:71
↓ 1 callersFunctionremoveFileExtension
(pathPart: string | undefined)
lib/utils.ts:41
↓ 1 callersFunctionremoveLeadingDash
(pathPart: string)
lib/utils.ts:33
↓ 1 callersFunctionshortenLastPathPart
(pathPart: string, maxLength: number)
lib/utils.ts:46
↓ 1 callersFunctionsplitDocumentsFromFile
(file)
lib/file.ts:134
↓ 1 callersFunctionsplitDocumentsFromUrl
(pageContent: string, url)
lib/webpage.ts:5
↓ 1 callersFunctionstoreDocumentsInPinecone
(docs: any, namespace)
pages/api/embed-webpage.ts:42
↓ 1 callersFunctionstoreDocumentsInPinecone
(docs: any, namespace)
pages/api/embed-file.ts:32
↓ 1 callersFunctionuseCopyToClipboard
({ timeout = 2000 }: useCopyToClipboardProps)
hooks/use-copy-to-clipboard.tsx:9
↓ 1 callersFunctionusePineconeQuery
(namespace)
hooks/use-query.tsx:24
↓ 1 callersFunctionusePineconeStats
()
hooks/use-pinecone-stats.tsx:6
↓ 1 callersFunctionuseScrapeEmbed
(url: string)
hooks/use-scrape-embed.tsx:33
↓ 1 callersFunctionuseToast
()
hooks/use-toast.ts:167
FunctionAlertDialogFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/alert-dialog.tsx:72
FunctionAlertDialogHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/alert-dialog.tsx:58
FunctionAlertDialogPortal
({ className, children, ...props }: AlertDialogPrimitive.AlertDialogPortalProps)
components/ui/alert-dialog.tsx:11
FunctionAnimatedParagraph
({ content })
components/perplexity/Sources.tsx:196
FunctionAnimatedQuestion
({ submittedQ })
components/perplexity/Answer.tsx:128
FunctionAnswerCard
({ question, answer, isCurrentAnswer, status })
components/perplexity/Answer.tsx:23
FunctionAnswerMessage
({ submittedQ, isCurrentAnswer, content, error })
components/perplexity/Answer.tsx:54
FunctionApp
({ Component, pageProps }: AppProps)
pages/_app.tsx:24
FunctionBackgroundColorBlur
()
components/Layouts.tsx:90
FunctionBackgroundGridPattern
()
components/Layouts.tsx:52
FunctionCard
({ cardDetails, children, }: { cardDetails?: CardDetails children: React.ReactNode })
components/Card.tsx:10
FunctionCommandDialog
({ children, ...props }: CommandDialogProps)
components/ui/command.tsx:27
FunctionCommandMenu
({ ...props }: DialogProps)
components/CommandMenu.tsx:21
FunctionCommandShortcut
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>)
components/ui/command.tsx:131
FunctionContent
({ order, sourceContent, isOpen })
components/perplexity/Sources.tsx:177
FunctionContentList
({ sources, isOpen })
components/perplexity/Sources.tsx:156
FunctionContextMenuShortcut
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>)
components/ui/context-menu.tsx:167
FunctionDialogFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/dialog.tsx:79
FunctionDialogHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/dialog.tsx:65
FunctionDialogPortal
({ className, children, ...props }: DialogPrimitive.DialogPortalProps)
components/ui/dialog.tsx:12
FunctionDocument
()
pages/_document.tsx:4
FunctionDocumentQA
({ namespace })
components/query/DocumentQA.tsx:8
FunctionDropdownMenuShortcut
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>)
components/ui/dropdown-menu.tsx:170
FunctionFadeIn
(props: MotionProps)
components/animations/FadeIn.tsx:9
FunctionFancyBackground
({ children })
components/Layouts.tsx:41
FunctionFileUpload
({ namespace })
components/train/FileUpload.tsx:17
FunctionHeader
({ sources })
components/perplexity/Sources.tsx:66
FunctionIconArrowDown
({ className, ...props }: React.ComponentProps<'svg'>)
components/ui/icons.tsx:159
FunctionIconArrowElbow
({ className, ...props }: React.ComponentProps<'svg'>)
components/ui/icons.tsx:215
FunctionIconArrowRight
({ className, ...props }: React.ComponentProps<'svg'>)
components/ui/icons.tsx:173
FunctionIconCheck
({ className, ...props }: React.ComponentProps<'svg'>)
components/ui/icons.tsx:355
FunctionIconChevronUpDown
({ className, ...props }: React.ComponentProps<'svg'>)
components/ui/icons.tsx:462
FunctionIconClose
({ className, ...props }: React.ComponentProps<'svg'>)
components/ui/icons.tsx:383
FunctionIconCopy
({ className, ...props }: React.ComponentProps<'svg'>)
components/ui/icons.tsx:341
FunctionIconDownload
({ className, ...props }: React.ComponentProps<'svg'>)
components/ui/icons.tsx:369
FunctionIconEdit
({ className, ...props }: React.ComponentProps<'svg'>)
components/ui/icons.tsx:397
FunctionIconExternalLink
({ className, ...props }: React.ComponentProps<'svg'>)
components/ui/icons.tsx:445
FunctionIconGitHub
({ className, ...props }: React.ComponentProps<'svg'>)
components/ui/icons.tsx:124
FunctionIconMessage
({ className, ...props }: React.ComponentProps<'svg'>)
components/ui/icons.tsx:243
FunctionIconMoon
({ className, ...props }: React.ComponentProps<'svg'>)
components/ui/icons.tsx:313
FunctionIconNextChat
({ className, inverted, ...props }: React.ComponentProps<'svg'> & { inverted?: boolean })
components/ui/icons.tsx:7
FunctionIconOpenAI
({ className, ...props }: React.ComponentProps<'svg'>)
components/ui/icons.tsx:91
FunctionIconPlus
({ className, ...props }: React.ComponentProps<'svg'>)
components/ui/icons.tsx:201
FunctionIconRefresh
({ className, ...props }: React.ComponentProps<'svg'>)
components/ui/icons.tsx:271
FunctionIconSeparator
({ className, ...props }: React.ComponentProps<'svg'>)
components/ui/icons.tsx:140
FunctionIconShare
({ className, ...props }: React.ComponentProps<'svg'>)
components/ui/icons.tsx:417
FunctionIconSidebar
({ className, ...props }: React.ComponentProps<'svg'>)
components/ui/icons.tsx:299
FunctionIconSpinner
({ className, ...props }: React.ComponentProps<'svg'>)
components/ui/icons.tsx:229
FunctionIconStop
({ className, ...props }: React.ComponentProps<'svg'>)
components/ui/icons.tsx:285
FunctionIconSun
({ className, ...props }: React.ComponentProps<'svg'>)
components/ui/icons.tsx:327
FunctionIconTrash
({ className, ...props }: React.ComponentProps<'svg'>)
components/ui/icons.tsx:257
FunctionIconUser
({ className, ...props }: React.ComponentProps<'svg'>)
components/ui/icons.tsx:187
FunctionIconUsers
({ className, ...props }: React.ComponentProps<'svg'>)
components/ui/icons.tsx:431
FunctionIconVercel
({ className, ...props }: React.ComponentProps<'svg'>)
components/ui/icons.tsx:107
FunctionLoadingButton
({ handleSubmit, disabled, status })
components/train/FileUpload.tsx:130
FunctionLoadingButton
({ handleSubmit, disabled, status })
components/train/UrlScraper.tsx:81
FunctionLoadingLine
()
components/perplexity/Answer.tsx:147
FunctionLogo
({ path, width, height, rotate = false })
components/Layouts.tsx:27
next →1–100 of 143, ranked by callers