feat: chunks recherche (snippets) + script migration
Some checks failed
CI / Deploy production (on server) (push) Has been cancelled
CI / Lint, Unit Tests & Build (push) Has been cancelled

1. Recherche: fetchChunkSnippets() — après le classement RRF existant,
   récupère les passages précis qui matchent depuis NoteEmbeddingChunk.
   Pur affichage, AUCUN changement de classement.

2. Script migration: scripts/migrate-chunk-embeddings.ts
   Indexe toutes les notes existantes en fragments.
   Batch de 10, barre de progression.
   Usage: npx tsx scripts/migrate-chunk-embeddings.ts

3. Memory Echo chunk-level: à faire (US restante)
This commit is contained in:
Antigravity
2026-06-20 17:07:38 +00:00
parent e9e829e579
commit 52c4cb1dee
22 changed files with 373 additions and 32 deletions

View File

@@ -0,0 +1,2 @@
# Copy to metrics-token at deploy time (see scripts/deploy-prod.sh)
# Example: openssl rand -hex 32 > monitoring/metrics-token

View File

@@ -18,6 +18,11 @@ scrape_configs:
static_configs:
- targets: ['memento-note:3000']
- job_name: 'mcp-server'
metrics_path: '/metrics'
static_configs:
- targets: ['mcp-server:3001']
- job_name: 'node-exporter'
static_configs:
- targets: ['node-exporter:9100']