Lars
772a202d6e
neu graph explorer service
2025-12-14 08:27:15 +01:00
Lars
dc16bbf8a4
bidirektionale Kanten
2025-12-14 08:07:53 +01:00
Lars
028ad7e941
UI erste Version
2025-12-14 07:34:51 +01:00
Lars
620858a575
neue Dokumentationstruktur - (QS geprüft)
Deploy mindnet to llm-node / deploy (push) Successful in 4s
2025-12-13 18:38:37 +01:00
Lars
0bb5f57cc6
programmplan
Deploy mindnet to llm-node / deploy (push) Successful in 3s
2025-12-13 16:51:55 +01:00
Lars
0a4374dc8c
docs/dev_workflow.md aktualisiert
Deploy mindnet to llm-node / deploy (push) Successful in 4s
2025-12-13 10:10:18 +01:00
Lars
8afa402118
docs/dev_workflow.md aktualisiert
Deploy mindnet to llm-node / deploy (push) Successful in 4s
2025-12-13 10:09:05 +01:00
Lars
1eee189a49
README.md aktualisiert
Deploy mindnet to llm-node / deploy (push) Successful in 3s
2025-12-13 06:48:13 +01:00
Lars
d2e0b48aa5
Merge pull request 'WP15' ( #9 ) from WP15 into main
...
Deploy mindnet to llm-node / deploy (push) Successful in 3s
Reviewed-on: #9
### MERGE: WP-15 Smart Edge Allocation & Traffic Control (v2.6.0)
**Zusammenfassung:**
Dieses Merge Request schließt das Workpackage WP-15 ab. Die Kernziele – präzisere Kanten-Zuweisung und System-Stabilität unter LLM-Last – wurden erreicht. Die Implementierung der LLM-basierten Smart Edges ist damit produktionsreif.
**Kern-Features:**
1. **Smart Edge Allocation:** Kanten werden nun LLM-geprüft und nur an die spezifischen Chunks gebunden, in denen der verlinkte Inhalt relevant ist. Das reduziert "Beifang" im Retrieval und erhöht die Präzision.
* Steuerung: Über `types.yaml` (`enable_smart_edge_allocation`).
2. **Traffic Control & Resilienz:** Der `LLMService` implementiert Prioritäts-Warteschlangen (`priority="realtime"` vs. `"background"`).
* **Ergebnis:** Chat-Anfragen haben Vorfahrt und das System stürzt während rechenintensiver Importe nicht mehr mit Timeouts ab. Die Parallelität des Imports ist über `MINDNET_LLM_BACKGROUND_LIMIT` konfigurierbar.
3. **UI Robustheit:** Der "Healing Parser" im Frontend (`ui.py`) repariert automatisch kaputte YAML-Frontmatter in LLM-generierten Drafts.
**Betroffene Komponenten:**
* `app/services/llm_service.py` (Traffic Control / Semaphore)
* `app/core/chunker.py` / `app/services/semantic_analyzer.py` (Smart Edge Logik / Retry)
* `app/routers/chat.py` (Hybrid Router v5 / Question Detection)
* `app/frontend/ui.py` (Healing Parser / API-Timeouts)
* `config/types.yaml` (Neue Profile & Smart Edge Flag)
**Aktionen nach Merge:**
* **Admins:** `MINDNET_LLM_BACKGROUND_LIMIT` in der Produktions-.env prüfen und ggf. anpassen.
* **Initialisierung:** Bei Änderung der Chunking-Profile ist ein Full Rebuild notwendig.
2025-12-13 06:39:48 +01:00
Lars
302e2a3d24
Doku Update
2025-12-13 06:37:24 +01:00
Lars
faaa3ef55f
dokumentation WP15
2025-12-12 22:54:59 +01:00
Lars
70ffa5cd4e
Frage wird durch ? oder Fragewort identifiziert
2025-12-12 21:56:17 +01:00
Lars
65bcea71ee
ui. save draft timeout angepasst
2025-12-12 21:26:53 +01:00
Lars
16af07dd21
stabilität und .env variable
2025-12-12 19:36:33 +01:00
Lars
fc4c868eaa
fix und umbau fast and slow lane für UI und batch
2025-12-12 19:00:35 +01:00
Lars
1fe9582cbe
bug fix
2025-12-12 18:10:26 +01:00
Lars
d34f388ee1
bug fix WP11
2025-12-12 17:53:31 +01:00
Lars
4cd82d1d2b
ui fix
2025-12-12 17:31:03 +01:00
Lars
fb6e35ed01
ui
2025-12-12 17:21:15 +01:00
Lars
0ba8ae8d1e
ui aus WP11
2025-12-12 17:01:34 +01:00
Lars
1121d63383
ui, save problem fix
2025-12-12 16:46:13 +01:00
Lars
0b8f0a6c22
neue architekturaufteilung für chat in WP11 gebaut
2025-12-12 16:32:11 +01:00
Lars
30047f8e00
ui fix prompt fix
2025-12-12 15:55:08 +01:00
Lars
7b6cc8da7c
ui.fix für WP11
2025-12-12 15:44:16 +01:00
Lars
c5e613d2b1
verschlanken aus Sicht WP11
2025-12-12 15:31:37 +01:00
Lars
d965d96cde
test script
2025-12-12 15:03:20 +01:00
Lars
65bc7622f8
prompt korrigiert
2025-12-12 13:59:36 +01:00
Lars
844d13316a
korrektur prompt
2025-12-12 13:55:11 +01:00
Lars
a403d8baf6
neue Wartelogik, neuer Prompt
2025-12-12 13:53:54 +01:00
Lars
d25d623b9c
logging für import_markdown
2025-12-12 13:26:31 +01:00
Lars
1e3fcc1633
types angepasst
2025-12-12 13:19:28 +01:00
Lars
0d28a6c1a7
korrigierte types.yaml
2025-12-12 13:06:55 +01:00
Lars
87083355ee
WP15 Bug fixing
2025-12-12 12:58:24 +01:00
Lars
7e9e496d86
neue Programmplan
2025-12-12 12:45:45 +01:00
Lars
d93b9b30ae
semantic_analyzer verschachtelete Strukturen
2025-12-12 12:07:27 +01:00
Lars
7fc316d284
bug
2025-12-12 12:04:31 +01:00
Lars
e27b1f4621
bug fix
2025-12-12 11:56:44 +01:00
Lars
3c19e192bc
bug fixing
2025-12-12 11:45:43 +01:00
Lars
df971f9c56
neuer start semantic chunker
2025-12-12 11:40:38 +01:00
Lars
ecc2b60427
integration prompts.yaml
2025-12-12 10:39:40 +01:00
Lars
2826cbadbc
bug raten
2025-12-12 10:32:01 +01:00
Lars
a2856bfe87
bug fix
2025-12-12 10:30:38 +01:00
Lars
69617802c3
bug fixing chunker
2025-12-12 10:27:57 +01:00
Lars
135c02bc9a
bug fixing
2025-12-12 10:25:01 +01:00
Lars
cd28a9d35c
neue chunker strategie mit smart chunking
2025-12-12 10:10:05 +01:00
Lars
49cdc9a13f
modified: app/services/semantic_analyzer.py
2025-12-12 09:44:01 +01:00
Lars
3629bc3fb9
modified: app/services/semantic_analyzer.py
2025-12-12 09:42:57 +01:00
Lars
37c0f526ec
modified: app/services/semantic_analyzer.py
2025-12-12 09:41:06 +01:00
Lars
bf40169662
WP15
2025-12-12 09:35:21 +01:00
Lars
9fbf0b7c91
modified: app/services/semantic_analyzer.py
2025-12-12 09:22:00 +01:00
Lars
652d22e8e8
modified: tests/test_smart_chunking_integration.py
2025-12-12 09:18:36 +01:00
Lars
94dbaafc72
modified: tests/test_smart_chunking_integration.py
2025-12-12 09:16:25 +01:00
Lars
69ad7bc823
testscript
2025-12-12 09:14:18 +01:00
Lars
d59bd1885d
WP15 testscript
2025-12-12 09:11:01 +01:00
Lars
f6d8751f23
WP15-Chunker und Test
2025-12-12 09:07:33 +01:00
Lars
9a38daafc0
WP15 - Chunker
2025-12-12 09:02:32 +01:00
Lars
e5bc77b93e
neues testscript für smart chunker
2025-12-12 08:59:08 +01:00
Lars
2bcf1930fe
WP15 Chunker
2025-12-12 08:57:25 +01:00
Lars
2d58220a3c
chunker angepasst
2025-12-12 08:53:30 +01:00
Lars
8436f4192d
neuer chunker und smart test
2025-12-12 08:47:12 +01:00
Lars
13ab2b7d68
chunker mit LLM initial
2025-12-11 23:21:24 +01:00
Lars
714763f92f
pfad auf types.yaml angepasst
2025-12-11 22:48:31 +01:00
Lars
a1cd0741c9
smarter chunker initial
2025-12-11 22:39:35 +01:00
Lars
c741cc7d1b
vault
Deploy mindnet to llm-node / deploy (push) Successful in 3s
2025-12-11 22:29:03 +01:00
Lars
e8b8c9a350
types.yaml angepasst
Deploy mindnet to llm-node / deploy (push) Successful in 4s
2025-12-11 22:02:44 +01:00
Lars
f016a16c68
Merge pull request 'WP11' ( #8 ) from WP11 into main
...
Deploy mindnet to llm-node / deploy (push) Successful in 3s
Reviewed-on: #8
# Merge Request: WP-11 Backend Intelligence & Async Core (v2.4.0)
**Branch:** `feature/wp11-backend-intelligence` → `main`
**Reviewer:** @Mindmaster
**Status:** ✅ Ready to Merge
## 🎯 Zielsetzung
Dieses Update implementiert die "Active Intelligence" Architektur. Das System wechselt von einer reaktiven Suche zu einem proaktiven Assistenten, der während des Schreibens im Editor semantische Verknüpfungen vorschlägt. Zudem wurde der gesamte Core auf `asyncio` umgestellt, um Timeouts bei der Generierung zu verhindern.
## 🛠 Technische Änderungen
### 1. Async & Performance
* **Ingestion:** `scripts/import_markdown.py` und `app/core/ingestion.py` laufen nun asynchron.
* **Embeddings:** Neuer `EmbeddingsClient` nutzt `httpx` statt `requests` (Non-blocking).
* **Semaphore:** Import nutzt max. 5 parallele Tasks, um Ollama-Überlastung zu verhindern.
### 2. Quality Upgrade (Nomic)
* **Modell:** Wechsel von `sentence-transformers` (384 dim) auf `nomic-embed-text` (768 dim).
* **Effekt:** Massiv verbesserte semantische Trefferquote (siehe "Italien-Test").
### 3. Intelligence Features
* **Active Intelligence:** Neuer Endpoint `/ingest/analyze` analysiert Drafts mittels "Sliding Window".
* **Exact Match:** Erkennt Aliases (z.B. "KI-Gedächtnis") zuverlässig.
* **Matrix Logic:** `DiscoveryService` wählt Kanten-Typen kontextsensitiv (z.B. `experience` + `value` -> `based_on`).
### 4. Frontend Integration
* **UI:** Neuer Tab "🧠 Intelligence" im manuellen Editor.
* **State:** "Resurrection Pattern" verhindert Datenverlust beim Tab-Wechsel.
## ⚠️ Breaking Changes (WICHTIG für Deployment)
Dieses Release ist **nicht abwärtskompatibel** zur Datenbank von v2.3!
1. **Vektor-Dimension:** Geändert von 384 auf 768.
2. **Ollama:** Modell `nomic-embed-text` ist PFLICHT.
3. **Config:** `.env` benötigt `VECTOR_DIM=768` und `MINDNET_EMBEDDING_MODEL`.
## 🧪 Test-Protokoll
| Test | Befehl | Status |
| :--- | :--- | :--- |
| **Alias Lookup** | `python debug_analysis.py` | ✅ Pass |
| **Async Import** | `python -m scripts.import_markdown ...` | ✅ Pass |
| **API Intelligence** | `curl ... /ingest/analyze` | ✅ Pass |
| **UI Interaction** | Editor öffnen -> Analyse -> Link einfügen | ✅ Pass |
## 🔄 Deployment Schritte
Nach dem Merge auf dem Server ausführen:
1. `git pull`
2. `pip install -r requirements.txt`
3. `ollama pull nomic-embed-text`
4. **DB Reset:** `python -m scripts.reset_qdrant --mode wipe --prefix mindnet --yes`
5. **Re-Import:** `python -m scripts.import_markdown --vault ./vault --prefix mindnet --apply --force`
6. `sudo systemctl restart mindnet-prod mindnet-ui-prod`
2025-12-11 17:00:37 +01:00
Lars
5bf91d51da
Dokumentation WP11
2025-12-11 16:58:23 +01:00
Lars
00aecf692d
UI Texteditor merkt sich den Inhalt bei Umschalten
2025-12-11 15:12:30 +01:00
Lars
b815f6235f
mehrdimensionale matrix für Kanten
2025-12-11 14:59:59 +01:00
Lars
a1a58727fd
discovery opt - deduplicate, last 300 Zeichen
2025-12-11 14:46:56 +01:00
Lars
b1cf89982b
anpassung an 786 vector
2025-12-11 14:28:46 +01:00
Lars
5fa02aed2d
bug fix
2025-12-11 14:20:00 +01:00
Lars
1fde4ed72a
reset qdrant überarbeitet mit .env parametern
2025-12-11 13:57:19 +01:00
Lars
52210a91fd
update aus WP11
2025-12-11 13:50:40 +01:00
Lars
9d792e11ce
ui change
2025-12-11 13:26:14 +01:00
Lars
2677ad7269
bug fix ui
2025-12-11 13:15:43 +01:00
Lars
98c395b5de
Ui bug fix
2025-12-11 13:05:05 +01:00
Lars
b4ebbe5c28
WP10 ui mit text buffer
2025-12-11 12:56:16 +01:00
Lars
88e2cbf254
WP10, neue UI mit echtem manuellem Editor/Import
2025-12-11 12:40:39 +01:00
Lars
b153571933
hard mode ingestion
2025-12-11 12:23:06 +01:00
Lars
aba6f0c38b
render draft_editor in ui.py
2025-12-11 12:11:55 +01:00
Lars
f4299db347
WP10 Überarbeitung
2025-12-11 12:04:08 +01:00
Lars
06f77fe8b7
debug mode im router
2025-12-11 11:35:27 +01:00
Lars
54e38d58c3
UI um debug Modus
2025-12-11 11:28:16 +01:00
Lars
fd47a954bd
bug fix
2025-12-11 11:11:01 +01:00
Lars
5aae33f578
bug fixing
2025-12-11 10:46:37 +01:00
Lars
4ed04039e5
async
2025-12-11 10:32:56 +01:00
Lars
e7cec6acc6
new ingestion, asyn writing, robust
2025-12-11 10:23:23 +01:00
Lars
a7cda3f51c
bugfix
2025-12-11 08:18:41 +01:00
Lars
d2ee48555a
angepasste UI
2025-12-11 07:46:27 +01:00
Lars
8639791914
payload angepasst
2025-12-11 07:34:31 +01:00
Lars
765fad6a8d
neuer discovery mode
2025-12-11 07:25:24 +01:00
Lars
408c4ace93
import auf .env
2025-12-10 22:22:56 +01:00
Lars
565d34fb7b
Ergänzung und Korrektur
2025-12-10 22:17:40 +01:00
Lars
0170d9291f
erster Stand
2025-12-10 22:05:35 +01:00
Lars
865b261294
neuer Importer mit eigenem Service
2025-12-10 21:41:43 +01:00
Lars
62aa24a4bc
Merge pull request 'WP07' ( #7 ) from WP07 into main
...
Deploy mindnet to llm-node / deploy (push) Successful in 3s
Reviewed-on: #7
# Feature: Interview Assistent & Draft Editor (WP-07 + WP-10a)
**PR Typ:** Feature
**Version:** v2.4.0
**Status:** ✅ Tested & Documented
## 📝 Zusammenfassung
Dieser Merge transformiert Mindnet von einem reinen RAG-System (Lesen) in ein **Co-Creation-System (Schreiben)**.
Implementiert wurden der **One-Shot Interview Modus**, der auf Basis von User-Prompts strukturierte Markdown-Entwürfe generiert, sowie ein **Frontend-Editor**, um diese Entwürfe zu finalisieren und herunterzuladen.
## 🛠 Technische Änderungen
### Backend (WP-07)
* **`app/routers/chat.py`**:
* Neue Logikweiche für Intent `INTERVIEW` (kein RAG-Retrieval).
* Implementierung von `_detect_target_type` (Keyword-Matching für Schemas).
* Dynamische Injektion von Pflichtfeldern in den Prompt.
* **`config/decision_engine.yaml`**:
* Neuer Intent `INTERVIEW` definiert.
* **Late Binding Schemas:** Definition der Pflichtfelder für `project`, `decision`, `goal`, etc.
* **`config/prompts.yaml`**:
* Neues `interview_template` mit "One-Shot Extraction" Logik und striktem Markdown-Output-Format.
### Frontend (WP-10a)
* **`app/frontend/ui.py`**:
* Neues Widget `render_draft_editor`: Erkennt Drafts und rendert `st.text_area`.
* **Sanitizer:** `normalize_meta_and_body` repariert halluzinierte YAML-Header des LLMs.
* Export-Funktion (Download als `.md`).
### Dokumentation (WP-14)
* Update auf **v2.4.0** für alle Core-Docs (`Overview`, `Tech Arch`, `User Guide`, `Admin Guide`).
* Aktualisierung `Programmplan_V2.2.md` (WP-07/10a auf Grün).
## ✅ Test-Coverage
* [x] Intent `INTERVIEW` wird via Keywords ("neues projekt") erkannt.
* [x] One-Shot Extractor liefert validen Markdown-Codeblock.
* [x] UI rendert Editor statt Chat-Blase.
* [x] Sanitizer fängt falsche YAML-Keys (z.B. 'situation') ab und schiebt sie in den Body.
2025-12-10 18:57:14 +01:00
Lars
f2de556c16
dokumentation
2025-12-10 18:55:38 +01:00
Lars
67d865d373
ui und prompt
2025-12-10 18:13:35 +01:00
Lars
5c0a36c9ea
Debug 2
2025-12-10 17:43:03 +01:00