Add artist information to record embeddings

This commit is contained in:
Claudio Ortolina
2025-10-28 08:57:02 +00:00
parent f4808c25c2
commit 33dfbd607c
2 changed files with 43 additions and 1 deletions
+7
View File
@@ -110,6 +110,13 @@ defmodule MusicLibrary.Artists do
Repo.get!(ArtistInfo, artist_id)
end
def get_artist_infos(artist_ids) do
q =
from ai in ArtistInfo, where: ai.id in ^artist_ids
Repo.all(q)
end
def fetch_image(artist_id) do
artist_info = get_artist_info!(artist_id)