AI-Copilot is an AI-powered assistant designed to streamline the workflow by integrating with OpenAI by using the Embedchain Framework. By leveraging advanced natural language processing capabilities, AI-Copilot assists users in various tasks, such as generating text and answering questions.
- Python 3.11 (3.9 <= version < 3.12)
- OpenAI
- Python framework and libraries: Flask-RESTful, dotenv, Embedchain
-
Clone the repository
-
Install Python: https://www.python.org/downloads/
-
Setup Python virtual environment:
python -m venv openai-env
-
Activate virtual environment:
On Windows:
openai-env\Scripts\activate
On Unix or MacOS:
source openai-env/bin/activate
-
Install library dependencies:
pip install -r requirement.txt
Declare your OPEN_AI_KEY in .env
file
Run the app by: python3 main.py
In local development, the app will run with default port 5000
: http:127.0.0.1:5000/ai/query
Use the curl above to query:
curl --location '127.0.0.1:5000/ai/query' \ --data '{ "question": "Create a project report for the project Library Renovation. The report should include the project name, description, how long this project completed? (give a specific days),the status of this project, the earned value" }'
Please use develop
branch to develop a new feature.