AuthorBuddy/Services/IRagService.cs

15 lines
433 B
C#
Raw Permalink Normal View History

2026-05-20 06:12:54 +02:00
namespace AuthorBuddy.Web.Services;
public class RagSearchResult
{
public string Text { get; set; } = string.Empty;
public string FilePath { get; set; } = string.Empty;
public double Similarity { get; set; }
}
public interface IRagService
{
Task IndexProjectAsync(int projectId, string rootPath, IProgress<string> progress);
Task<List<RagSearchResult>> SearchAsync(int projectId, string query, int topN = 5);
}