feat(search/rag): implement NexusSearchBox, dynamic Qdrant collection auto-provisioning, batch vector ingestion, mobile Serilog logging, and resolve 401 auth handler error #51
@@ -6,6 +6,8 @@
|
||||
@using System.Net.Http.Json
|
||||
@inject HttpClient Http
|
||||
@inject IKnowledgeService KnowledgeService
|
||||
@inject AuthenticationStateProvider AuthStateProvider
|
||||
|
||||
|
||||
<div class="intelligence-page">
|
||||
<header class="intelligence-header">
|
||||
@@ -422,7 +424,10 @@
|
||||
ebookId = parsedId;
|
||||
}
|
||||
|
||||
var result = await KnowledgeService.AskQuestionAsync(_question, "tenantId", ebookId);
|
||||
var authState = await AuthStateProvider.GetAuthenticationStateAsync();
|
||||
var tenantId = authState.User.FindFirst("TenantId")?.Value ?? "global";
|
||||
|
||||
var result = await KnowledgeService.AskQuestionAsync(_question, tenantId, ebookId);
|
||||
if (result.IsSuccess)
|
||||
{
|
||||
_response = result.Value;
|
||||
|
||||
Reference in New Issue
Block a user