mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-05 00:29:40 +00:00
Added local RAG (#756)
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
1 parent
d043fbc8f0
commit
c7b42bee96
179 files changed
+276977
-1421
No files matched your search
@@ -0,0 +1,12 @@
|
||||
namespace AIStudio.Tools.Services;
|
||||
|
||||
internal static class DataSourceEmbeddingNames
|
||||
{
|
||||
public static string GetCollectionName(string dataSourceId)
|
||||
{
|
||||
if (!Guid.TryParse(dataSourceId, out var parsedDataSourceId))
|
||||
throw new ArgumentException("Data source ID must be a valid GUID.", nameof(dataSourceId));
|
||||
|
||||
return $"rag_{parsedDataSourceId:N}";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user