mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 06:27:21 +00:00
Improved the dialogs for local data sources and the Batch Processing assistant (#1096)
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
1 parent
149395c1a0
commit
f7e6ceb915
45 files changed
+2514
-361
No files matched your search
@@ -40,6 +40,18 @@ public sealed class EmbeddingSignatureTests
|
||||
"Patterns change which files belong to the source, not how retained files are embedded; the indexing run removes and adds only the affected files.");
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ChangingDirectoryExclusionsKeepsTheStoredEmbeddingsOfRetainedFiles()
|
||||
{
|
||||
var allFiles = DataSource(ConfidenceLevel.LOW);
|
||||
var filteredFiles = allFiles with { ExcludePatterns = "*.mp3;draft-*" };
|
||||
|
||||
Assert.That(
|
||||
Signature(filteredFiles),
|
||||
Is.EqualTo(Signature(allFiles)),
|
||||
"Exclusions change which files belong to the source, not how retained files are embedded.");
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ChangingDirectoryRecursionKeepsTheStoredEmbeddingsOfRetainedFiles()
|
||||
{
|
||||
@@ -244,4 +256,4 @@ public sealed class EmbeddingSignatureTests
|
||||
|
||||
public int ChunkOverlapTokenLength { get; init; }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user