Skip to content

Latest commit

 

History

History
54 lines (46 loc) · 1.28 KB

File metadata and controls

54 lines (46 loc) · 1.28 KB

Context upload for auto datamapping

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.

Steps to setup development environment

  1. Clone the repository and navigate to the backend directory
  2. Install Python 3.8 or higher ( 3.10 is recommended )
  3. Create a virtual environment and activate it
python -m venv .venv
source .venv/bin/activate
  1. 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
  1. Add the environment variables to a .env file in the backend directory
echo "ANTHROPIC_API_KEY=<your_anthropic_api_key>" >> .env
  1. Start Copilot server
  • With Uvicorn single worker (for development)
uvicorn app:app --port 8000 --reload 

Production deployment

Copilot server can be easily deployed to WSO2 choreo with Asgardeo as IDP

Docs