Skip to content

Geers-Tandil/hackaton-usina

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instructions to run the app locally (both front and back)

Front end setup

  1. Install node
  2. Change to front-end folder
    cd front-end
  3. Install dependencies
    npm install
  4. Build the site (El build generará la carpeta dist con la app, que es servida por el backend.)
    npm run build

Backend setup (Run these steps at the root of the repo)

  1. Install uv

    curl -LsSf https://astral.sh/uv/install.sh | sh
  2. Install Python

    uv python install 3.10
  3. Setup Python virtual Environment

    uv venv --python 3.10
    source .venv/bin/activate
  4. Install dependencies

    uv pip install -r requirements.txt
  5. Configure the environment variables. Create a .env file with these variables:

    OPENAI_API_KEY = <Your OpenAI API key>
    LLM_MODEL = gpt-4o-mini
    
    EMBEDDINGS_MODEL="text-embedding-3-small" 
    TRAMITES_DB="./tramites/tramites_db"
    ORGANIGRAMA_DB="sqlite:///organigrama/usina.db"
    HISTORIA_DB="./historia/output/historia_db"

Start the app

uvicorn router.main:app --reload --log-level debug    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 8