This commit is contained in:
2026-03-25 19:46:14 -03:00
parent 9d5413a522
commit 26f61077b8
13 changed files with 382 additions and 187 deletions

View File

@@ -7,6 +7,13 @@ import { runRanking } from '../agents/ranking.js';
import { runCurator } from '../agents/curator.js';
import type { CuratorOutput, SSEEvent } from '../types/agents.js';
/* -- Agent pipeline --
[1] Interpreter -> gets user input, transforms into structured data
[2] Retrieval -> gets shows from OpenAI (high temperature)
[3] Ranking -> ranks shows based on user input
[4] Curator -> curates shows based on user input
*/
type RecommendationRecord = typeof recommendations.$inferSelect;
function log(recId: string, msg: string, data?: unknown) {