Skip to content

feat(cody): Stage 1 + Stage 2 pipeline + verify UI (ADR-0005 Phase A-E)#585

Merged
cocoyoon merged 1 commit into
devfrom
feature/cody-phase-a-e
May 27, 2026
Merged

feat(cody): Stage 1 + Stage 2 pipeline + verify UI (ADR-0005 Phase A-E)#585
cocoyoon merged 1 commit into
devfrom
feature/cody-phase-a-e

Conversation

@cocoyoon
Copy link
Copy Markdown
Member

Summary

raw_posts pipeline 에 cody Stage 1/2 + search_document + embedding 추가 (ADR-0005).

Pipeline (4 steps):

  • Stage 1 (cody_describe) — Gemini 2.5 Flash, image → mood/silhouette obj/items/ocr/search_document
  • Stage 2 (cody_formula) — 텍스트-only Gemini, must_keep/replaceable/core_combination
  • search_document — Stage 1 prompt 안에서 생성 (별 LLM 호출 X)
  • cody_embedding — gemini-embedding-2 (output_dim=768) → pgvector

Schema (raw_posts):

  • cody_analysis jsonb — Phase A-C 모든 필드
  • cody_embedding vector(768) + ivfflat index — Phase D

Web admin:

  • CodyAnalysisCard 신규 (mood/silhouette/details/items/OCR/style_formula/search_document)
  • PipelineTimeline 에 cody_* step label

검증: raf 의 e2e 로 다국가 currency parsing, brand 정규화, silhouette 3-way 분리, embedding 768-dim 적재 확인. pipeline_version v0.3.3.

Test plan

  • ai-server pytest (160 passed)
  • flake8 / black clean
  • api-server cargo check / cargo test (1086 passed)
  • web tsc clean
  • local DB migration 적용 + 새 row 검증 (cody_embedding 768-dim 적재)
  • verify 페이지 e2e — Style Formula / OCR / silhouette obj / search_document collapsible

ADR

decoded-docs/Architecture/adr/ADR-0005-cody-stage1-pipeline-extension.md

🤖 Generated with Claude Code

ai-server raw_posts pipeline 에 cody 4-step 추가:
- Stage 1 (cody_describe): 일반 코디 사진 → mood / silhouette obj /
  color_palette / details / items (category_path derive, *_confidence,
  details) / ocr.{raw_text, normalized.{brands, products, prices}}
- Stage 2 (cody_formula): 텍스트-only Gemini → must_keep / replaceable /
  core_combination
- search_document: Stage 1 prompt 안에서 생성 (별 LLM 호출 X)
- cody_embedding: gemini-embedding-2 (output_dim=768) → pgvector

DB:
- raw_posts.cody_analysis jsonb (Phase A-C)
- raw_posts.cody_embedding vector(768) + ivfflat index (Phase D)

api-server:
- RawPost DTO 에 cody_analysis 노출 (JsonValue passthrough)
- entity 에 cody_embedding column 추가 (DTO 미노출 — Stage 3 RPC 내부 only)

web admin:
- CodyAnalysisCard 신규 (mood/silhouette/details/items/OCR/style_formula/
  search_document) — read-only debug 카드
- PipelineTimeline 에 cody_describe / cody_formula / cody_embedding label

pipeline_version v0.3.3. raf 의 e2e 검증으로 다국가 currency parsing
(KRW/JPY/USD), brand 정규화, silhouette 3-way 분리, embedding 768-dim
적재까지 확인.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
decoded-app Ready Ready Preview, Comment May 27, 2026 12:01pm

@thxforall thxforall moved this from Todo to In Progress in decoded-monorepo May 27, 2026
@cocoyoon cocoyoon added the bump:minor Backward-compatible additions label May 27, 2026
@cocoyoon cocoyoon merged commit cd24b4a into dev May 27, 2026
12 of 13 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in decoded-monorepo May 27, 2026
@cocoyoon cocoyoon deleted the feature/cody-phase-a-e branch May 27, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bump:minor Backward-compatible additions

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants