Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Nutlope/pdftochat
/ functions
Functions
55 in github.com/Nutlope/pdftochat
⨍
Functions
55
◇
Types & classes
6
↓ 4 callers
Function
extractSourcePageNumber
(source: { metadata: Record<string, any>; })
app/document/[id]/document-client.tsx:89
↓ 2 callers
Function
classNames
(...classes: any)
components/ui/Toggle.tsx:3
↓ 2 callers
Function
collectionName
(docId: string)
app/api/utils/vector_store/chroma.ts:51
↓ 2 callers
Function
createChromaClient
()
app/api/utils/vector_store/chroma.ts:55
↓ 2 callers
Function
getOrCreateDocCollection
(docId: string)
app/api/utils/vector_store/chroma.ts:97
↓ 2 callers
Function
loadVectorStore
({ namespace, embeddings, }: { namespace: string; embeddings: Embeddings; })
app/api/utils/vector_store/index.ts:7
↓ 1 callers
Method
addDocuments
(docs: Document[])
app/api/utils/vector_store/chroma.ts:167
↓ 1 callers
Method
asRetriever
(options?: { callbacks?: Callbacks })
app/api/utils/vector_store/chroma.ts:178
↓ 1 callers
Function
cn
(...inputs: ClassValue[])
utils/cn.ts:4
↓ 1 callers
Function
createCollectionSchema
()
app/api/utils/vector_store/chroma.ts:71
↓ 1 callers
Function
createDenseEmbeddingFunction
()
app/api/utils/vector_store/chroma.ts:63
↓ 1 callers
Function
createRAGChain
( model: BaseLanguageModel, retriever: BaseRetriever, )
utils/ragChain.ts:39
↓ 1 callers
Function
deleteChromaCollection
(docId: string)
app/api/utils/vector_store/chroma.ts:187
↓ 1 callers
Function
deleteDoc
(docId: string)
app/dashboard/dashboard-client.tsx:88
↓ 1 callers
Function
ingestPdf
(fileUrl: string, fileName: string)
app/dashboard/dashboard-client.tsx:62
↓ 1 callers
Function
loadChromaStore
(docId: string)
app/api/utils/vector_store/chroma.ts:183
↓ 1 callers
Function
loadEmbeddingsModel
()
app/api/utils/embeddings/index.ts:3
↓ 1 callers
Function
loadMongoDBStore
({ embeddings, }: { embeddings: Embeddings; })
app/api/utils/vector_store/mongo.ts:5
↓ 1 callers
Function
loadPineconeStore
({ namespace, embeddings, }: { namespace: string; embeddings: Embeddings; })
app/api/utils/vector_store/pinecone.ts:5
↓ 1 callers
Function
loadRetriever
({ embeddings, chatId, callbacks, }: { embeddings?: Embeddings; chatId: string; callbacks?: Callba
app/api/utils/vector_store/index.ts:27
↓ 1 callers
Function
sanitizeMetadata
* Chroma metadata only supports flat values: string, number, boolean, or * typed arrays of those. LangChain document loaders (e.g. PDFLoader) attach
app/api/utils/vector_store/chroma.ts:28
Function
DELETE
( request: NextRequest, { params }: { params: { id: string } }, )
app/api/document/[id]/route.ts:6
Function
DashboardClient
({ docsList }: { docsList: any })
app/dashboard/dashboard-client.tsx:18
Function
DocIcon
()
components/ui/DocIcon.tsx:1
Function
DocumentClient
({ currentDoc, userImage, }: { currentDoc: Document; userImage?: string; })
app/document/[id]/document-client.tsx:20
Function
Footer
()
components/home/Footer.tsx:4
Function
Header
()
components/home/Header.tsx:7
Function
Header
()
components/ui/Header.tsx:5
Function
Hero
()
components/home/Hero.tsx:3
Function
Home
()
app/page.tsx:10
Function
HowItWorks
()
components/home/HowItWorks.tsx:22
Function
LoadingDots
({ color = '#000', style = 'small', }: { color: string; style: string; })
components/ui/LoadingDots.tsx:3
Function
Logo
({ isMobile }: LogoProps)
components/ui/Logo.tsx:8
Function
Logo
()
components/ui/Header.tsx:36
Function
POST
(request: Request)
app/api/ingestPdf/route.ts:9
Function
POST
(req: NextRequest)
app/api/chat/route.ts:30
Function
Page
()
app/sign-up/[[...sign-up]]/page.tsx:4
Function
Page
({ params }: { params: { id: string } })
app/document/[id]/page.tsx:6
Function
Page
()
app/sign-in/[[...sign-in]]/page.tsx:4
Function
Page
()
app/dashboard/page.tsx:6
Function
ProudlyOpenSource
()
components/home/ProudlyOpenSource.tsx:3
Function
RootLayout
({ children, }: { children: React.ReactNode; })
app/layout.tsx:42
Function
RootLayout
({ children, }: { children: React.ReactNode; })
app/document/[id]/layout.tsx:3
Function
RootLayout
({ children, }: { children: React.ReactNode; })
app/dashboard/layout.tsx:4
Function
Toggle
({ chatOnlyView, setChatOnlyView }: any)
components/ui/Toggle.tsx:7
Function
UploadDropZone
()
app/dashboard/dashboard-client.tsx:44
Method
_getRelevantDocuments
( query: string, _runManager?: CallbackManagerForRetrieverRun, )
app/api/utils/vector_store/chroma.ts:121
Method
constructor
(docId: string, topK = 4, fields?: BaseRetrieverInput)
app/api/utils/vector_store/chroma.ts:115
Method
constructor
(docId: string)
app/api/utils/vector_store/chroma.ts:163
Function
formatVercelMessages
(message: VercelChatMessage)
app/api/chat/route.ts:17
Function
handleEnter
(e: any)
app/document/[id]/document-client.tsx:79
Function
handleRetrieverEnd
(documents)
app/api/chat/route.ts:63
Function
onFinish
()
app/document/[id]/document-client.tsx:68
Function
onResponse
(response)
app/document/[id]/document-client.tsx:53
Function
transform
(slot: ToolbarSlot)
app/document/[id]/document-client.tsx:31