@@ -0,0 +1,11 @@
|
||||
namespace Api.Models.Requests
|
||||
{
|
||||
public sealed class IndexDocumentRequest
|
||||
{
|
||||
public string? Text { get; set; }
|
||||
public string? SourceUrl { get; set; }
|
||||
public string? DocumentType { get; set; }
|
||||
public string? Title { get; set; }
|
||||
public Dictionary<string, string>? Metadata { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace Api.Models.Requests
|
||||
{
|
||||
public sealed class SearchRequest
|
||||
{
|
||||
public required string QueryText { get; init; }
|
||||
public IReadOnlyList<string>? TargetDocumentTypes { get; init; }
|
||||
public int? TopK { get; init; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user