Albanian Rules Bot Logo
Technical Documentation

📊 Overview: The system uses cutting-edge artificial intelligence technology to provide accurate and fast answers about the Parliamentary Rules of Procedure.

1. Artificial Intelligence Models
Primary Model

OpenAI GPT-4

For complex and detailed responses

Supporting Model

OpenAI GPT-3.5 Turbo

For text extraction and summarization

Configuration
  • Creativity: Limited (low creativity setting)

  • Temperature: 0.1-0.3 (for maximum accuracy)

  • Max tokens: 4,096 per response

2. Reference Documents
Primary Source
📜 Rules of Procedure of the Assembly of the Republic of Albania
  • Version: Approved in 2025

  • Articles: 1-200+ (all procedural articles)

  • Languages: Albanian (with English translations)

  • Format: Structured text with metadata

  • Last update: December 2025

Supporting Documents
📋 Procedural Guidelines
  • Session conduct guidelines

  • Voting procedures

  • Parliamentary debate rules

  • Committee organization

📚 Official Interpretations
  • Parliamentary Presidency decisions

  • Established practices

  • Legal interpretations

  • Case studies

3. System Architecture
🔍 Retrieval Augmented Generation (RAG)

The system uses RAG technology to find the most relevant information:

  1. User question is analyzed and converted to vector

  2. Most relevant fragments are searched in the database

  3. Top 5 most important fragments are sent to GPT-4

  4. GPT-4 formulates response based on these fragments

  5. Response is checked for accuracy and formatted

💾 Data Storage
  • Pinecone: Vector database for semantic search

  • Redis: Cache for frequent responses

  • MySQL: Conversation and metadata storage

  • Laravel Framework: Application management system

4. Performance and Optimization
~2-5s

Average response time

95%+

Response accuracy

7 days

Response cache

5. Security and Privacy

Full encryption: All data is transmitted via HTTPS and stored encrypted.

  • Session TTL: 60 minutes (automatically cleaned)

  • Data minimization: Only necessary data is stored

  • GDPR compliant: Respects right to data deletion

  • No personal data: No personally identifiable information stored

6. Current Limitations and Future Improvements
⚠️ Current Limitations
  • No access to real-time information

  • Focus only on Parliamentary Rules

  • May have errors in complex interpretations

  • Does not provide official legal advice

🚀 Planned Improvements
  • Addition of new legal documents

  • Improved response accuracy

  • More interactive interface

  • Integration with other parliamentary systems

7. Technical Contact

For technical questions or issue reporting: