mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 16:27:21 +00:00
Added transcription of audio and video files to local data sources (#1081)
Co-authored-by: Paul Koudelka <106623909+PaulKoudelka@users.noreply.github.com>
This commit is contained in:
1 parent
8642ce2d81
commit
752f7d828a
82 files changed
+3231
-302
No files matched your search
@@ -25,14 +25,33 @@ public sealed class DataSourceEmbeddingHealthTests
|
||||
Assert.That(status.Health, Is.EqualTo(DataSourceEmbeddingHealth.WARNING));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void AnIgnoredMediaFileKeepsAUsableDataSourceHealthy()
|
||||
[TestCase(DataSourceEmbeddingIgnoreReason.TRANSCRIPTION_PROVIDER_MISSING)]
|
||||
[TestCase(DataSourceEmbeddingIgnoreReason.TRANSCRIPTION_PROVIDER_NOT_ALLOWED)]
|
||||
public void ATranscriptionProviderWarningRemainsActionableWhenOtherFilesWereIndexed(DataSourceEmbeddingIgnoreReason reason)
|
||||
{
|
||||
var status = Status(indexedDocuments: 1, totalDocuments: 2) with
|
||||
{
|
||||
IgnoredFiles =
|
||||
[
|
||||
new DataSourceEmbeddingIgnoredFile("/data/interview.mp3", DataSourceEmbeddingIgnoreReason.MEDIA_NOT_SUPPORTED),
|
||||
new DataSourceEmbeddingIgnoredFile("/data/interview.mp3", reason),
|
||||
],
|
||||
};
|
||||
|
||||
Assert.Multiple(() =>
|
||||
{
|
||||
Assert.That(status.Health, Is.EqualTo(DataSourceEmbeddingHealth.WARNING));
|
||||
Assert.That(status.NeedsTranscriptionProvider, Is.True, "The embedding page offers the way to the settings only then.");
|
||||
});
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void AnIgnoredImageKeepsAUsableDataSourceHealthy()
|
||||
{
|
||||
var status = Status(indexedDocuments: 1, totalDocuments: 2) with
|
||||
{
|
||||
IgnoredFiles =
|
||||
[
|
||||
new DataSourceEmbeddingIgnoredFile("/data/photo.png", DataSourceEmbeddingIgnoreReason.IMAGE_NOT_SUPPORTED),
|
||||
],
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user