@@ -1,9 +1,9 @@
|
||||
namespace Api.Services.Contracts
|
||||
{
|
||||
public sealed record CaptchaVerdict(bool Success, string? Error, double? Score);
|
||||
using Api.Services.Contracts.Models;
|
||||
|
||||
namespace Api.Services.Contracts
|
||||
{
|
||||
public interface ICaptchaVerifier
|
||||
{
|
||||
Task<CaptchaVerdict> VerifyAsync(string token, string? userIp, CancellationToken ct);
|
||||
Task<CaptchaVerdictModel> VerifyAsync(string token, string? userIp, CancellationToken ct);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Api.Models;
|
||||
using Api.Requests;
|
||||
|
||||
namespace Api.Services.Contracts
|
||||
{
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
namespace Api.Services.Contracts.Models
|
||||
{
|
||||
public sealed record CaptchaVerdictModel(bool Success, string? Error, double? Score);
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
namespace Api.Services.Contracts.Rag;
|
||||
|
||||
public interface IAiRagClient
|
||||
{
|
||||
Task<float[]> CreateEmbeddingAsync(string input, CancellationToken ct);
|
||||
Task<string> CreateChatCompletionAsync(string systemPrompt, string userPrompt, CancellationToken ct);
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
using Api.Models.Rag;
|
||||
|
||||
namespace api.Services.Contracts.Rag;
|
||||
|
||||
public interface ICvRagService
|
||||
{
|
||||
Task<CvIngestResponse> IngestCvAsync(IFormFile file, bool gdprConsent, CancellationToken ct);
|
||||
Task<JobMatchResponse> MatchJobAsync(JobMatchRequest request, CancellationToken ct);
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
namespace Api.Services.Contracts.Rag;
|
||||
|
||||
public interface IJobTextExtractor
|
||||
{
|
||||
Task<string> ExtractAsync(string? jobUrl, string? jobDescription, CancellationToken ct);
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
namespace Api.Services.Contracts.Rag;
|
||||
|
||||
public interface IPdfTextExtractor
|
||||
{
|
||||
string ExtractText(Stream pdfStream);
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
namespace Api.Services.Contracts.Rag;
|
||||
|
||||
public interface ITextChunker
|
||||
{
|
||||
IReadOnlyList<string> Chunk(string text, int chunkSize, int overlap);
|
||||
}
|
||||
Reference in New Issue
Block a user