Fixed Semantic Search leaving out passages that did not fit into a search (#1167)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-05 16:02:59 +01:00
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;
}