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.
- 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.
To make a virtual environment, use the following command:
python3 -m venv .venv
Activate the virtual Environment:
source .venv/bin/activate
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
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 are defined in api/api_v1/endpoints/
Helper functions are defined in /helpers. Most LLM Tasks will be performed here
It will be provided Privately
The Study Companion module consists of two main components:
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.
The application is hosted in Render