MCPcopy Index your code
hub / github.com/bdcorps/langchain-pdf-qa

github.com/bdcorps/langchain-pdf-qa @main

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

This repo lets you use a local PDF/text file to ask questions and generate asnwers.

How to use

  1. Add a .env file (OPENAI API key can be found in https://platform.openai.com/account/api-keys):
OPENAI_API_KEY=
  1. Run npm i
  2. Run npm run dev

You will see a response in your console for the Microsoft 10-K report

Acknowldgements

  • Big thanks to https://github.com/mayooear/gpt4-pdf-chatbot-langchain for the PDF loader functions

Core symbols most depended-on inside this repo

parse
called by 1
utils/CustomPDFLoader.ts
PDFLoaderImports
called by 1
utils/CustomPDFLoader.ts
main
called by 1
src/ask-pdf.ts
main
called by 1
src/ask-txt.ts
constructor
called by 0
utils/CustomPDFLoader.ts
load
called by 0
utils/CustomPDFLoader.ts

Shape

Function 5
Class 3
Method 1

Languages

TypeScript100%

Modules by API surface

utils/CustomPDFLoader.ts7 symbols
src/ask-txt.ts1 symbols
src/ask-pdf.ts1 symbols

For agents

$ claude mcp add langchain-pdf-qa \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact