mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-10 18:47:21 +00:00
Fixed Semantic Search leaving out passages that did not fit into a search (#1167)
This commit is contained in:
1 parent
0a178cb1a3
commit
7342c436dd
17 files changed
+1065
-111
No files matched your search
@@ -0,0 +1,14 @@
|
||||
namespace AIStudio.Tools.RAG;
|
||||
|
||||
/// <summary>
|
||||
/// One page of results, cut by their length, see CharacterPaging.
|
||||
/// </summary>
|
||||
/// <param name="Start">The index of the first result on the page.</param>
|
||||
/// <param name="Count">How many results the page holds, at least one.</param>
|
||||
public readonly record struct CharacterPage(int Start, int Count)
|
||||
{
|
||||
/// <summary>
|
||||
/// The index right after the last result on the page, i.e., where the next page starts.
|
||||
/// </summary>
|
||||
public int End => this.Start + this.Count;
|
||||
}
|
||||
Reference in new issue
Block a user