Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/binarybrain/pdf-rag
Index your documents and ask questions about them in a chat-like interface.
https://github.com/binarybrain/pdf-rag
chat gpt llm pdf rag
Last synced: about 2 months ago
JSON representation
Index your documents and ask questions about them in a chat-like interface.
- Host: GitHub
- URL: https://github.com/binarybrain/pdf-rag
- Owner: BinaryBrain
- Created: 2023-10-16T09:27:07.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-02-28T22:56:26.000Z (11 months ago)
- Last Synced: 2024-10-16T11:49:12.393Z (3 months ago)
- Topics: chat, gpt, llm, pdf, rag
- Language: TypeScript
- Homepage:
- Size: 55.7 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PDF RAG
Index your documents and ask questions about them in a chat-like interface.
## Install
```sh
npm i
cd client; npm i; cd ..
```Install [pdftotext](https://pypi.org/project/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:
```sh
npm run dev
```Then the client:
```sh
cd client
npm run dev
```