Implement Experience V1 reflect, retrieval boost, and product metrics.
Add rule-based reflect() to aggregate task outcomes, environment-aware search scoring, experience_saved/recalled events, and structured injection blocks per the V1 schema. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -82,6 +82,7 @@ export async function bootstrapPortalAgentServices({
|
||||
experienceService =
|
||||
await createPgExperienceServiceFn({
|
||||
connectionString: env.EXPERIENCE_PG_URL,
|
||||
productEventsPool: pool,
|
||||
});
|
||||
logger.log(
|
||||
'Experience store: PostgreSQL + pgvector',
|
||||
@@ -91,10 +92,10 @@ export async function bootstrapPortalAgentServices({
|
||||
'Experience PG init failed, falling back to MySQL store:',
|
||||
error instanceof Error ? error.message : error,
|
||||
);
|
||||
experienceService = createExperienceServiceFn(pool);
|
||||
experienceService = createExperienceServiceFn(pool, { productEventsPool: pool });
|
||||
}
|
||||
} else {
|
||||
experienceService = createExperienceServiceFn(pool);
|
||||
experienceService = createExperienceServiceFn(pool, { productEventsPool: pool });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user