Skip to content

Commit

Permalink
Put the embedding text fields in the right order
Browse files Browse the repository at this point in the history
  • Loading branch information
mbklein committed Aug 16, 2024
1 parent 30f0b41 commit a86a897
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/lib/meadow/indexing/v2/work.ex
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ defmodule Meadow.Indexing.V2.Work do
|> Enum.reject(fn v ->
is_nil(v) or byte_size(v) == 0
end)
|> Enum.reverse()
|> Enum.join("\n")

Map.put(map, :embedding_text_length, String.length(value))
Expand Down

0 comments on commit a86a897

Please sign in to comment.