Sanad is an innovative technology solution designed to address the critical gaps in Egypt's legal system. By leveraging artificial intelligence and verified legal databases, our platform provides instant, accurate, and affordable criminal law consultations to both individuals and legal professionals.
# Rag-app
This is a minimal implementation of the RAG model for question answering.
## Requirements
- Python 3.8 or later
#### Install Python using MiniConda
1) Download and install MiniConda from here
2) Create a new environment using the following command:
```bash
$ conda create -n Rag-app python=3.8
```
3) Activate the environment:
```bash
$ conda activate Rag-app
```
## Installation
### Install the required packages
```bash
$ pip install -r requirements.txt
```
### Setup the environment variables
```bash
$ cp .env.example .env
```
Set your environment variables in the `.env` file. Like `OPENAI_API_KEY` value.
## Run the FastAPI server
```bash
$ uvicorn main:app --reload --host 0.0.0.0 --port 5000
```
! on deploy no need to "--reload"
## POSTMAN Collection
Download the POSTMAN collection from /assets/Rag-app-dev.postman_collection.json
## API Docs
- Swagger UI:
localhost