mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 20:07:20 +00:00
Added file patterns and exclusions to folder data sources (#1057)
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
1 parent
249fc778a2
commit
031874cebf
75 files changed
+4808
-589
No files matched your search
+12
-1
@@ -128,10 +128,21 @@ public sealed partial class SqliteIndexStoreClientImplementation(string name, st
|
||||
|
||||
var files = await context.EmbeddedFiles
|
||||
.AsNoTracking()
|
||||
.Where(file => file.DataSourceId == dataSourceId && file.ChunkCount > 0)
|
||||
.Where(file => file.DataSourceId == dataSourceId)
|
||||
.ToListAsync(token);
|
||||
foreach (var file in files)
|
||||
{
|
||||
//
|
||||
// A row is written without chunks before the first chunk arrives, and gets its real
|
||||
// count once the file is indexed. A row which still has none belongs to an indexing
|
||||
// which never came to an end:
|
||||
//
|
||||
if (file.ChunkCount <= 0)
|
||||
{
|
||||
manifest.UnfinishedFiles.Add(file.AbsolutePath);
|
||||
continue;
|
||||
}
|
||||
|
||||
manifest.Files[file.AbsolutePath] = new EmbeddedFileRecord(
|
||||
file.Fingerprint,
|
||||
file.FileSize,
|
||||
|
||||
Reference in new issue
Block a user