Skip to content

TheDeadcoder/InsightAI-python-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InsightAI Backend

InsightAI Logo

Overview

Welcome to the backend of InsightAI, an application designed to revolutionize your productivity. This backend is built using FastAPI, providing a robust and efficient structure for our application.

Technologies Used

  • FastAPI: A modern, fast (high-performance), web framework for building APIs with Python 3.6+.
  • LLAMAPARSE: For document parsing
  • Serper: For Web-search
  • Qdrant: For Vector Database
  • OpenAI: As Ai model
  • Structured-output: For structuring openai response
  • beautifulsoup4: For scraping web content
  • Roboflow: For generating embedding for image
  • Supabase: Used for database hosting and authentication.

Getting Started

Making the Environment

To make a virtual environment, use the following command:

python3 -m venv .venv

Activate the virtual Environment:

source .venv/bin/activate

Install the Requirements:

Install The requirements with the following command:

pip install -r requirements.txt

It may lag. So better add a timeout

pip install -r requirements.txt --timeout=1000

Running the Backend

To run the backend server, use the following command:

uvicorn app.main:app --reload

The app will start:

http://127.0.0.1:8000/

Once the application is running, you can access the API documentation provided by Swagger at:

http://127.0.0.1:8000/docs

Here, you can explore and interact with the various API endpoints.

Changes will migrate automatically

Endpoints

Endpoints are defined in api/api_v1/endpoints/

Helper functions

Helper functions are defined in /helpers. Most LLM Tasks will be performed here

Environment File

It will be provided Privately

Workflow Diagram

Study Companion Module

The Study Companion module consists of two main components:

  1. Resource Management Study Companion - Resource Management

  2. Productivity (Note Generation, Quiz & Flashcards) Study Companion - Productivity

Project Planner Module

Project Planner

ShopGenie Module

ShopGenie

These diagrams provide a high-level overview of the system flow for each module in the InsightAI application. They illustrate the key components and interactions within each module, helping developers and stakeholders understand the overall architecture and data flow.

Deployment

The application is hosted in Render