MCPcopy Create free account

hub / github.com/RafalWilinski/cloudflare-rag / functions

Functions46 in github.com/RafalWilinski/cloudflare-rag

↓ 22 callersFunctioncn
(...inputs: ClassValue[])
app/lib/utils.ts:4
↓ 7 callersFunctionstreamResponse
(message: any)
functions/api/upload.ts:118
↓ 4 callersFunctionensureApiKeys
(apiKeys: Record<string, string | undefined>)
app/lib/aiGateway.ts:155
↓ 2 callersFunctionhandleFileChange
(newFiles: File[])
app/components/fileUpload.tsx:66
↓ 2 callersFunctionisNearBottom
()
app/routes/_index.tsx:195
↓ 2 callersFunctionremoveErrorFiles
()
app/components/fileUpload.tsx:53
↓ 2 callersFunctionstartAnimation
()
app/components/Input.tsx:19
↓ 2 callersFunctionvanishAndSubmit
()
app/components/Input.tsx:150
↓ 1 callersFunctionanimate
(start: number)
app/components/Input.tsx:99
↓ 1 callersFunctionanimateFrame
(pos: number = 0)
app/components/Input.tsx:100
↓ 1 callersFunctionextractTextFromPDF
(file: File)
functions/api/upload.ts:19
↓ 1 callersFunctiongetRelevantDocuments
(ids: string[], db: DrizzleD1Database<any>)
functions/api/stream.ts:132
↓ 1 callersFunctionhandleSendMessage
(event: React.FormEvent<HTMLFormElement> | string)
app/routes/_index.tsx:59
↓ 1 callersFunctioninsertDocument
( db: any, file: File, textContent: string, sessionId: string, r2Url: string )
functions/api/upload.ts:26
↓ 1 callersFunctioninsertVectors
( db: DrizzleD1Database<any>, VECTORIZE_INDEX: VectorizeIndex, AI: any, chunks: string[], file: File
functions/api/upload.ts:47
↓ 1 callersFunctionllmResponse
({ accountId, messages, apiKeys, model, AI, provider, }: { messages: RoleScopedChatInput[]; ac
app/lib/aiGateway.ts:160
↓ 1 callersFunctionperformReciprocalRankFusion
( fullTextResults: DocumentChunk[], vectorResults: VectorizeMatches[] )
functions/api/stream.ts:81
↓ 1 callersFunctionprocessUserQuery
(json: any, env: Env, writer: WritableStreamDefaultWriter)
functions/api/stream.ts:141
↓ 1 callersFunctionqueryVectorIndex
(queries: string[], env: Env, sessionId: string)
functions/api/stream.ts:110
↓ 1 callersFunctionrewriteToQueries
(content: string, env: Env)
functions/api/stream.ts:12
↓ 1 callersFunctionsearchDocumentChunks
(searchTerms: string[], db: DrizzleD1Database<any>)
functions/api/stream.ts:50
↓ 1 callersFunctionstreamLLMResponse
({ accountId, messages, apiKeys, model, AI, provider, isDemo }: { messages: RoleScopedChatInpu
app/lib/aiGateway.ts:4
↓ 1 callersFunctionstreamResponse
( params: Awaited<ReturnType<typeof processUserQuery>>, env: Env, writable: WritableStream )
functions/api/stream.ts:197
↓ 1 callersFunctionuploadToR2
(file: File, r2Bucket: R2Bucket, sessionId: string)
functions/api/upload.ts:10
FunctionAnimatedShinyText
({ children, className, shimmerWidth = 100, })
app/components/magicui/animated-shiny-text.tsx:11
FunctionApp
()
app/root.tsx:22
FunctionChatApp
()
app/routes/_index.tsx:36
FunctionDrawer
({ shouldScaleBackground = true, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>)
app/components/ui/drawer.tsx:6
FunctionDrawerFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
app/components/ui/drawer.tsx:67
FunctionDrawerHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
app/components/ui/drawer.tsx:56
FunctionFileUpload
({ onChange, sessionId, setSessionId, setSelectedExample, }: { onChange?: (files: File[]) => void;
app/components/fileUpload.tsx:32
FunctionGridPattern
()
app/components/fileUpload.tsx:278
FunctionLayout
({ children }: { children: React.ReactNode })
app/root.tsx:4
FunctionPlaceholdersAndVanishInput
({ placeholders, onChange, onSubmit, }: { placeholders: string[]; onChange: (e: React.ChangeEvent<HT
app/components/Input.tsx:7
FunctionhandleClick
()
app/components/fileUpload.tsx:134
FunctionhandleKeyDown
(e: React.KeyboardEvent<HTMLInputElement>)
app/components/Input.tsx:144
FunctionhandleRequest
( request: Request, responseStatusCode: number, responseHeaders: Headers, remixContext: EntryContext,
app/entry.server.tsx:12
FunctionhandleScroll
()
app/routes/_index.tsx:191
FunctionhandleSubmit
(e: React.FormEvent<HTMLFormElement>)
app/components/Input.tsx:164
FunctionhandleVisibilityChange
()
app/components/Input.tsx:24
Functionmeta
()
app/routes/_index.tsx:32
FunctiononError
(error: unknown)
app/entry.server.tsx:26
FunctiononRequest
(ctx)
functions/api/upload.ts:112
FunctiononRequest
(ctx)
functions/api/stream.ts:226
FunctionscrollToBottom
()
app/routes/_index.tsx:177
FunctiontoggleSidebar
()
app/routes/_index.tsx:173