BinaryBrain / pdf-rag

Index your documents and ask questions about them in a chat-like interface.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PDF RAG

Index your documents and ask questions about them in a chat-like interface.

Install

npm i
cd client; npm i; cd ..

Install pdftotext.

Make sure you have your OpenAI key in your environment as OPENAI_API_KEY.

Index your files

  1. Place your PDF files in documents/input
  2. Run node indexer.js
  3. Wait for the process to finish

Run

First, start the backend:

npm run dev

Then the client:

cd client
npm run dev

About

Index your documents and ask questions about them in a chat-like interface.


Languages

Language:TypeScript 55.5%Language:Vue 26.6%Language:CSS 15.3%Language:HTML 2.7%