Files
loki/scripts
Mao NakamotoandClaude Opus 4.8 09fb142d52 fix(rag): page embeds + insert-first reindex (index-empty regression)
Section-chunking grew the index to ~669 chunks; embedTexts sent them in ONE
request, which overran the local embed server ("fetch failed") → 0 embedded.
Combined with deleting owned rows BEFORE inserting, that emptied the index.
- embedTexts pages requests (48/batch); a failed page nulls only its inputs.
- reindexer is insert-first, prune-after (pruneKnowledgeToIds); an embed outage
  can no longer empty the index.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-09 07:53:15 +02:00
..