File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/shared/Shared/Services Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1- // Copyright (c) Microsoft. All rights reserved.
1+ // Copyright (c) Microsoft. All rights reserved.
22
33using System . Net ;
44using System . Text ;
@@ -451,7 +451,7 @@ private async Task IndexSectionsAsync(IEnumerable<Section> sections)
451451 {
452452 var embeddingsClient = openAIClient . GetEmbeddingClient ( embeddingModelName ) ;
453453 var embeddings = await embeddingsClient . GenerateEmbeddingAsync ( input : section . Content . Replace ( '\r ' , ' ' ) ) ;
454- var embedding = embeddings . Value . ToFloats ( ) ; // .Value.Data.FirstOrDefault()?.Embedding.ToArray() ?? [];
454+ var embedding = embeddings . Value . ToFloats ( ) ;
455455 batch . Actions . Add ( new IndexDocumentsAction < SearchDocument > (
456456 IndexActionType . MergeOrUpload ,
457457 new SearchDocument
You can’t perform that action at this time.
0 commit comments