feat(ai-chat): show RAG indexing coverage in AI settings

Display "Indexed N of M pages" on the AI provider settings page so admins
can see how much of the wiki is covered by vector-RAG semantic search.

- page-embedding.repo: add countIndexedPages() — distinct non-deleted pages
  that have stored embeddings in the workspace
- page.repo: add countByWorkspace() — total non-deleted pages
- ai-settings.service: compute both counts in getMasked() (Promise.all) and
  return them with the masked settings; inject PageEmbeddingRepo + PageRepo
- MaskedAiSettings / IAiSettings: add indexedPages + totalPages
- ai-provider-settings: render a dimmed coverage line under "Embedding model"
- i18n: add the "Indexed {{indexed}} of {{total}} pages" key (en-US, ru-RU)
This commit is contained in:
vvzvlad
2026-06-17 23:18:51 +03:00
parent 48c158bb7e
commit 1f2d20244e
8 changed files with 68 additions and 1 deletions

View File

@@ -92,6 +92,7 @@
"Import pages": "Импорт страниц",
"Import pages & space settings": "Импорт страниц и настройки пространства",
"Importing pages": "Импортирование страниц",
"Indexed {{indexed}} of {{total}} pages": "Проиндексировано {{indexed}} из {{total}} страниц",
"invalid invitation link": "недействительная ссылка-приглашение",
"Invitation signup": "Регистрация по приглашению",
"Invite by email": "Пригласить по электронной почте",