(WIP) prompt schema change
This commit is contained in:
1 parent
2f384fb72a
commit
38323870ec
5 files changed
+177
-106
No files matched your search
@@ -202,7 +202,7 @@ async def crawling(request_body: CrawlingRequest):
|
||||
marketing_analysis = MarketingAnalysis(
|
||||
report=structured_report["report"],
|
||||
tags=structured_report["tags"],
|
||||
facilities = list([sp['keywords'] for sp in structured_report["selling_points"]])# [json.dumps(structured_report["selling_points"])] # 나중에 Selling Points로 변수와 데이터구조 변경할 것
|
||||
selling_points = structured_report["selling_points"]# list([sp['keywords'] for sp in structured_report["selling_points"]])# [json.dumps(structured_report["selling_points"])] # 나중에 Selling Points로 변수와 데이터구조 변경할 것
|
||||
)
|
||||
# Selling Points 구조
|
||||
# print(sp['category'])
|
||||
|
||||
@@ -131,12 +131,21 @@ class ProcessedInfo(BaseModel):
|
||||
detail_region_info: str = Field(..., description="상세 지역 정보 (roadAddress)")
|
||||
|
||||
|
||||
class MarketingAnalysisDetail(BaseModel):
|
||||
detail_title : str = Field(..., description="디테일 카테고리 이름")
|
||||
detail_description : str = Field(..., description="해당 항목 설명")
|
||||
|
||||
class MarketingAnalysisReport(BaseModel):
|
||||
"""마케팅 분석 리포트 스키마"""
|
||||
summary : str = Field(..., description="비즈니스 한 줄 요약")
|
||||
details : list[MarketingAnalysisDetail] = Field(default_factory=list, description="개별 디테일")
|
||||
|
||||
class MarketingAnalysis(BaseModel):
|
||||
"""마케팅 분석 결과 스키마"""
|
||||
|
||||
report: str = Field(..., description="마케팅 분석 리포트")
|
||||
report: MarketingAnalysisReport = Field(..., description="마케팅 분석 리포트")
|
||||
tags: list[str] = Field(default_factory=list, description="추천 태그 목록")
|
||||
facilities: list[str] = Field(default_factory=list, description="추천 부대시설 목록")
|
||||
selling_points: list[str] = Field(default_factory=list, description="추천 부대시설 목록")
|
||||
|
||||
|
||||
class CrawlingResponse(BaseModel):
|
||||
|
||||
Reference in new issue
Block a user