Spaces:
Running
Running
Uploaded new Version of AgileAdvisor v0.5
#2
by Suryasticsai - opened
feat: AgileAdvisor v0.5 β Persistent Gist Sync, ScrumLens RAG, Auto-Tags, Duplicate Detection, Role Hierarchy & Quick-Feed
Summary
This PR ships AgileAdvisor v0.5, a major feature drop that turns the static knowledge base into a living, self-improving RAG system. Every feed now auto-persists back to GitHub Gist, facts carry smart category tags, and a new ScrumLens mode lets users audit raw meeting transcripts against the vector memory.
β¨ What's New
| Feature | Description |
|---|---|
| π Persistent Gist Sync | Every feedβbulk or single-clickβnow appends to the GitHub Gist API and immediately hot-reloads the ChromaDB collection. The Gist is the single source of truth; local vector DB is just a fast mirror. |
| π ScrumLens Native RAG | New "ScrumLens π" tab. Paste any meeting transcript (Daily Standup, Retro, Planning) and the advisor cross-checks it against the KB, surfaces anti-patterns, assigns per-role action items, and gives a health score banner (π’π‘π΄). |
| β οΈ Duplicate Detection | Live duplicate guard before you save. Uses exact match + difflib.SequenceMatcher (>88% similarity) + substring containment. The Feed tab now has a "Preview Tags & Duplicates" button that renders inline warnings. |
| ποΈ Role Hierarchy Diagram | New "Role Hierarchy ποΈ" tab. A pure HTML/CSS vertical flow diagram showing Stakeholders β PO β SM β Dev Team β RTE with color-coded borders and assigned output badges (e.g., Product Backlog, Impediment Removal, Potentially Shippable Increment). |
| π·οΈ Feed Data Auto-Tags | Facts are auto-labelled on ingest via keyword heuristics (ceremony, role, artifact, metric, anti-pattern, gamification, general). Tags are embedded in Gist lines as [ceremony] fact... and stored in ChromaDB metadata for richer retrieval context. |
| π¦ Smart Quick-Feed Card | After every answer in the Ask tab, a compact card appears showing the top retrieved fact + its tags. One "β Feed This Fact to Dataset" button instantly appends it to Gist without re-typing. |
ποΈ Technical Changes
KnowledgeBase.auto_tag()β zero-token keyword heuristics for categorization.KnowledgeBase.check_duplicate()β exact / similar / contained tri-check.KnowledgeBase._parse_line()/_format_line()β round-trip serialization of[tag] contentformat in Gist.KnowledgeBase._append_lines_to_gist()β unified write path used by both bulk feed and quick feed.AgileAdvisor.analyze_transcript()β transcript audit pipeline with expanded context window (n_results=3).- ChromaDB metadata β now stores
tags,hash, andsourceper document. - Gradio UI β 5 tabs: Ask, ScrumLens, Feed Dataset, Role Hierarchy, About.
π Backwards Compatibility
- Zero breaking changes. Existing Gist lines without a
[tag]prefix are gracefully parsed asgeneral. - The ChromaDB collection version metadata is bumped to
2.0but re-initializes automatically on first run.
π§ͺ How to Test
- Ask a question β verify the response still renders the Dataset Card + explanation + quote.
- Check Quick-Feed β after the answer, click "β Feed This Fact to Dataset" and confirm the Gist grows by one tagged line.
- Open ScrumLens β paste a fake Daily Standup transcript β verify you get a health score + red flags + role actions.
- Feed Dataset β type two lines, one duplicate of an existing fact β click Preview β confirm the duplicate is flagged in red. Then click Feed and confirm Gist sync message.
- Role Hierarchy β open the tab β verify the vertical flow diagram renders with correct role colors and output badges.
- Restart the Space β confirm the KB reloads from Gist with tags intact (check the stats bar document count).
π Files Added
AgileAdvisor-v0.5.py
β PR Checklist
- Code runs locally without errors
- Gist read/write tested with live token
- ChromaDB persistent storage verified across restarts
- No hardcoded secrets or API keys exposed
- HTML output sanitized via
sanitize_html() - Backwards compatible with untagged legacy Gist data
Ready for review - app.py. π
Suryasticsai changed pull request status to merged