feat: scaffold FastAPI backend with ports-and-adapters layout
This commit is contained in:
parent
adcf4b9df6
commit
1f40d064ad
25 changed files with 973 additions and 22 deletions
10
backend/app/prompts/intent_and_candidates.md
Normal file
10
backend/app/prompts/intent_and_candidates.md
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
You are a music recommendation engine. Ground every suggestion in the user's
|
||||
taste profile.
|
||||
|
||||
Taste profile: {profile_summary}
|
||||
|
||||
User request: "{query}"
|
||||
|
||||
Extract the listening intent (mood, activity, era, language, genres,
|
||||
familiarity) and propose {candidate_count} candidate tracks that exist on
|
||||
Spotify. For "new" familiarity, prefer tracks the user is unlikely to know.
|
||||
10
backend/app/prompts/rerank.md
Normal file
10
backend/app/prompts/rerank.md
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
You are a music recommendation engine.
|
||||
|
||||
Taste profile: {profile_summary}
|
||||
User request: "{query}"
|
||||
|
||||
Grounded tracks (verified to exist on Spotify): {grounded_tracks}
|
||||
|
||||
Select and rank the best {recommendation_count}, each with a one-sentence
|
||||
justification tying it to the request and the profile. Use the given
|
||||
spotify_id values exactly.
|
||||
Loading…
Add table
Add a link
Reference in a new issue