Add similar records

Initial stab by Claude
This commit is contained in:
Claudio Ortolina
2025-10-11 21:39:59 +02:00
parent 07218d16ca
commit 9cae972bc5
18 changed files with 1869 additions and 5 deletions
+10
View File
@@ -1464,3 +1464,13 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "External Links"
msgstr ""
#: lib/music_library_web/components/record_components.ex
#, elixir-autogen, elixir-format
msgid "Based on genres, artists, and release year"
msgstr ""
#: lib/music_library_web/components/record_components.ex
#, elixir-autogen, elixir-format
msgid "Similar Records"
msgstr ""
+10
View File
@@ -1464,3 +1464,13 @@ msgstr ""
#, elixir-autogen, elixir-format, fuzzy
msgid "External Links"
msgstr ""
#: lib/music_library_web/components/record_components.ex
#, elixir-autogen, elixir-format
msgid "Based on genres, artists, and release year"
msgstr ""
#: lib/music_library_web/components/record_components.ex
#, elixir-autogen, elixir-format
msgid "Similar Records"
msgstr ""
@@ -0,0 +1,17 @@
defmodule MusicLibrary.Repo.Migrations.CreateRecordEmbeddings do
use Ecto.Migration
def change do
create table(:record_embeddings, primary_key: false) do
add :id, :binary_id, primary_key: true
add :record_id, references(:records, type: :binary_id, on_delete: :delete_all), null: false
add :embedding, :text, null: false
add :text_representation, :text, null: false
timestamps(type: :utc_datetime)
end
create unique_index(:record_embeddings, [:record_id])
end
end