This commit is contained in:
ValueOn AG 2025-04-17 15:24:38 +02:00
parent 1341051a93
commit a115a89b07
5 changed files with 59 additions and 9 deletions

View file

@ -61,6 +61,8 @@ jobs:
- name: Unzip artifact for deployment
run: unzip release.zip
- name: Set productive environment
run: cp env_prod.env .env
- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v3

4
app.py
View file

@ -32,7 +32,6 @@ import modules.gateway_model as gateway_model
import modules.lucydom_interface as lucydom_model
def init_logging():
# Get log level from config (default to INFO if not found)
log_level_name = APP_CONFIG.get("APP_LOG_LEVEL", "INFO")
@ -72,7 +71,8 @@ def init_logging():
init_logging()
logger = logging.getLogger(__name__)
app = FastAPI(title="PowerOn | Data Platform API", description="Backend-API für die Multi-Agent Platform von ValueOn AG")
instance_label=APP_CONFIG.get("APP_ENV_LABEL")
app = FastAPI(title="PowerOn | Data Platform API", description=f"Backend-API für die Multi-Agent Platform von ValueOn AG ({instance_label})")
# CORS-Konfiguration für Frontend-Anfragen
app.add_middleware(

View file

@ -1,9 +1,14 @@
# Development Environment Configuration
# Using the same flattened key format as config.ini
# Launch Configuration
# System Configuration
APP_ENV_TYPE = dev
APP_ENV_LABEL = Development Instance Patrick
APP_CALL=uvicorn app:app --host 0.0.0.0 --port 8000
# Logging Configuration
APP_LOG_LEVEL=DEBUG
APP_LOG_FILE=app_dev.log
# Database Configuration System
DB_SYSTEM_HOST=D:/Temp/_powerondb
DB_SYSTEM_DATABASE=system
@ -22,7 +27,3 @@ APP_TOKEN_EXPIRY=300
# CORS Configuration
APP_ALLOWED_ORIGINS=["http://localhost:8080","http://localhost:3000"]
# Logging Configuration
APP_LOG_LEVEL=DEBUG
APP_LOG_FILE=app_dev.log

29
env_prod.env Normal file
View file

@ -0,0 +1,29 @@
# Production Environment Configuration
# System Configuration
APP_ENV_TYPE = dev
APP_ENV_LABEL = Production Instance
APP_CALL=uvicorn app:app --host 0.0.0.0 --port 8000
# Logging Configuration
APP_LOG_LEVEL=INFO
APP_LOG_FILE=app_prod.log
# Database Configuration System
DB_SYSTEM_HOST=/home/_powerondb
DB_SYSTEM_DATABASE=system
DB_SYSTEM_USER=dev_user
DB_SYSTEM_PASSWORD_SECRET=prod_password
# Database Configuration LucyDOM
DB_LUCYDOM_HOST=/home/_powerondb
DB_LUCYDOM_DATABASE=lucydom
DB_LUCYDOM_USER=dev_user
DB_LUCYDOM_PASSWORD_SECRET=prod_password
# Security Configuration
APP_JWT_SECRET_SECRET=dev_jwt_secret_token
APP_TOKEN_EXPIRY=300
# CORS Configuration
APP_ALLOWED_ORIGINS=["http://localhost:8080","http://localhost:3000"]

View file

@ -4,6 +4,24 @@
STEP 1...........................
Der user liefert diesen Prompt mit vielen Dateien im Anhang: "Bitte erstellen mir eine Zusammenfassung der Dateien, dann mach einen Index der Dateien mit dem Typ pro Datei und der Summe des Speicherplatzes aller Dokumente. Dann bitte in jedem Dokument 'haben' durch 'hatte' ersetzen.".
Du bist der Projektleiter, welcher dem User die Antwort liefert.
Dazu erstellst Du zuerst eine Liste von Resultaten, welche der User benötigt, mit Angabe von Format.
Dann erstellst Du die Antwort an den Benutzer mit den Resultaten. Dokumente lieferst Du separat als Liste. Falls Du für die Antwort oder die Resultate Inputs von Agenten benötigst, gib bitte als Liste an, wer pro Resultat was liefern muss mit Angabe von Agent,Liste der Inputdokumente, Resultatformat,Liste der Resultatnamen, Prompt für Agent als json.
Diese Agenten stehen zur Verfügung:
. Loop: Er führt repetitive Aufgaben aus. Er benötigt eine Liste von Dokumenten und einen Prompt zur Anwendung auf jedes Dokument, und Resultatformat
. Coder: Er führt Pyton Code aus. Benötigt Prompt und Resultatformat.
STEP 2...........................
We have here an ai agents workflow. a big problem is document extraction. i uploaded a pdf file with a picture inside. in the database i see, that the document has 1 contents, "text" with a endline, marked as "is_extracted=True". it is missing the picture inside the pdf.
I would like to have the following implementation for files in a workflow:
@ -26,7 +44,7 @@ For code implementation I see a big opportunity to massively reduce code. To bui
Based on these 3 functions all operations can be done much more comfortable in the workflow, but also in connection with the ui (download file, copy file, preview file), because all references to the files are always ensured.
STEP 2...........................
STEP 3...........................
All routes: remove error handling details and repeating tasks like user check etc. to pack into auth module, only function calls