Upload the files/contents using the datamapper UI. Use that python backend we retrieve datamappings, record definitons and function signature. The source code is maintained in this repository.
- Clone the repository and navigate to the backend directory
- Install Python 3.8 or higher ( 3.10 is recommended )
- Create a virtual environment and activate it
python -m venv .venv
source .venv/bin/activate
- Install the dependencies
pip install -r requirements.txt
# Following libraries are used in the project
fastapi
uvicorn
gunicorn
python-dotenv
openai
pillow
tenacity
python-multipart
anthropic
pillow_heif
python-docx
reportlab
- Add the environment variables to a .env file in the backend directory
echo "ANTHROPIC_API_KEY=<your_anthropic_api_key>" >> .env
- Start Copilot server
- With Uvicorn single worker (for development)
uvicorn app:app --port 8000 --reload
Copilot server can be easily deployed to WSO2 choreo with Asgardeo as IDP
- OpenAPI - http://127.0.0.1:8000/docs
- Redoc - http://127.0.0.1:8000/redoc
- OpenAPI JSON - http://127.0.0.1:8000/openapi.json
- OpenAPI YAML - http://127.0.0.1:8000/openapi.yaml