Git Product home page Git Product logo

s4shreya / abc-ask-me-anything Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 179 KB

It is a Full stack web application where user can upload pdf document and ask questions related to its content.

Home Page: https://abc-ask-me-anything-frontend.vercel.app/

JavaScript 47.70% HTML 1.53% CSS 18.20% Python 32.57%
react axios cors-middleware fastapi langchain-python openai pymupdf sqlalchemy sqlite

abc-ask-me-anything's Introduction

Ask Me Anything App - Full Stack web application

Technologies and tools used

  1. Frontend: React.js
  2. Backend: FastAPI
  3. Database: SQLite
  4. Tools: SQLAlchemy, CORS middleware, axios, python-multipart, PyMuPDF
  5. NLP: langchain
  6. LLM Model: OpenAI

Installation setup for frontend

cd frontend/
npm install
npm run dev

Installation setup for backend FastAPI

  1. Create a virtual environment for the python code in FastAPI application:
py -m venv env                                       // creates a virtual environment for the project
  1. Activate virtual environment
env/Scripts/activate                                 // we can use any name instead of env
  1. Install dependencies
pip install -r requirements.txt               // installs all the dependencies mentioned in the requirements.txt file
  1. To start the FastAPI application
cd backend/
uvicorn main:app --reload

Usage of application

The Ask Me Anything app allows users to upload PDF and then ask questions based on it. The application processes the text of the uploaded PDF and then outputs an answer to the asked question.

Note:

  1. Add a config.js file in the frontend directory that contains the backend URL as:
export const BASE_URL = "http://localhost:8000";
  1. Add the OpenAI API key in the .env file in the backend directory to use the OpenAI llm model.
export OPENAI_API_KEY="xxxx"
  1. Get the OpenAI API key from: https://platform.openai.com/api-keys

abc-ask-me-anything's People

Contributors

s4shreya avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.