Skip to content

An interactive GPT-style web application that lets you query entire folders of PDFs using open-source LLMs from Meta, Microsoft, Google, Mistral, and more.

License

Notifications You must be signed in to change notification settings

MichaelSykesUK/document-prompter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

'Document Prompter' Setup Guide

This guide will help you set up and run the 'Document Prompter' application, which consists of a backend API and a frontend user interface.

Prerequisites

  • Python 3.8+
  • Node.js 14+ (includes npm)
  • Virtual Environment (Recommended)

Setup

1. Create a Virtual Environment (Recommended)

python -m venv venv
source venv/bin/activate  # Linux/MacOS
venv\Scripts\activate   # Windows

2. Install Backend Dependencies

pip install -r backend/requirements.txt

3. Install Node.js Packages

cd frontend
npm install

4. Build the Project

npm run build

5. Serve the Backend and Frontend Locally

cd ..
python backend/api.py

By default, the backend will be available at http://127.0.0.1:8000.

Testing the Application

  1. Start both the backend and frontend servers.
  2. Open a browser and navigate to http://127.0.0.1:8000.
  3. Test API interactions through the user interface.

File Structure

/document-prompter
  |-- backend/  
      |-- api.py           # Backend API script
      |-- tools.py         # Application classes and methods
      |-- requirements.txt # Python dependencies
  |-- frontend/            # Frontend project directory
      |-- package.json     # Node.js dependencies
      |-- src/             # Source code for the frontend
      |-- dist/            # Built frontend files

Notes

  • Keep requirements.txt and package.json updated.
  • For new Python packages, run:
    pip freeze > requirements.txt
  • For new Node.js packages, run:
    npm install <package> --save
  • Always commit both requirements.txt and package-lock.json to version control.

This setup guide ensures a smooth deployment and consistent development experience for your application.


About

An interactive GPT-style web application that lets you query entire folders of PDFs using open-source LLMs from Meta, Microsoft, Google, Mistral, and more.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published