Sorted every model list by what a model is made for (#984)
Build and Release / Determine run mode (push) Waiting to run
Build and Release / Read metadata (push) Blocked by required conditions
Build and Release / Sync Flatpak repo (push) Blocked by required conditions
Build and Release / Collect Flatpak artifacts (push) Blocked by required conditions
Build and Release / Verify (push) Waiting to run
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-apple-darwin, osx-arm64, macos-latest, aarch64-apple-darwin, dmg,app,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-pc-windows-msvc.exe, win-arm64, windows-latest, aarch64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-unknown-linux-gnu, linux-arm64, ubuntu-22.04-arm, aarch64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-apple-darwin, osx-x64, macos-latest, x86_64-apple-darwin, dmg,app,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-pc-windows-msvc.exe, win-x64, windows-latest, x86_64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-unknown-linux-gnu, linux-x64, ubuntu-22.04, x86_64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
Build and Release / Prepare & create release (push) Blocked by required conditions
Build and Release / Publish release (push) Blocked by required conditions

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-09-19 17:54:10 +02:00
1 parent e42277beba
commit f9c6075c50
36 files changed
+947 -333

No files matched your search

@@ -47,6 +47,41 @@ public sealed class EmbeddingChangeImpactTests
"Another model means another vector space.");
}
/// <summary>
/// A model ID which differs only in how it is written is a different model here.
/// </summary>
/// <remarks>
/// This is why the embedding provider dialog adds a configured model to the list it loaded
/// instead of matching it against that list. A server which writes the same model slightly
/// differently -- with a tag where the user typed none, or in another case -- would otherwise
/// have its spelling written into the settings on the next save, and every document of every
/// data source behind that provider would be prepared again for a change nobody made.
/// </remarks>
[Test]
public void AModelIdWhichOnlyReadsDifferentlyDropsTheStoredIndexAsWell()
{
var dataSource = StoredDataSource();
var stored = StoredEmbeddingProvider() with { Model = new("nomic-embed-text", null) };
Assert.Multiple(() =>
{
Assert.That(
EmbeddingChangeImpact.AffectsStoredIndex(dataSource, stored, stored with { Model = new("nomic-embed-text:latest", null) }),
Is.True,
"The tag a server appends is part of the ID, and the ID is part of the signature.");
Assert.That(
EmbeddingChangeImpact.AffectsStoredIndex(dataSource, stored, stored with { Model = new("NOMIC-EMBED-TEXT", null) }),
Is.True,
"Compared ordinally, so another case is another model rather than the same one written louder.");
Assert.That(
EmbeddingChangeImpact.AffectsStoredIndex(dataSource, stored, stored with { Model = new("nomic-embed-text", "Nomic Embed Text") }),
Is.False,
"The display name is decoration and reaches no vector, so loading the list may fill it in.");
});
}
[Test]
public void ChangingTheTokenLimitDropsTheStoredIndex()
{