feat(chat+edit): feed all profile fields to NordaGPT and add hints
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions

Added description_full, core_values, services_offered, and
technologies_used to the AI context builder. Previously only
description_short and founding_history were used by NordaGPT.

Added "Wykorzystywany przez NordaGPT" hints to all relevant fields
in the company edit form so users know their content feeds the AI.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Maciej Pienczyn 2026-03-18 18:15:52 +01:00
parent b3982a3309
commit 5682e1622f
2 changed files with 15 additions and 4 deletions

View File

@ -662,8 +662,16 @@ class NordaBizChatEngine:
# Only include non-empty fields to save tokens
if c.description_short:
compact['desc'] = c.description_short
if c.description_full:
compact['about'] = c.description_full
if c.founding_history:
compact['history'] = c.founding_history # Owners, founders, history
compact['history'] = c.founding_history
if c.core_values:
compact['values'] = c.core_values
if c.services_offered:
compact['offerings'] = c.services_offered
if c.technologies_used:
compact['tech'] = c.technologies_used
if c.services:
services = [cs.service.name for cs in c.services if cs.service]
if services:

View File

@ -799,26 +799,28 @@
<div class="char-counter" id="shortDescCounter">
<span id="shortDescCount">{{ (company.description_short or '') | length }}</span>/500 znaków
</div>
<p class="form-help">Widoczny na liście firm i w wynikach wyszukiwania</p>
<p class="form-help">Widoczny na liście firm i w wynikach wyszukiwania · <strong>Wykorzystywany przez NordaGPT</strong></p>
</div>
<div class="form-group">
<label class="form-label">Pełny opis działalności</label>
<div class="quill-container quill-tall" id="quill-description_full"></div>
<textarea id="description_full" name="description_full" style="display:none;">{{ company.description_full or '' }}</textarea>
<p class="form-help">Użyj paska narzędzi do formatowania tekstu</p>
<p class="form-help">Użyj paska narzędzi do formatowania tekstu · <strong>Wykorzystywany przez NordaGPT</strong></p>
</div>
<div class="form-group">
<label class="form-label">Historia i doświadczenie</label>
<div class="quill-container" id="quill-founding_history"></div>
<textarea id="founding_history" name="founding_history" style="display:none;">{{ company.founding_history or '' }}</textarea>
<p class="form-help"><strong>Wykorzystywany przez NordaGPT</strong> — historia firmy, założyciele, doświadczenie</p>
</div>
<div class="form-group">
<label class="form-label">Wartości i misja</label>
<div class="quill-container" id="quill-core_values"></div>
<textarea id="core_values" name="core_values" style="display:none;">{{ company.core_values or '' }}</textarea>
<p class="form-help"><strong>Wykorzystywany przez NordaGPT</strong> — wartości i misja firmy</p>
</div>
</fieldset>
</div>
@ -836,12 +838,13 @@
<label class="form-label">Oferowane usługi i produkty</label>
<div class="quill-container quill-tall" id="quill-services_offered"></div>
<textarea id="services_offered" name="services_offered" style="display:none;">{{ company.services_offered or '' }}</textarea>
<p class="form-help">Użyj paska narzędzi do formatowania tekstu</p>
<p class="form-help">Użyj paska narzędzi do formatowania tekstu · <strong>Wykorzystywany przez NordaGPT</strong></p>
</div>
<div class="form-group">
<label for="technologies_used" class="form-label">Technologie i specjalizacje</label>
<textarea id="technologies_used" name="technologies_used" class="form-input" rows="4" placeholder="Używane technologie, narzędzia, certyfikaty...">{{ company.technologies_used or '' }}</textarea>
<p class="form-help"><strong>Wykorzystywany przez NordaGPT</strong> — technologie i specjalizacje</p>
</div>
<div class="form-row">