mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-18 08:37:59 +00:00
Added retrieval integration, part I (#281)
This commit is contained in:
1 parent
e973b51f75
commit
954cf44939
18 files changed
+477
-31
No files matched your search
@@ -0,0 +1,38 @@
|
||||
using AIStudio.Chat;
|
||||
|
||||
namespace AIStudio.Tools.RAG;
|
||||
|
||||
public sealed class RetrievalImageContext : IRetrievalContext
|
||||
{
|
||||
#region Implementation of IRetrievalContext
|
||||
|
||||
/// <inheritdoc />
|
||||
public required string DataSourceName { get; init; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public required RetrievalContentCategory Category { get; init; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public required RetrievalContentType Type { get; init; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public required string Path { get; init; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public IReadOnlyList<string> Links { get; init; } = [];
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// The type of the image source.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Is the image source a URL, a local file path, a base64 string, etc.?
|
||||
/// </remarks>
|
||||
public required ContentImageSource SourceType { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// The image source.
|
||||
/// </summary>
|
||||
public required string Source { get; set; }
|
||||
}
|
||||
Reference in new issue
Block a user