Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RafalWilinski/cloudflare-rag
/ functions
Functions
46 in github.com/RafalWilinski/cloudflare-rag
⨍
Functions
46
◇
Types & classes
6
↓ 22 callers
Function
cn
(...inputs: ClassValue[])
app/lib/utils.ts:4
↓ 7 callers
Function
streamResponse
(message: any)
functions/api/upload.ts:118
↓ 4 callers
Function
ensureApiKeys
(apiKeys: Record<string, string | undefined>)
app/lib/aiGateway.ts:155
↓ 2 callers
Function
handleFileChange
(newFiles: File[])
app/components/fileUpload.tsx:66
↓ 2 callers
Function
isNearBottom
()
app/routes/_index.tsx:195
↓ 2 callers
Function
removeErrorFiles
()
app/components/fileUpload.tsx:53
↓ 2 callers
Function
startAnimation
()
app/components/Input.tsx:19
↓ 2 callers
Function
vanishAndSubmit
()
app/components/Input.tsx:150
↓ 1 callers
Function
animate
(start: number)
app/components/Input.tsx:99
↓ 1 callers
Function
animateFrame
(pos: number = 0)
app/components/Input.tsx:100
↓ 1 callers
Function
extractTextFromPDF
(file: File)
functions/api/upload.ts:19
↓ 1 callers
Function
getRelevantDocuments
(ids: string[], db: DrizzleD1Database<any>)
functions/api/stream.ts:132
↓ 1 callers
Function
handleSendMessage
(event: React.FormEvent<HTMLFormElement> | string)
app/routes/_index.tsx:59
↓ 1 callers
Function
insertDocument
( db: any, file: File, textContent: string, sessionId: string, r2Url: string )
functions/api/upload.ts:26
↓ 1 callers
Function
insertVectors
( db: DrizzleD1Database<any>, VECTORIZE_INDEX: VectorizeIndex, AI: any, chunks: string[], file: File
functions/api/upload.ts:47
↓ 1 callers
Function
llmResponse
({ accountId, messages, apiKeys, model, AI, provider, }: { messages: RoleScopedChatInput[]; ac
app/lib/aiGateway.ts:160
↓ 1 callers
Function
performReciprocalRankFusion
( fullTextResults: DocumentChunk[], vectorResults: VectorizeMatches[] )
functions/api/stream.ts:81
↓ 1 callers
Function
processUserQuery
(json: any, env: Env, writer: WritableStreamDefaultWriter)
functions/api/stream.ts:141
↓ 1 callers
Function
queryVectorIndex
(queries: string[], env: Env, sessionId: string)
functions/api/stream.ts:110
↓ 1 callers
Function
rewriteToQueries
(content: string, env: Env)
functions/api/stream.ts:12
↓ 1 callers
Function
searchDocumentChunks
(searchTerms: string[], db: DrizzleD1Database<any>)
functions/api/stream.ts:50
↓ 1 callers
Function
streamLLMResponse
({ accountId, messages, apiKeys, model, AI, provider, isDemo }: { messages: RoleScopedChatInpu
app/lib/aiGateway.ts:4
↓ 1 callers
Function
streamResponse
( params: Awaited<ReturnType<typeof processUserQuery>>, env: Env, writable: WritableStream )
functions/api/stream.ts:197
↓ 1 callers
Function
uploadToR2
(file: File, r2Bucket: R2Bucket, sessionId: string)
functions/api/upload.ts:10
Function
AnimatedShinyText
({ children, className, shimmerWidth = 100, })
app/components/magicui/animated-shiny-text.tsx:11
Function
App
()
app/root.tsx:22
Function
ChatApp
()
app/routes/_index.tsx:36
Function
Drawer
({ shouldScaleBackground = true, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>)
app/components/ui/drawer.tsx:6
Function
DrawerFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
app/components/ui/drawer.tsx:67
Function
DrawerHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
app/components/ui/drawer.tsx:56
Function
FileUpload
({ onChange, sessionId, setSessionId, setSelectedExample, }: { onChange?: (files: File[]) => void;
app/components/fileUpload.tsx:32
Function
GridPattern
()
app/components/fileUpload.tsx:278
Function
Layout
({ children }: { children: React.ReactNode })
app/root.tsx:4
Function
PlaceholdersAndVanishInput
({ placeholders, onChange, onSubmit, }: { placeholders: string[]; onChange: (e: React.ChangeEvent<HT
app/components/Input.tsx:7
Function
handleClick
()
app/components/fileUpload.tsx:134
Function
handleKeyDown
(e: React.KeyboardEvent<HTMLInputElement>)
app/components/Input.tsx:144
Function
handleRequest
( request: Request, responseStatusCode: number, responseHeaders: Headers, remixContext: EntryContext,
app/entry.server.tsx:12
Function
handleScroll
()
app/routes/_index.tsx:191
Function
handleSubmit
(e: React.FormEvent<HTMLFormElement>)
app/components/Input.tsx:164
Function
handleVisibilityChange
()
app/components/Input.tsx:24
Function
meta
()
app/routes/_index.tsx:32
Function
onError
(error: unknown)
app/entry.server.tsx:26
Function
onRequest
(ctx)
functions/api/upload.ts:112
Function
onRequest
(ctx)
functions/api/stream.ts:226
Function
scrollToBottom
()
app/routes/_index.tsx:177
Function
toggleSidebar
()
app/routes/_index.tsx:173