plan 인풋 summary 추가 및 firecrawl 캐싱 삭제
This commit is contained in:
1 parent
687b2c0bfd
commit
387aa758d0
5 files changed
+62
-16
No files matched your search
@@ -13,7 +13,7 @@ from integrations.llm.schemas.report import (
|
||||
ScoresInput, ScoresOutput,
|
||||
OtherChannelsInput, OtherChannelsOutput
|
||||
)
|
||||
from integrations.llm.schemas.plan import PlanInput, PlanOutput
|
||||
from integrations.llm.schemas.plan import PlanInput, PlanOutput, SummarizeInput, SummarizeOutput
|
||||
from integrations.llm.schemas.market import (
|
||||
MarketCompetitorsInput, MarketCompetitorsOutput,
|
||||
MarketKeywordsInput, MarketKeywordsOutput,
|
||||
@@ -64,6 +64,13 @@ plan_prompt = Prompt(
|
||||
output_class=PlanOutput,
|
||||
)
|
||||
|
||||
summarize_prompt = Prompt(
|
||||
file_name="summarize_prompt.txt",
|
||||
prompt_model="PLAN_MODEL",
|
||||
input_class=SummarizeInput,
|
||||
output_class=SummarizeOutput,
|
||||
)
|
||||
|
||||
market_competitors_prompt = Prompt(
|
||||
file_name="market_competitors_prompt.txt",
|
||||
prompt_model="MARKET_MODEL",
|
||||
|
||||
@@ -2,6 +2,15 @@ from typing import Literal
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class SummarizeInput(BaseModel):
|
||||
label: str
|
||||
data: str
|
||||
|
||||
|
||||
class SummarizeOutput(BaseModel):
|
||||
summary: str
|
||||
|
||||
|
||||
class PlanInput(BaseModel):
|
||||
clinic_name: str | None = None
|
||||
clinic_name_en: str | None = None
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
다음은 "{label}" 원본 데이터입니다.
|
||||
|
||||
{data}
|
||||
|
||||
위 데이터를 마케팅 플랜 생성에 필요한 핵심 정보만 남기고 간결하게 요약하세요.
|
||||
구체적인 수치·날짜·고유명사(채널명, 게시물 제목 등)는 그대로 보존하고, 중복되거나 플랜 작성에 불필요한 메타데이터는 제거하세요.
|
||||
요약문 하나의 문자열로만 출력하세요.
|
||||
Reference in new issue
Block a user