An open API service indexing awesome lists of open source software.

https://github.com/uzair-manzoor/query-docs-backend

The QueryDocs backend is built with FastAPI, handles PDF uploads, extracts text using PyMuPDF, and processes queries with LangChain's NLP capabilities. It stores document metadata in a SQLite database, ensuring efficient document management and accurate answers to user questions.
https://github.com/uzair-manzoor/query-docs-backend

fastapi fastapi-sqlalchemy langchain llms python-3 rander

Last synced: 3 months ago
JSON representation

The QueryDocs backend is built with FastAPI, handles PDF uploads, extracts text using PyMuPDF, and processes queries with LangChain's NLP capabilities. It stores document metadata in a SQLite database, ensuring efficient document management and accurate answers to user questions.

Awesome Lists containing this project

README

        

## Setup Instructions

### Backend
1. Navigate to the `backend` directory.
2. Install dependencies: `pip install -r requirements.txt`
3. Run the application: `uvicorn main:app --reload`

### Frontend
1. Navigate to the `frontend` directory.
2. Install dependencies: `npm install`
3. Run the application: `npm start`

### 🔘 Follow the link for [Frontend Source Code](https://github.com/Uzair-Manzoor/query-docs-frontend.git)

## API Documentation

### Upload PDF
- Endpoint: `/upload`
- Method: `POST`
- Body: `file` (form-data)

### Ask Question
- Endpoint: `/ask`
- Method: `POST`
- Body: `filename`, `question`

## Application Overview
The application allows users to upload PDF documents and ask questions about their content. The backend uses FastAPI to handle requests and LangChain for NLP processing. The frontend is built with React.js.