last ...
This commit is contained in:
@@ -315,6 +315,7 @@ namespace xAiModels.Interfaces
|
||||
string text,
|
||||
ReadOnlyMemory<float> embedding,
|
||||
Dictionary<string, string> metadata = null,
|
||||
string type = null,
|
||||
CancellationToken cancellationToken = default
|
||||
);
|
||||
|
||||
@@ -336,6 +337,7 @@ namespace xAiModels.Interfaces
|
||||
/// <param name="topK"></param>
|
||||
/// <param name="minScore"></param>
|
||||
/// <param name="identifierPrefix">Optional: Restrict Search to Vectors whose Identifier Starts with this Prefix</param>
|
||||
/// <param name="type">Optional: Restrict Search to Vectors of Specified Type</param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
Task<IReadOnlyList<XAiVectorSearchResult>> SearchVectorsAsync(
|
||||
@@ -343,6 +345,7 @@ namespace xAiModels.Interfaces
|
||||
int topK = 5,
|
||||
float minScore = 0f,
|
||||
string identifierPrefix = null,
|
||||
string type = null,
|
||||
CancellationToken cancellationToken = default
|
||||
);
|
||||
|
||||
@@ -351,11 +354,13 @@ namespace xAiModels.Interfaces
|
||||
/// </summary>
|
||||
/// <param name="identifierPrefix"></param>
|
||||
/// <param name="includeEmbedding"></param>
|
||||
/// <param name="type">Optional: Restrict to Vectors of Specified Type</param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
Task<IReadOnlyList<XAiVectorDto>> LoadVectorsAsync(
|
||||
string identifierPrefix,
|
||||
bool includeEmbedding = false,
|
||||
string type = null,
|
||||
CancellationToken cancellationToken = default
|
||||
);
|
||||
|
||||
@@ -363,10 +368,12 @@ namespace xAiModels.Interfaces
|
||||
/// Remove Vectors whose Identifier Starts with Specified Prefix ...
|
||||
/// </summary>
|
||||
/// <param name="identifierPrefix"></param>
|
||||
/// <param name="type">Optional: Restrict to Vectors of Specified Type</param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns>Count of Removed Vectors</returns>
|
||||
Task<int> RemoveVectorsAsync(
|
||||
string identifierPrefix,
|
||||
string type = null,
|
||||
CancellationToken cancellationToken = default
|
||||
);
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user