Skip to content

Conversation

@Reeteshrajesh
Copy link

Overview

This PR extends the original LLM Council with 5 production-ready features while maintaining the core vision of collaborative LLM decision-making.

Features Added

🎯 Feature 1: TOON Integration

  • Token optimization using TOON format (30-60% savings)
  • Real-time token counting and savings display

💾 Feature 2: Multi-Database Support

  • Unified storage API supporting JSON, PostgreSQL, and MySQL
  • Automatic database initialization with SQLAlchemy models
  • Zero-setup JSON storage (default)

💬 Feature 3: Context & Follow-up Questions

  • Conversation memory with last 6 messages (3 exchanges)
  • Natural multi-turn conversations
  • Context passed to all council members

🛠️ Feature 4: Advanced AI Capabilities

  • Free Tools: Calculator, Wikipedia, ArXiv, DuckDuckGo, Yahoo Finance
  • Optional Paid Tools: Tavily Search, OpenAI Embeddings
  • Memory System: ChromaDB with local/OpenAI embeddings
  • LangGraph: Optional graph-based workflows
  • Flag-based configuration for easy toggling

⚙️ Feature 5: Conversation Management

  • Delete conversations with confirmation
  • Edit conversation titles (inline editing with keyboard shortcuts)
  • Temporary chat mode (no storage persistence)
  • Professional 3-dot menu UI

Technical Improvements

  • Professional code with comprehensive documentation
  • All features storage-agnostic (work with JSON/PostgreSQL/MySQL)
  • Comprehensive documentation: FEATURES.md, RUN.md, feature plans
  • Environment-based configuration
  • Modular architecture for easy extension

Documentation

  • FEATURES.md - Complete feature documentation
  • RUN.md - Setup and running instructions

Backwards Compatibility

✅ Fully backwards compatible - all original functionality preserved
✅ Zero breaking changes
✅ Optional features can be disabled via flags

Testing

  • Tested with JSON storage (default)
  • Database models created for PostgreSQL/MySQL
  • All endpoints verified working
  • UI tested with all features

Files Changed

  • 24 files changed, 7318 insertions, 215 deletions
  • New files: tools.py, memory.py, database.py, models.py, .env.example, FEATURES.md, RUN.md
  • Modified: config.py, main.py, storage.py, council.py, frontend components

Let me know if you'd like any changes or have questions about the implementation!

reetesh and others added 3 commits December 3, 2025 17:23
…apabilities

Feature 1: TOON Integration
- Token optimization using TOON (Tree Object Notation) format
- 30-60% token savings compared to JSON/text
- Real-time token counting with tiktoken
- Token savings display in UI

Feature 2: Database Migration
- Multi-database storage backend (JSON, PostgreSQL, MySQL)
- Unified storage API - same code works with all backends
- Automatic database initialization
- SQLAlchemy models for relational databases
- Environment variable configuration (DATABASE_TYPE)

Feature 3: Follow-up Questions with Context
- Conversation memory with last 6 messages (3 exchanges)
- Context passed to all council members
- Natural multi-turn conversations
- Seamless conversation continuity

Feature 4: Advanced AI Capabilities
- LangChain tool integration (Calculator, Wikipedia, ArXiv, DuckDuckGo, Yahoo Finance)
- Memory system with ChromaDB and vector embeddings
- Free local embeddings (HuggingFace) with optional OpenAI embeddings
- Optional Tavily search integration
- LangGraph support for complex workflows
- Flag-based configuration for paid vs free features

Feature 5: Conversation Management
- Delete conversations with confirmation dialog
- Edit conversation titles with inline editing
- Temporary chat mode (no storage persistence)
- Professional 3-dot menu UI (⋮) for actions
- Keyboard shortcuts (Enter/Escape)

Documentation:
- Added comprehensive FEATURES.md covering all 5 features
- Added RUN.md with complete setup and run instructions
- Added .env.example with all configuration flags
- Updated .gitignore to exclude scripts directory

Backend improvements:
- New files: tools.py, memory.py, database.py, models.py
- New endpoints: DELETE /api/conversations/{id}, PATCH /api/conversations/{id}/title
- Temporary mode support in message endpoints
- Unified storage API for all operations
- Database models for PostgreSQL/MySQL support

Frontend improvements:
- 3-dot menu with dropdown for conversation actions
- Inline title editing with keyboard shortcuts
- Delete confirmation dialog
- Updated API client with new methods
- Token savings display
- Real-time streaming updates
[email protected]
Update README and config with premium models

- Add all 5 features section to README
- Update council models to premium set (GPT-5.1, Gemini-3-Pro, Claude-4.5, Grok-4)
- Add documentation links (FEATURES.md, RUN.md, contributions/)
- Update tech stack section with all new technologies
@MeNicefellow
Copy link

Could you add image and pdf attachment functions as well? @Reeteshrajesh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants