Working through this module?
Module 02 · Page 3 of 20 · 7 sections
Requirements and Use Case Analysis
How to turn a vague idea into functional, non-functional and business requirements, worked through for an AI chatbot.
Why Requirements are Important?
- Help to understand what the system needs to achieve.
- Define functional and non-functional requirements.
- Identify constraints, performance goals and stakeholders.
- Ensure the system is scalable, reliable and cost-effective.
Types of Requirements
- Functional Requirements
- What the system should do, e.g. process user queries, return accurate responses, support multiple data sources.
- Non-Functional Requirements
- How the system should perform, e.g. low latency, high availability, scalability, security, cost efficiency.
- Business Requirements
- Business goals and success metrics, e.g. improve customer support, reduce manual work, personalize recommendations.
1
2
3
Example: AI Chatbot System
Users
User QueriesText, voice, document, image
AI Chatbot System
ResponseAccurate, relevant, cited source, real-time
Internal DocsPDF, docs
DatabaseFAQs, policies
Web SearchReal-time
Functional Requirements (Use Cases)
- 1User can ask natural language questions.
- 2System retrieves relevant information from internal documents.
- 3System generates accurate and contextual responses using an LLM.
- 4Supports multiple input types (text, file, image).
- 5Response should include source references.
- 6Support for chat history and follow-up questions.
Non-Functional Requirements
- 1Low latency (e.g. under 2 seconds).
- 2High availability (e.g. 99.9% uptime).
- 3Scalable to handle a large number of users.
- 4Secure access (authentication and authorization).
- 5Handle large documents and multiple data sources.
- 6Cost optimization (use caching, efficient models).
- 7Monitoring, logging and error handling.
Stakeholders
- End Users
- Employees / customers.
- Business Team
- Define goals and success metrics.
- Data Team
- Provide and maintain data sources.
- Engineering Team
- Build and deploy the system.
- Operations Team
- Monitor and maintain.
- Security Team
- Ensure data privacy and compliance.
1
2
3
4
5
6
Success Metrics
- Response Accuracy
- Relevant and correct answers.
- Latency
- Average response time.
- User Satisfaction
- Feedback rating.
- Adoption Rate
- Active users.
- Cost per Query
- What each answer costs to produce.
- System Reliability
- Uptime and error rate.
1
2
3
4
5
6
Related14Evaluation and Testing