mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 22:47: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
@@ -2,6 +2,7 @@ using System.Collections.Concurrent;
|
||||
|
||||
using AIStudio.Settings;
|
||||
using AIStudio.Settings.DataModel;
|
||||
using AIStudio.Tools.Media;
|
||||
|
||||
namespace AIStudio.Tools.Services.Indexing;
|
||||
|
||||
@@ -268,6 +269,14 @@ internal sealed partial class FileSourceIndexer
|
||||
if (Directory.Exists(path))
|
||||
return true;
|
||||
|
||||
//
|
||||
// The Batch Processing assistant writes the transcript of a media file next to it. When
|
||||
// the data source selects the media file itself, the transcript is no document of its
|
||||
// own, so writing it must not start a run either:
|
||||
//
|
||||
if (MediaSidecarTranscripts.IsCoveredArtifact(path, selection))
|
||||
return false;
|
||||
|
||||
if (selection.Selects(path))
|
||||
return true;
|
||||
|
||||
|
||||
Reference in new issue
Block a user