@@ -1,6 +1,6 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Api.Services.Contracts;
|
||||
using Api.Requests;
|
||||
using Api.Models.Requests;
|
||||
|
||||
namespace Api.Controllers;
|
||||
|
||||
@@ -83,7 +83,7 @@ public sealed class RagController : ControllerBase
|
||||
try
|
||||
{
|
||||
_logger.LogInformation("Semantic search request received. TargetTypes={TargetTypes}, TopK={TopK}",
|
||||
string.Join(',', request.TargetDocumentTypes ?? []), request.TopK);
|
||||
string.Join(',', request.TargetDocumentTypes ?? System.Array.Empty<string>()), request.TopK);
|
||||
var result = await _ragService.SearchAsync(request, ct);
|
||||
_logger.LogInformation("Semantic search completed. ResultCount={ResultCount}", result.Results.Count);
|
||||
return Ok(result);
|
||||
|
||||
Reference in New Issue
Block a user