Skip to content

Improve the chatbot instructions #411

Open

Description

@sahilds1

This issue combines #387 and #245

Activity

  1. moved this to Priority in Balanceron Nov 18, 2025
  2. moved this from Priority to In Progress in Balanceron Nov 18, 2025
  3. sahilds1 commented on Nov 18, 2025

    @sahilds1
    CollaboratorAuthor

    Note: Chatbot instructions update TODO: #345 (comment)

  4. sue-hntr commented on Jan 6, 2026

    @sue-hntr

    My slide explanation for testing AskJJ responses ( created in early December 2025) is the first pdf attachment below.

    That being said, Improving the AskJJ responses in code is a multi-step process.
    In November 2025, AskJJ passed the tests for correctly querying the Balancer documents and responding with source citations.

    This next new phase of AskJJ improvement is fine-tuning those responses to improve the user experience of AskJJ. The earlier AskJJ prompt responses can be seen at Bottom Tab: STEP 4 Master Question List at https://docs.google.com/spreadsheets/d/1axFkiqhHGgNFTmaYf5qE3qU4072KQcA4Ef-ZNO9-vPk/edit?gid=193288419#gid=193288419. You need @katjost to give you access to the Google Sheets.)

    Here are the 3 main dev steps to take for AskJJ improvement:

    Release 1 — Pronouns + Exact No-Match + Minimal Linter
    This step locks in the exact wording we want and adds a tiny safety net to clean up any stragglers.
    Ship two small instruction lines (canonical attribution + exact no-match sentence) to set the baseline.
    Add a lightweight regex-based UI wording linter on final text only to normalize “your documents/files/sources.”
    Validate with unit tests and a short batch run; enable via feature flag with a one-toggle rollback.

    Release 2 — Self-Awareness + Tone/Format
    This step makes AskJJ sound polished and consistent without changing what it says.
    Add a single self-identification line so AskJJ clearly references Balancer and its corpus.
    Tighten structure (clear headings, concise paragraphs, neutral tone) without expanding the linter unless a recurring issue appears.
    Re-run the same tests to confirm no regressions; no flag changes needed.

    Release 3 — Edge Templates & Fallbacks
    This step aligns the rare paths (errors, no-results, fallbacks) with the new wording and style.
    Update those templates to use the approved attribution and the exact no-match sentence.
    Add only narrowly scoped linter rules for proven variants discovered in real usage.
    Confirm zero forbidden phrases, low linter hit-rate, and stable performance—then consider trimming the linter.

    It may be wise to create PRs for each. It would be best for the development work to be completed in the order listed above.

    I have created a high-level stakeholder document, which was fabricated (directed by me, written by ChatGPT), attached below.

    Please read AskJJ Rollout Plan - Jan 2026.pdf before submitting questions.

    I have also included Python code recommended by ChatGPT for Release 1 (4 code docs attached below). As a former dev, I have tried to ask all relevant questions that may affect AskJJ and other Balancer functions that use AI. That being said, ChatGPT can be wrong. VERY WRONG.

    Please review the AskJJ Rollout Plan - Jan 2026.pdf and the Python code documents ready to drop into the repo for any grave errors or logic issues.

  5. sue-hntr commented on Jan 6, 2026

    @sue-hntr

    Here is the slide presentation I created to explain why it was necessary to update Balancer code beyond just improving the instructions:

    AI-Slides_How-we-keepAskJJ-OutofTrouble.pdf

  6. sue-hntr commented on Jan 6, 2026

    @sue-hntr

    I created this high-level stakeholder document, AskJJ Rollout Plan - Jan 2026.pdf. Please read before submitting questions.

    AskJJ Rollout Plan - Jan 2026.pdf

  7. sue-hntr commented on Jan 6, 2026

    @sue-hntr

    #1 Python doc for release 1: ui_linter_rules_v01.py

    ui_linter_rules_v01.py

  8. sue-hntr commented on Jan 6, 2026

    @sue-hntr

    #2 Python doc for release 1: test_ui_linter_v01.py

    test_ui_linter_v01.py

    Please note that, as a UX designer, this recommended file from ChatGPT is outside of my scope. Chat phrased it as a "nice to have". I have been the only one documenting AskJJ responses and only during pre-release on https://balancertestsite.com/. I have no clue how this test file would work.

  9. sue-hntr commented on Jan 6, 2026

    @sue-hntr

    #3 Markdown doc for release 1: ui_linter_README.md

    ui_linter_README.md

  10. sue-hntr commented on Jan 6, 2026

    @sue-hntr

    #4 Extra markdown that didn't fit into the other readme: extra-readme.md

    extra-readme.md

  11. moved this from In Progress to Icebox in Balanceron Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

  • Status
    Icebox

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions