S SmartDocs
Chuỗi bài: Ricky python 387 dòng · Cập nhật 2026-04-07

product_summary.py

Ricky/RAG_project/knowledge/product_summary.py

from langchain_core.documents import Document


def create_product_summaries() -> list[Document]:
    summaries = [
        # =============================================
        # 1. COOLFIRE Super Vibration Watch
        # =============================================
        {
            "product": "COOLFIRE Super Vibration Watch",
            "category": "vibration_watch",
            "brand": "CoolFire",
            "content": """Product Name: COOLFIRE Super Vibration Watch
Brand: CoolFire
Category: Vibrating Alarm Watch
Website: www.TimeChant.com
Support Email: Support@timechant.com

Description:
The COOLFIRE Super Vibration Watch is a sweatband-style vibrating alarm watch
designed for deaf, hard of hearing, and heavy sleepers. It features an extra
strong vibration motor that ensures the user can feel the alarm even during
deep sleep. The watch has a comfortable sweatband design suitable for all-day wear.

Key Features:
- Extra strong vibration alarm (stronger than typical vibrating watches)
- Multiple programmable alarms (up to 12 alarms)
- Countdown timer for medication, cooking, or exercise reminders
- Stopwatch function
- Water resistant design for daily use (not suitable for swimming or showering)
- USB charging (first charge requires 4 hours, subsequent charges ~2 hours)
- Backlight display for reading time in the dark

Button Guide:
- S1: Light / Stopwatch start
- S2: Set time / Set alarm
- S3: Mode switch (time -> alarm -> timer -> stopwatch)
- S4: Start / Stop / Confirm

How to Set an Alarm:
1. Press S3 to enter Alarm mode (bell icon appears)
2. Press S2 to enter edit mode
3. Use S1 and S4 to adjust hour and minute
4. Press S2 to confirm and save

How to Charge:
1. Connect the included USB cable to the watch
2. Plug into any USB power adapter or computer
3. First time charge: 4 hours. Subsequent charges: ~2 hours
4. Battery lasts approximately 5-7 days on a single charge

Target Users: Deaf, hard of hearing, heavy sleepers, people who need silent alarms
Comparison Note: This is the NON-Bluetooth version. For phone connectivity,
see the COOLFIRE Bluetooth Vibrating Sweatband Watch instead.
Compatible Accessories: Coolfire Solar Watch Charger for USB charging on the go."""
        },

        # =============================================
        # 2. COOLFIRE Bluetooth Vibrating Watch
        # =============================================
        {
            "product": "COOLFIRE Bluetooth Vibrating Sweatband Watch",
            "category": "vibration_watch",
            "brand": "CoolFire",
            "content": """Product Name: COOLFIRE Bluetooth Vibrating Alarm Sweatband Watch
Brand: CoolFire
Category: Bluetooth Vibrating Alarm Watch
Website: www.TimeChant.com
Support Email: Support@timechant.com
Setup Guide: www.daveecom.com/setup

Description:
The COOLFIRE Bluetooth Vibrating Alarm Sweatband Watch is the advanced version
of the COOLFIRE vibrating watch line. It connects to your smartphone via Bluetooth,
allowing you to set alarms, receive phone notifications through vibration, and
sync time automatically. The sweatband design makes it comfortable for sports
and everyday wear.

Key Features:
- Bluetooth sync with smartphone (iOS and Android)
- Vibration alerts for alarms and phone notifications
- Phone call and message vibration notifications
- Sweatband comfortable design for active lifestyle
- App control for easy alarm management
- Multiple alarm settings via phone app
- Automatic time sync from phone

How to Connect to Phone via Bluetooth:
1. Make sure the watch is charged and turned on
2. On your phone, go to Settings -> Bluetooth -> Turn ON
3. Search for available devices, look for "CoolFire" device name
4. Tap to pair the watch with your phone
5. Download and open the CoolFire app
6. In the app, sync time and set your alarms
7. The watch will vibrate to confirm successful connection

Troubleshooting Bluetooth Connection:
- If watch does not appear: restart both watch and phone, try again
- If connection drops: move phone closer to watch (within 5 meters)
- If time is wrong after sync: check phone timezone settings

Target Users: Deaf, hard of hearing, active lifestyle users who want phone integration
Comparison Note: This is the BLUETOOTH version with phone connectivity.
For a simpler version without Bluetooth, see the COOLFIRE Super Vibration Watch.
Compatible Accessories: Coolfire Solar Watch Charger."""
        },

        # =============================================
        # 3. Coolfire Solar Watch Charger
        # =============================================
        {
            "product": "Coolfire Solar Watch Charger",
            "category": "accessory",
            "brand": "CoolFire",
            "content": """Product Name: Coolfire Solar Watch Charger
Brand: CoolFire
Category: Accessories / Watch Charger
Website: www.TimeChant.com

Description:
The Coolfire Solar Watch Charger is a portable solar-powered USB charger
designed for charging CoolFire vibrating watches. It can be powered by
sunlight or via USB-C cable, making it ideal for travel and outdoor use.

Key Features:
- Solar charging panel for eco-friendly outdoor charging
- USB-C cable input for indoor charging
- Portable and lightweight design
- Rubber cap protection to keep charging port clean
- Compatible with all CoolFire watch models

How to Use (Solar):
1. Place the charger in direct sunlight with solar panel facing up
2. Connect your CoolFire watch to the charger USB port
3. Allow time for solar charging (slower than USB-C direct)

How to Use (USB-C):
1. Connect the included USB-C cable to a power adapter
2. Plug the other end into the solar charger
3. Connect your watch to charge

Maintenance:
- Put the rubber cap on the charging port when not in use
- Keep solar panel clean for best performance
- Store in dry place

Compatible With: COOLFIRE Super Vibration Watch, COOLFIRE Bluetooth Vibrating Watch
Target Users: CoolFire watch owners who travel or want portable charging"""
        },

        # =============================================
        # 4. Five Senses Bluetooth Talking Watch
        # =============================================
        {
            "product": "Five Senses Bluetooth Talking Watch",
            "category": "talking_watch",
            "brand": "Five Senses",
            "content": """Product Name: Five Senses Bluetooth Talking Watch
Brand: Five Senses
Category: Bluetooth Talking Watch
Website: www.TimeChant.com

Description:
The Five Senses Bluetooth Talking Watch is designed for blind and visually
impaired users. It announces the time audibly with a clear voice at the press
of a button. With Bluetooth connectivity, users can sync time from their phone
and manage settings through an app, making setup accessible and easy.

Key Features:
- Clear voice time announcement (press button to hear the time)
- Bluetooth connection to smartphone for time sync
- Audio alerts and talking alarm
- Phone time sync ensures accurate time always
- Simple button layout designed for visually impaired users
- Available in men's and women's styles on TimeChant.com

How to Connect Phone via Bluetooth:
1. Ensure the watch is charged and turned on
2. On your phone, go to Settings -> Bluetooth -> Turn ON
3. Search for "Five Senses" in available devices
4. Tap to pair and connect
5. Open the Five Senses app to sync time and manage alarms
6. Watch will announce "Connected" to confirm

How to Hear the Time:
- Press the main button on the watch face
- The watch will speak the current time clearly

Target Users: Blind, visually impaired, low vision, elderly with vision difficulties
Comparison Note: This is the BLUETOOTH version. Five Senses also offers
Atomic (radio controlled) talking watches that sync time automatically via
radio signal without needing a phone. Available in both men's and women's styles.
Related Products: Atomic Women Talking Watch, Atomic Men Talking Watch"""
        },

        # =============================================
        # 5. Five Senses Radio Control Talking Keychain
        # =============================================
        {
            "product": "Five Senses Radio Control Digital Talking Keychain",
            "category": "talking_keychain",
            "brand": "Five Senses",
            "content": """Product Name: Five Senses Radio Control Digital Talking Keychain
Brand: Five Senses
Category: Talking Keychain / Portable Talking Clock
Website: www.TimeChant.com

Description:
The Five Senses Radio Control Digital Talking Keychain is a portable,
keychain-sized talking clock that automatically syncs its time via radio
signal. It is designed for blind and visually impaired users who want a
quick and easy way to check the time anywhere. No phone or Bluetooth needed -
the radio signal keeps the time accurate automatically.

Key Features:
- Voice time announcement at the press of a button
- Radio controlled automatic time sync (no manual setting needed)
- Supports USA time zones: Eastern, Central, Mountain, Pacific
- Portable keychain design - attach to keys, bag, or belt
- Digital display for users with partial vision
- No smartphone required

How to Set Timezone:
1. Find the timezone switch on the device
2. Select your USA timezone: Eastern (ET), Central (CT), Mountain (MT), or Pacific (PT)
3. The device will automatically sync to the correct time via radio signal
4. Place near a window for best radio signal reception

Limitations:
- Radio time sync works in USA only (WWVB signal from Colorado)
- Outside USA, time must be set manually

Target Users: Blind, visually impaired, low vision, elderly
Comparison Note: Unlike the Five Senses Bluetooth Talking Watch, this keychain
does NOT require a phone. It uses radio signal for time sync. Ideal for users
who want something simpler and more portable than a watch."""
        },

        # =============================================
        # 6. HandySpring Water Reminder
        # =============================================
        {
            "product": "HandySpring Drink Water Reminder with Filter",
            "category": "water_reminder",
            "brand": "HandySpring",
            "content": """Product Name: HandySpring Drink Water Reminder with Filter
Brand: HandySpring
Category: Smart Water Bottle / Health Reminder
Website: www.TimeChant.com

Description:
The HandySpring Drink Water Reminder is a smart water bottle with a built-in
filter and timed drinking reminders. It helps users develop healthy hydration
habits by reminding them to drink water at regular intervals. The built-in
filter ensures clean drinking water.

Key Features:
- Timed drinking reminders (flashing light or beep)
- Built-in water filter for clean water
- Water intake goal setting on the bottle cap
- Sip tracking to monitor daily water consumption
- Correct bottle position detection for accurate readings
- No app required - all settings on the bottle itself

How to Set Water Intake Goal:
1. Locate the settings on the bottle cap
2. Set your daily water intake goal
3. The bottle will divide the goal into timed reminders throughout the day

How to Ensure Correct Sip Readings:
1. Hold the bottle in the correct upright position as shown in the manual
2. Tilt to drink normally
3. The sensor detects each sip when the bottle is held correctly

Maintenance:
- Replace the filter regularly as per instructions
- Clean the bottle daily
- Do not submerge the electronic cap in water

Target Users: Anyone wanting to improve hydration habits, elderly,
office workers, people recovering from illness, health-conscious users
Note: This product is different from CoolFire watches and Five Senses watches.
It is a health/hydration product, not a timepiece."""
        },

        # =============================================
        # 7. Website Overview
        # =============================================
        {
            "product": "TimeChant Website Overview",
            "category": "website_info",
            "brand": "TimeChant",
            "content": """TimeChant Website Overview
Website: www.TimeChant.com

TimeChant is an online store specializing in assistive devices for people
with hearing or vision impairments. The store carries products from multiple brands.

Brands Available:
- CoolFire: Vibrating alarm watches for deaf and hard of hearing users
- Five Senses: Talking watches and clocks for blind and visually impaired users
- HandySpring: Health reminder products
- HearEsy: Hearing assistive products
- RELAXIER: Therapy lamps

Product Categories on the Website:
- COOLFIRE section: Vibrating watches (standard and Bluetooth)
- Five Senses section: Atomic talking watches (men/women), regular talking watches,
  Bluetooth talking watches, talking clocks, digital calendar clocks
- Accessories: Coolfire Solar Watch Charger
- RELAXIER: Therapy lamps
- HearEsy: Hearing products

Customer Support:
- Email: Support@timechant.com
- Website: www.TimeChant.com/contact
- Services: Battery replacement service available

Policies:
- Shipping information available on website
- Return policy available on website
- Privacy policy available on website

Wholesale:
- Wholesale inquiries welcome via the Wholesale page on the website"""
        },

        # =============================================
        # 8. Product Selection Guide
        # =============================================
        {
            "product": "Product Selection Guide",
            "category": "guide",
            "brand": "TimeChant",
            "content": """TimeChant Product Selection Guide

How to Choose the Right Product:

FOR DEAF / HARD OF HEARING USERS:
-> Need basic vibration alarm: COOLFIRE Super Vibration Watch
-> Need phone notifications + vibration: COOLFIRE Bluetooth Vibrating Watch
-> Need portable charging for watch: Coolfire Solar Watch Charger

FOR BLIND / VISUALLY IMPAIRED USERS:
-> Want talking watch with phone sync: Five Senses Bluetooth Talking Watch
-> Want auto-sync without phone (USA only): Five Senses Atomic Talking Watch
-> Want portable talking clock: Five Senses Radio Control Talking Keychain

FOR HEALTH / WELLNESS:
-> Want hydration reminders: HandySpring Drink Water Reminder

COOLFIRE Watch Comparison:
| Feature              | Super Vibration | Bluetooth Version |
|----------------------|-----------------|-------------------|
| Vibration Alarm      | ✓ Extra Strong  | ✓ Strong          |
| Bluetooth            | ✗               | ✓                 |
| Phone Notifications  | ✗               | ✓                 |
| App Control          | ✗               | ✓                 |
| USB Charging         | ✓               | ✓                 |
| Sweatband Design     | ✓               | ✓                 |

Five Senses Comparison:
| Feature              | BT Talking Watch | Talking Keychain   |
|----------------------|------------------|--------------------|
| Voice Announcement   | ✓                | ✓                  |
| Bluetooth            | ✓                | ✗                  |
| Radio Controlled     | ✗                | ✓ (USA only)       |
| Wearable             | ✓ (wrist)       | ✓ (keychain/clip)  |
| Needs Phone          | Yes for setup    | No                 |"""
        }
    ]

    documents = []
    for s in summaries:
        documents.append(Document(
            page_content=s["content"].strip(),
            metadata={
                "source": "product_summary",
                "product": s["product"],
                "category": s.get("category", "general"),
                "brand": s.get("brand", ""),
                "type": "summary"
            }
        ))

    print(f"[OK] Product summaries loaded: {len(documents)} documents")
    return documents

Bài viết liên quan