Skip to content

Commit 236c739

Browse files
committed
Update ITextReranking
1 parent 799f182 commit 236c739

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/Infrastructure/BotSharp.Abstraction/MLTasks/ITextReranking.cs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@ public interface ITextReranking
1717
/// </summary>
1818
string Model { get; }
1919

20-
/// <summary>
21-
/// Rerank a single query-document pair and return the relevance score.
22-
/// </summary>
23-
/// <param name="query">The search query</param>
24-
/// <param name="document">The document text to score</param>
25-
/// <returns>Relevance score (typically between 0 and 1, higher is more relevant)</returns>
26-
Task<float> GetRerankScoreAsync(string query, string document);
27-
2820
/// <summary>
2921
/// Rerank multiple documents for a given query and return their relevance scores.
3022
/// </summary>
@@ -33,15 +25,6 @@ public interface ITextReranking
3325
/// <returns>List of relevance scores in the same order as input documents</returns>
3426
Task<List<float>> GetRerankScoresAsync(string query, List<string> documents);
3527

36-
/// <summary>
37-
/// Rerank multiple documents and return them sorted by relevance score.
38-
/// </summary>
39-
/// <param name="query">The search query</param>
40-
/// <param name="documents">List of document texts to rerank</param>
41-
/// <param name="topK">Number of top results to return (optional, returns all if not specified)</param>
42-
/// <returns>List of (document, score) tuples sorted by relevance (highest first)</returns>
43-
Task<List<(string Document, float Score)>> RerankDocumentsAsync(string query, List<string> documents, int? topK = null);
44-
4528
/// <summary>
4629
/// Set the model name to use for reranking.
4730
/// </summary>

0 commit comments

Comments
 (0)