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.
2
2
3
3
using System . Net ;
4
4
using System . Text ;
@@ -451,7 +451,7 @@ private async Task IndexSectionsAsync(IEnumerable<Section> sections)
451
451
{
452
452
var embeddingsClient = openAIClient . GetEmbeddingClient ( embeddingModelName ) ;
453
453
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 ( ) ;
455
455
batch . Actions . Add ( new IndexDocumentsAction < SearchDocument > (
456
456
IndexActionType . MergeOrUpload ,
457
457
new SearchDocument
You can’t perform that action at this time.
0 commit comments