Editing Cache Entries
Learn how to safely edit cache entries to update responses, improve accuracy, and enhance chatbot performance.
Why Edit Cache Entries?β
Cache entries need regular updates to stay accurate and relevant:
- π Update outdated information (new requirements, changed policies)
- β¨ Improve answer quality (clearer wording, better structure)
- π― Add question variations (help more users find the answer)
- π§ Fix errors (typos, incorrect facts, broken sources)
- βοΈ Adjust settings (confidence, TTL, status)
Review and update cache entries regularly based on their TTL (Time-To-Live) to maintain accuracy.
Opening the Edit Modalβ
Step 1: Find the Cache Entryβ
Use search and filters to locate the entry you want to edit.
Step 2: Click the Edit Buttonβ
In the cache list, click the "Edit" button (βοΈ icon) for the entry you want to modify.
Step 3: Edit Modal Opensβ
A popup window (modal) appears showing all editable fields.
Understanding Edit Modal Fieldsβ
The edit modal contains several sections. Let's go through each one:
Section 1: Questionβ
Field: Question
Purpose: The main question this cache entry answers
Guidelines:
- β Write as a complete, natural question
- β Use the most common way users ask
- β Keep it concise (1-2 sentences max)
- β Don't use abbreviations unless common
- β Avoid overly specific phrasing
Examples:
- β Good: "What are the admission requirements for the HFIM program?"
- β Too specific: "What are the exact admission requirements for undergraduate HFIM majors applying in Fall 2026?"
- β Good: "Who is the academic advisor for HFIM?"
- β Too casual: "who's the advisor"
Section 2: Responseβ
Field: Response Text
Purpose: The answer the chatbot will return when this entry matches
Guidelines:
- β Write clear, complete answers
- β Use proper grammar and punctuation
- β Include relevant details without overloading
- β Break long answers into paragraphs or bullet points
- β Use consistent formatting across entries
- β Don't include outdated dates
- β Avoid opinions or subjective statements (unless clearly labeled)
Formatting Tips:
**Bold**: Use **asterisks** for emphasis
*Italic*: Use *single asterisks* for slight emphasis
β’ Bullets: Use bullet points for lists
Paragraphs: Separate with blank lines
Links: Use full URLs or [text](URL) format
Example Response:
The HFIM program requires the following for admission:
β’ Minimum 3.0 high school GPA
β’ SAT score of 1200+ or ACT score of 24+
β’ Completed application by January 15
β’ Personal statement (500 words)
β’ Two letters of recommendation
For more details, visit the admissions office or email admissions@uga.edu.
Section 3: Sourcesβ
Field: Sources (JSON)
Purpose: Documents used to create this response, shown as citations to users
Format: JSON array of objects
Structure:
[
{
"filename": "HFIM_Handbook_2026.pdf",
"page": 12,
"section": "Admission Requirements"
},
{
"filename": "FAQ_Document.pdf",
"page": 3
}
]
Guidelines:
- β List actual source documents
- β Include page numbers when possible
- β Add section names for clarity
- β Use correct JSON format (brackets, quotes, commas)
- β Don't leave empty if sources exist
- β Don't include fictional documents
Tip: Use a JSON validator (like jsonlint.com) if you're unsure about formatting.
Section 4: Confidence Scoreβ
Field: Confidence
Purpose: Your confidence level in the answer's accuracy (0.00 to 1.00)
Recommended Levels:
| Score | Confidence Level | Use For | Example |
|---|---|---|---|
| 0.95-1.0 | Very High | Official facts, verified info | Program requirements, contact emails |
| 0.85-0.94 | High | Generally accurate, stable | Course descriptions, faculty bios |
| 0.70-0.84 | Medium | Helpful but may vary | General advice, suggestions |
| < 0.70 | Low | Uncertain or outdated | Old information, unverified claims |
How to Choose:
- Verified from official sources? β 0.95+
- Based on current documentation? β 0.85-0.94
- General knowledge, may change? β 0.70-0.84
- Uncertain or needs review? β < 0.70
Entries with confidence < 0.70 are less likely to match user questions. Use low confidence only when you're genuinely unsure about accuracy.
Section 5: TTL (Time-To-Live)β
Field: TTL (days)
Purpose: How many days until this entry should be reviewed for accuracy
Recommended Values:
| TTL | Use For | Examples |
|---|---|---|
| 7 days | Changes frequently | Current semester deadlines, event dates |
| 30 days | Needs occasional review | Faculty office hours, course schedules |
| 90 days | Stable information | Program history, degree requirements |
| 180 days | Permanent facts | Mission statement, core values |
How It Works:
- TTL is a reminder, not a hard expiration
- Entries don't stop working when TTL expires
- Use TTL to track when you should review the entry
Tip: Set calendar reminders based on important TTL dates to ensure timely updates.
Section 6: Statusβ
Field: Status
Purpose: Whether this cache entry is active (in use) or inactive (disabled)
Options:
- Active: Chatbot uses this entry to answer questions
- Inactive: Entry is stored but not used
When to Set Inactive:
- βΈοΈ Information is temporarily outdated (will be updated soon)
- βΈοΈ Testing a new version of the entry
- βΈοΈ Seasonal information (summer internships in fall semester)
- βΈοΈ Uncertain accuracy, needs verification
When to Keep Active:
- β Information is current and accurate
- β Answer is helpful and correct
- β Sources are valid
Instead of deleting outdated entries, set them to "Inactive." You can reactivate later if the information becomes relevant again.
Section 7: Question Variationsβ
Field: Question Variations
Purpose: Alternative ways users might ask the same question
Format: One variation per line
Example:
What is HFIM?
Tell me about the HFIM program
Explain Hospitality and Food Industry Management
What does HFIM stand for?
Is HFIM a good major?
HFIM program information
Guidelines:
- β Include common misspellings (professer β professor)
- β Add abbreviations (HFIM vs. Hospitality)
- β Include casual phrasing ("who's the advisor" vs. "Who is the academic advisor")
- β Use different question formats (question vs. statement)
- β Add 5-15 variations for important entries
- β Don't add completely unrelated questions
Pro Tip: Use the AI-powered Variation Generator to create variations automatically!
Section 8: Admin Notesβ
Field: Admin Notes (Internal)
Purpose: Notes for other administrators (not shown to users)
Use For:
- π Explanation of changes made
- π Reasons for specific confidence scores
- β° Reminders for future updates
- π Links to internal documents
- π₯ Notes about who to contact for updates
Example:
Updated for Fall 2026 requirements.
Confirmed with Dr. Smith on 1/10/2026.
Re-review when Spring 2027 handbook is published.
Admin notes are never shown to chatbot users. Use them freely for internal documentation.
Step-by-Step Editing Processβ
Basic Edit Workflowβ
- Open the edit modal (click Edit button)
- Review current content - Read what's already there
- Make your changes - Edit fields as needed
- Verify accuracy - Double-check facts and sources
- Set appropriate confidence - Reflect your certainty level
- Update TTL - Set review reminder
- Add variations (optional) - Improve matching
- Save changes - Click "Save Changes" button
Scrolling in the Edit Modalβ
The edit modal shows several fields. Some fields are below the fold (off-screen) when the modal first opens.
To see all fields: Scroll down within the modal to view:
- Status dropdown
- Question Variations textarea
- Admin Notes textarea
- Action buttons (Save Changes, Cancel, Generate Variations)
Use your mouse wheel or trackpad to scroll within the modal. The main page behind the modal won't scrollβonly the modal content.
Saving Your Changesβ
Save Changes Buttonβ
Located at the bottom of the edit modal:
- Review all fields one final time
- Click "Save Changes"
- Wait for confirmation (green success message or modal closes)
- Verify in the cache list (entry shows "Last Updated" with current date)
What Gets Savedβ
When you click "Save Changes":
- β All field changes are saved immediately
- β "Last Updated" timestamp updates
- β Changes take effect within seconds (hot reload)
- β Activity log records your changes
No "Undo": Once saved, changes are live. Be sure before saving!
Canceling Changesβ
Cancel Buttonβ
If you want to exit without saving:
- Click "Cancel" at the bottom of the modal
- Or click the X in the top-right corner
- Or press Esc key
Clicking Cancel or closing the modal discards all changes. There's no "Are you sure?" promptβchanges are immediately lost.
Common Editing Tasksβ
Task 1: Update Outdated Informationβ
Scenario: Program requirements changed for Fall 2026
Steps:
- Find the affected cache entry
- Click Edit
- Update the Response field with new requirements
- Update Sources if using new documents
- Update TTL (e.g., 90 days for stable requirements)
- Add Admin Notes: "Updated for Fall 2026 per new handbook"
- Save Changes
Task 2: Improve Answer Clarityβ
Scenario: Users report confusion about a cached answer
Steps:
- Review user feedback in Conversations
- Find the cache entry
- Click Edit
- Rewrite Response for better clarity
- Add examples or bullet points
- Keep Confidence high (if facts are correct)
- Add Admin Notes: "Improved clarity based on user feedback"
- Save Changes
Task 3: Fix Typos or Errorsβ
Scenario: You spot a typo in a cached response
Steps:
- Find the entry
- Click Edit
- Correct the typo in Question or Response
- No need to change other fields (confidence, TTL, etc.)
- Add Admin Notes: "Fixed typo"
- Save Changes
Task 4: Temporarily Disable an Entryβ
Scenario: Information is outdated but will be updated soon
Steps:
- Find the entry
- Click Edit
- Change Status to Inactive
- Add Admin Notes: "Inactive until Fall 2026 handbook available"
- Save Changes
Remember: Set a reminder to reactivate once updated!
Task 5: Increase Confidence After Verificationβ
Scenario: You verified a low-confidence entry with official sources
Steps:
- Find the low-confidence entry
- Click Edit
- Verify Response matches official sources
- Update Sources to include new documentation
- Increase Confidence to 0.90+
- Add Admin Notes: "Verified with Dr. Smith, increased confidence"
- Save Changes
Managing Entry Status and Deletionβ
Each cache entry row has several action buttons for managing its lifecycle. Understanding the difference between these options is crucial to avoid accidentally losing data.
Action Buttons Overviewβ

