@page "/intelligence" @attribute [Authorize] @using NexusReader.Application.DTOs.AI @using NexusReader.Application.Abstractions.Services @using NexusReader.Application.DTOs.User @using NexusReader.UI.Shared.Components.Atoms @using System.Net.Http.Json @inject HttpClient Http @inject IKnowledgeService KnowledgeService @inject AuthenticationStateProvider AuthStateProvider
Interrogate, explore, and synthesize grounded knowledge from your library using Polyglot KM-RAG
Ask complex questions across your entire ebook collection. The KM-RAG engine dynamically builds semantic maps, resolves dependencies, and formulates high-fidelity, grounded answers with interactive popover citations.
...
html = System.Text.RegularExpressions.Regex.Replace(html, @"```(?:[a-zA-Z0-9+#]+)?\s*([\s\S]*?)\s*```", "$1");
// 5. Inline Code: `code` -> code
html = System.Text.RegularExpressions.Regex.Replace(html, @"`(.*?)`", "$1");
// 6. Newlines: \n ->