26 lines
810 B
C#
26 lines
810 B
C#
namespace Api.Responses
|
|
{
|
|
public sealed class SearchResponse
|
|
{
|
|
public IReadOnlyList<SearchDocumentResult> Results { get; init; } = [];
|
|
}
|
|
|
|
public sealed class SearchDocumentResult
|
|
{
|
|
public required string DocumentId { get; init; }
|
|
public required string DocumentType { get; init; }
|
|
public required string Title { get; init; }
|
|
public string? SourceUrl { get; init; }
|
|
public double Score { get; init; }
|
|
public IReadOnlyList<SearchChunkResult> MatchedChunks { get; init; } = [];
|
|
}
|
|
|
|
public sealed class SearchChunkResult
|
|
{
|
|
public required string ChunkId { get; init; }
|
|
public int ChunkIndex { get; init; }
|
|
public required string Text { get; init; }
|
|
public double Score { get; init; }
|
|
}
|
|
}
|