last ...
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using xCommons.Extensions;
|
||||
using xAiModels.Extensions;
|
||||
using xAiModels.Models.Dtos;
|
||||
using System.Threading.Tasks;
|
||||
using xAiModels.Models.Entities;
|
||||
@@ -30,6 +31,13 @@ namespace xAiModels.Providers.Enrichers
|
||||
//
|
||||
// Mapping Default ...
|
||||
var result = source.MapConvert<XAiVectorDto, XAiVector>();
|
||||
|
||||
//
|
||||
// Here we Converts Embeddings ...
|
||||
result.Metadata = source.Metadata.AsMetadat();
|
||||
result.Embedding = source.Embedding.AsEmbedding();
|
||||
|
||||
//
|
||||
result = await Enrich(
|
||||
source: result,
|
||||
cancellationToken: cancellationToken
|
||||
|
||||
Reference in New Issue
Block a user