AuthorBuddy/Services/IRagService.cs
2026-05-20 06:12:54 +02:00

14 lines
433 B
C#

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);
}