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