Each row in the cache list has these action buttons:
| Button | Icon | Action | Reversible? |
|---|---|---|---|
| Edit | βοΈ | Opens the edit modal | Yes |
| View | ποΈ | Shows entry details | N/A (read-only) |
| Deactivate/Activate | βΈοΈ/βΆοΈ | Toggles active status | Yes |
| Clear Redis | ποΈ | Removes from Redis cache only | Yes (re-caches on next use) |
| Delete | β | Permanently removes from database | No |
Deactivate vs Clear Redis vs Deleteβ
These three options serve very different purposes:
Option 1: Deactivate (βΈοΈ Deactivate)β
What it does: Sets the entry's status to "Inactive"
Effect:
- β Entry remains in the PostgreSQL database
- β Entry stops serving responses to users
- β Can be reactivated anytime with the "βΆοΈ Activate" button
- β Preserves all data, history, and admin notes
Use when:
- Information is temporarily outdated
- You need time to verify accuracy
- Seasonal content is out of season
- Testing before making changes live
Example: Internship deadline info during summer break β Deactivate, then reactivate in fall.
Option 2: Clear Redis (ποΈ Clear Redis)β
What it does: Removes this specific entry from the Redis cache layer only
Effect:
- β Entry remains in the PostgreSQL database
- β Entry remains active and can still serve responses
- β Redis cache for this entry is cleared (forces fresh lookup)
- β Entry will be re-cached in Redis on next use
Use when:
- You updated an entry and want to force a cache refresh
- Redis might have stale data for this entry
- Troubleshooting cache inconsistencies
The chatbot uses a two-tier cache:
- Redis (L1): Fast in-memory cache, checked first
- PostgreSQL (L2): Persistent database, checked if Redis misses
"Clear Redis" only affects the Redis layer. The PostgreSQL record is untouched.
Option 3: Delete (β Delete)β
What it does: PERMANENTLY removes the entry from the PostgreSQL database
Effect:
- β Entry is completely removed from the database
- β All data, history, variations, and admin notes are lost
- β Cannot be undone
- β Entry cannot be recovered
Safety measures:
- First confirmation dialog appears
- You must type "DELETE" (in all caps) to confirm
- Only then is the entry permanently removed
Use when:
- Entry was created by mistake
- Information is permanently irrelevant (e.g., discontinued program)
- Duplicate entry that should never have existed
The Delete button permanently removes data. There is no recycle bin or undo feature. Always prefer Deactivate unless you're certain the entry should never exist.
Decision Flowchartβ
Use this flowchart to decide which action to take:
Is the information wrong or outdated?
β
βββΊ YES: Is it temporarily outdated?
β β
β βββΊ YES β Use DEACTIVATE (can reactivate later)
β β
β βββΊ NO: Is it permanently irrelevant?
β β
β βββΊ YES β Use DELETE (after careful consideration)
β β
β βββΊ NO β Use EDIT to update the content
β
βββΊ NO: Is there a caching issue?
β
βββΊ YES β Use CLEAR REDIS (forces refresh)
β
βββΊ NO β No action needed
Common Mistakes to Avoidβ
| Mistake | Why It's a Problem | Better Approach |
|---|---|---|
| Deleting instead of deactivating | Loses all data permanently | Deactivate first, delete only if truly unnecessary |
| Clearing Redis when you meant to deactivate | Entry still serves responses | Use Deactivate to stop serving |
| Deleting to "clean up" unused entries | May need them later | Deactivate and add admin note explaining why |
Editing Best Practicesβ
1. Verify Before Editingβ
- β Check official sources first
- β Consult with program coordinators if unsure
- β Review existing documentation
Don't: Guess or make assumptions
2. Document Your Changesβ
- β Use Admin Notes to explain edits
- β Include dates and sources
- β Note who provided information
Example: "Updated 1/15/2026 per Dr. Johnson, new course prerequisites"
3. Test Variationsβ
- β Think about how users actually ask questions
- β Include common misspellings
- β Add casual and formal versions
Don't: Only use official terminology
4. Set Appropriate Confidenceβ
- β Be honest about uncertainty
- β Lower confidence if information might change
- β High confidence only for verified facts
Don't: Default to 1.0 for everything
5. Update TTL Realisticallyβ
- β Shorter TTL for changing information
- β Longer TTL for stable facts
- β Set reminders for important dates
Don't: Set overly aggressive TTL (7 days for everything)
Troubleshootingβ
Problem: Changes Aren't Savingβ
Possible Causes:
- Network issue - Check internet connection
- Session expired - Log in again
- Validation error - Check for required fields or format errors
- Browser issue - Try refreshing or different browser
Solution: Try saving again. If it fails, copy your changes to a text file and contact support.
Problem: Can't Find the Save Buttonβ
Cause: Modal hasn't been scrolled down
Solution: Scroll down within the modal to see action buttons at the bottom.
Problem: Accidentally Clicked Cancelβ
Cause: Closed modal without saving
Solution: Reopen the edit modal and make changes again. Consider copying text to a temporary note while editing to avoid losing work.
Problem: Changes Didn't Take Effectβ
Cause: Hot reload may take a few seconds
Solution: Wait 30-60 seconds and check again. Refresh the page to verify.
Activity Logβ
After saving changes, check the Activity Log at the bottom of the Cache Management page to verify your edit was recorded.
The activity log shows:
- β Your email address (who made the change)
- β Timestamp (when the change was made)
- β Action type (UPDATE)
- β Fields changed (old value β new value)
If the activity log shows "Failed to load," your changes were still saved successfully. The log is supplementary and doesn't affect core functionality.
Next Stepsβ
Now that you know how to edit cache entries:
- Generate variations to improve matching
- Perform bulk operations for efficiency
- Monitor performance metrics to prioritize edits
- Follow best practices for long-term success
Remember: Every edit affects the live chatbot within seconds. Always verify accuracy and test your changes when possible!