Skip to content

Commit

Permalink
Remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
elbruno authored Feb 25, 2025
1 parent fe2e749 commit be79247
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/shared/Shared/Services/AzureSearchEmbedService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft. All rights reserved.
// Copyright (c) Microsoft. All rights reserved.

using System.Net;
using System.Text;
Expand Down Expand Up @@ -451,7 +451,7 @@ private async Task IndexSectionsAsync(IEnumerable<Section> sections)
{
var embeddingsClient = openAIClient.GetEmbeddingClient(embeddingModelName);
var embeddings = await embeddingsClient.GenerateEmbeddingAsync(input: section.Content.Replace('\r', ' '));
var embedding = embeddings.Value.ToFloats(); // .Value.Data.FirstOrDefault()?.Embedding.ToArray() ?? [];
var embedding = embeddings.Value.ToFloats();
batch.Actions.Add(new IndexDocumentsAction<SearchDocument>(
IndexActionType.MergeOrUpload,
new SearchDocument
Expand Down

0 comments on commit be79247

Please sign in to comment.