Skip to content

Upload the files using the datamapper UI. Use that python backend we retrieve datamappings and record definitons.

Notifications You must be signed in to change notification settings

VellummyilumVinoth/Datamapper_backend_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Upload the files using the datamapper UI. Use that python backend we retrieve datamappings and record definitons.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published