Overseas access: www.kdjingpai.com
Bookmark Us
Current Position:fig. beginning " AI Answers

How to implement personalized content extraction in Spegel?

2025-08-22 411
Link directMobile View
qrcode

Background requirements

Users often need to extract specific information from web pages (e.g., product prices, technical parameters), and standard markdown conversions may not be able to meet the individual needs.

procedure

  1. Write precise cues: In the configuration file'spromptExplicit instructions in the field, for example:
    • Withdrawal price:prompt=提取所有价格信息,按¥符号识别并列表
    • Screening Date:prompt=仅输出包含YYYY-MM-DD格式日期的段落
  2. Creating specialized views: in~/.spegel.tomlAdd a new view block in, for example:
    [[views]]
    id = "prices"
    name = "Price Extractor"
    prompt = "List all product prices in bullet points"
  3. Model Selection Optimization: For complex tasks (e.g., multilingual mixed content), it is recommended to switch to a higher performance model such as GPT-4.

Debugging Tips

If the output is inaccurate, try: incrementally adding details to the cue; adding examples to the cue; and adding a new cue via thespegel --debugView intermediate processing results.

Recommended

Can't find AI tools? Try here!

Just type in the keyword Accessibility Bing SearchYou can quickly find all the AI tools on this site.

Top

en_USEnglish