Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arjun-kadam/DocsGPT
/ functions
Functions
35 in github.com/arjun-kadam/DocsGPT
⨍
Functions
35
◇
Types & classes
8
↓ 5 callers
Function
cn
(...inputs: ClassValue[])
lib/utils.ts:4
↓ 2 callers
Function
checkProSubscription
()
lib/subscription.ts:6
↓ 2 callers
Function
getEmbeddings
(text: string)
lib/embeddings.ts:9
↓ 1 callers
Function
createChat
( fileKey: string )
app/utils.ts:1
↓ 1 callers
Function
downloadFromS3
(fileKey: string)
lib/s3-server.ts:4
↓ 1 callers
Function
getContext
(query: string, fileKey: string)
lib/context.ts:4
↓ 1 callers
Function
getFileKeyByChatId
(chatId: number, onError: Function)
app/api/chat/route.ts:83
↓ 1 callers
Function
getFirstChat
()
lib/serverUtils.ts:6
↓ 1 callers
Function
getInitialMessages
(chatId: number)
app/chat/[chatId]/ChatComponent.tsx:11
↓ 1 callers
Function
getMatchesFromEmbeddings
(embeddings: number[], fileKey: string)
lib/context.ts:21
↓ 1 callers
Function
getS3Url
(file_key: string)
app/api/create-chat/route.ts:12
↓ 1 callers
Function
loadS3IntoPinecone
(fileKey: string)
lib/pinecone.ts:34
↓ 1 callers
Function
prepareDocuments
(pages: PDFPage[])
lib/pinecone.ts:62
↓ 1 callers
Function
truncateStringByBytes
(str: string, bytes: number)
lib/pinecone.ts:57
↓ 1 callers
Function
uploadToS3
(file: File)
lib/s3.ts:3
↓ 1 callers
Function
useSubscriptionHandler
()
app/SubscriptionButton.tsx:16
Function
AuthLayout
({ children }: { children: ReactNode })
app/auth/layout.tsx:3
Function
ChatComponent
({ chatId }: { chatId: number })
app/chat/[chatId]/ChatComponent.tsx:20
Function
ChatPage
({ params: { chatId } }: Props)
app/chat/[chatId]/page.tsx:17
Function
ChatSidebar
({ chats, chatId, isPro }: Props)
app/chat/[chatId]/ChatSidebar.tsx:17
Function
FileUpload
()
app/FileUpload.tsx:11
Function
GET
()
app/api/stripe/route.ts:10
Function
Home
()
app/page.tsx:10
Function
MessageList
({ messages, isLoading }: Props)
app/chat/[chatId]/MessageList.tsx:10
Function
PDFViewer
({ pdfUrl }: Props)
app/chat/[chatId]/PDFViewer.tsx:5
Function
POST
(request: NextRequest)
app/api/chat/route.ts:16
Function
POST
(request: NextRequest)
app/api/create-chat/route.ts:16
Function
POST
(request: NextRequest)
app/api/get-messages/route.ts:6
Function
POST
(request: NextRequest)
app/api/webhook/route.ts:8
Function
RootLayout
({ children, }: { children: React.ReactNode })
app/layout.tsx:13
Function
SignInPage
()
app/auth/sign-in/[[...sign-in]]/page.tsx:3
Function
SignUpPage
()
app/auth/sign-up/[[...sign-up]]/page.tsx:3
Function
SubscriptionButton
({ isPro }: { isPro: boolean })
app/SubscriptionButton.tsx:6
Function
embedDocument
(doc: Document)
lib/pinecone.ts:78
Function
handleSubscription
()
app/SubscriptionButton.tsx:18