10 Commits

Author SHA1 Message Date
hub-gif
b6759039c8 fix(llm): tier compact brief for §8.5 to fit 32k context window
Regenerate-report §8.5 payload exceeded ~32k ctx; try decreasing
compact_brief_for_llm max_chars then truncate JSON with notice.

Made-with: Cursor
2026-04-14 11:36:28 +08:00
hub-gif
15ba8b3370 fix(llm): restore matrix/comment/price group advisor prompts and callers
Re-add MATRIX/COMMENT/PRICE_GROUPS_SYSTEM and generate_*_group_summaries_llm
removed in afe2748; align comment-group prompt with shop in attribution
prefix. Default report_config now includes the three llm_*_summaries flags.

Made-with: Cursor
2026-04-14 11:08:24 +08:00
hub-gif
dd5fa8a407 feat(comments): attribute sentiment LLM samples to shop and SKU
- Add _comment_lines_with_product_context and build_comment_groups_llm_payload
- build_comment_sentiment_llm_payload: lexicon on plain text, samples with
  【细类|SKU|品名|店铺】 prefix; jd_runner passes parallel attributed lines
- Tighten §8.2/§8.5 prompts so negatives tie to shop + product; tests assert 店铺

Made-with: Cursor
2026-04-14 11:04:35 +08:00
hub-gif
afe2748129 fix(llm): drop unused group-summary helpers reintroduced by patch
Keep only REPORT_SYSTEM / SENTIMENT prompt tightening; remove dead
matrix/comment/price LLM helpers not referenced by views or jd_runner.

Made-with: Cursor
2026-04-14 10:57:13 +08:00
hub-gif
efd8aa7cfc fix(llm): require aggregate-only complaints in §8.5 without fake quotes
§8.5 brief lacks per-SKU review text; tighten REPORT_SYSTEM so lexicon
hits are described as cross-SKU substring stats and forbid quoted
fabricated examples. Align sentiment helper: no quoted specifics absent
from samples.

Made-with: Cursor
2026-04-14 10:55:12 +08:00
hub-gif
9797796f2e fix(pipeline): cap LLM brief size on report regen; enrich chat HTTP errors
Regenerate-report (llm) used compact_brief_for_llm default 350k chars,
unlike other LLM steps (80k–100k), which can cause gateway timeouts or 5xx
surfacing as 502. chat_completion_text now attaches response body snippet
to HTTPError for easier diagnosis.

Made-with: Cursor
2026-04-14 09:55:42 +08:00
hub-gif
a8210ec933 feat(报告): 各章大模型衔接分析与 report_config 开关
Made-with: Cursor
2026-04-13 11:06:35 +08:00
hub-gif
ed2738953f refactor(报告): 全文大模型补充改为嵌入第八章末而非篇首
Made-with: Cursor
2026-04-13 10:54:43 +08:00
hub-gif
bac71c00be feat(报告): 评价大模型解读强化负向主题归因与抽样
Made-with: Cursor
2026-04-13 10:52:14 +08:00
hub-gif
d8086dfdd5 Initial commit: Market-Assistant standalone (Django + Vue + JD crawler copy)
Made-with: Cursor
2026-04-10 18:03:35 +08:00