Aora is an application designed to leverage AI for advanced document handling and natural language processing. This repository contains both backend and frontend components to get the application up and running.
Highly recommended:
- VSCode
- Python
- Docker
- Node
- Vue - Official by Vue: Inter alia code formatter used for Vue.
- 🛑 Attention: Disable Vetur!
- Remark: The extension is also called Volar.
- Prettier
Further helpful VSCode extensions:
📑 Note: The VSCode settings.json
is pushed to git. In order to properly use the defined formatting settings, you definitely will need the above mentioned extension.
git clone https://github.com/tmeftah/Aora.git
-
Navigate to the backend directory:
cd backend/
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
-
Install all required packages:
pip install -r requirements.txt
-
Run the development server:
fastapi dev
-
Navigate to the frontend directory:
cd frontend
-
Install all necessary packages:
npm install
-
Run the development server:
npm run dev
To create a vector datastore of your documents, you need follow this steps:
- Inside the 'backend/' folder create folder named 'docs' and add you pdf documents.
- run following command
cd backend
Now run the create_embeddings file to create embeddings.
python create_embeddings.py # create embeddings.
-
Create an
.env
file inside thebackend
folder with the following settings:LLM_API_KEY = "<API_KEY>" LLM_API_BASE_URL = "<BASE_URL>"
-
Create an
.env
file inside thefrontend
folder with the following settings for the UI:API=http://ip-address-of-api:port
This project is licensed under the MIT License.
This project is a part of the GenAI project. In case there are any questions, please contact Nikhil Raikar or Tarek Meftah