MCPcopy Index your code
hub / github.com/arjun-kadam/DocsGPT

github.com/arjun-kadam/DocsGPT @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
43 symbols 143 edges 36 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

DocsGPT - Chat With PDF Using LLM

Chat with Documents using LLM revolutionizes information retrieval by using Large Language Models like GPT-3.5 to enable dynamic, conversational interactions with documents. This approach surpasses traditional keyword-based searches, allowing users to naturally extract insights, summaries, and specific information.


Tech Stack

A DocsGPT using:

  • Next.js 13 (App Router) in TypeScript
  • Database
  • Drizzle ORM
  • Neon (Serverless PostgreSQL)
  • AI-related
  • Pinecone (Vector Database)
  • Langchain
  • OpenAI SDK
  • Vercel AI SDK
  • API schema validation: Zod
  • Object Storage: AWS JavaScript SDK v2
  • Payment: Stripe SDK
  • Styling: Tailwind CSS
  • Third-Party UI Components
  • React Dropzone
  • React Hot Toast
  • shadcn-ui
  • Lucide icons

Usage

  1. Add a .env according to .env.example
mv .env.example .env
  1. Install dependencies using pnpm
pnpm install

# start development server
pnpm run dev

# build for production
pnpm run build

# start production server
pnpm run start

Project Group Members

  • Arjun Kadam
  • Simran Pathan
  • Vaibhav Pandarkar
  • Vaishnavi Raykar

Mentor

  • Prof. Swati Bhosale

Extension points exported contracts — how you extend this code

InputProps (Interface)
(no doc)
components/ui/input.tsx
PDFPage (Interface)
(no doc)
lib/pinecone.ts
Props (Interface)
(no doc)
app/chat/[chatId]/PDFViewer.tsx
ButtonProps (Interface)
(no doc)
components/ui/button.tsx
PineconeRecordMetadata (Interface)
(no doc)
lib/pinecone.ts
Props (Interface)
(no doc)
app/chat/[chatId]/MessageList.tsx
Props (Interface)
(no doc)
app/chat/[chatId]/page.tsx
Props (Interface)
(no doc)
app/chat/[chatId]/ChatSidebar.tsx

Core symbols most depended-on inside this repo

cn
called by 5
lib/utils.ts
getEmbeddings
called by 2
lib/embeddings.ts
checkProSubscription
called by 2
lib/subscription.ts
getFirstChat
called by 1
lib/serverUtils.ts
getContext
called by 1
lib/context.ts
getMatchesFromEmbeddings
called by 1
lib/context.ts
downloadFromS3
called by 1
lib/s3-server.ts
uploadToS3
called by 1
lib/s3.ts

Shape

Function 35
Interface 8

Languages

TypeScript100%

Modules by API surface

lib/pinecone.ts6 symbols
app/SubscriptionButton.tsx3 symbols
lib/context.ts2 symbols
app/chat/[chatId]/page.tsx2 symbols
app/chat/[chatId]/PDFViewer.tsx2 symbols
app/chat/[chatId]/MessageList.tsx2 symbols
app/chat/[chatId]/ChatSidebar.tsx2 symbols
app/chat/[chatId]/ChatComponent.tsx2 symbols
app/api/create-chat/route.ts2 symbols
app/api/chat/route.ts2 symbols
lib/utils.ts1 symbols
lib/subscription.ts1 symbols

For agents

$ claude mcp add DocsGPT \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact