# Phase-1 Business Requirements

## Connectors

### GChat Connector
- **Scope**: Sync individual chats, chat spaces, space members (including roles), messages, threads, and attachments (e.g., documents, markdown files, Excel sheets, PDFs, tables). Include message owners for proper attribution.
- **Details**: [Gchat Connector](./features/gchat.md)

### Gmail Connector
- **Scope**: Sync emails, attachments, mail threads, and metadata such as `to`, `cc`, `bcc`.
- **Details**: [Gmail Connector](./features/gmail.md)

### GDrive Connector
- **Scope**: Sync folders, files (e.g., documents, markdown files, Excel sheets, PDFs, tables), metadata, and shared members with their roles.
- **Details**: [Gdrive Connector](./features/gdrive.md)

### Database Connector
- **Scope**: Query data from a PostgreSQL database. Convert natural language queries to SQL for structured answers.
- **Details**: [Database Connector](./features/database.md)

### Web Connector
- **Scope**: Perform web searches to supplement enterprise data. Filter results for relevance and credibility.
- **Details**: [Web Connector](./features/web-connector.md)

## Core Features

### RAG Service
- **Scope**: Unify retrieval across all connectors; perform hybrid retrieval (BM25 + vector), apply ACL filters, assemble diverse context windows, and return citations and metadata for grounded answers.
- **Details**: [RAG Service](./features/rag-service.md)

### Conversation & Feedback Management
- **Scope**: Enable natural language queries and maintain conversation context across sessions. Provide feedback mechanisms for users to rate responses.
- **Details**: [Conversation & Feedback Management ](./features/conversation-feedback.md)

### Schedulers
- **Scope**: Manage scheduled tasks for syncing data from connectors (e.g., GDrive, Gmail, GChat) and maintaining system operations.
- **Details**: [Scheduler Specifications](./features/schedulers.md)

### User Management
- **Scope**: Manage user authentication, role-based access control, and permissions for data sources.
- **Details**: [User Management](./features/user-management.md)

### Governance Model
- **Scope**: Define privilege models for data access, ensuring compliance with enterprise security and governance standards.
- **Details**: [Governance Model](./features/governance.md)

### Enterprise Brain Agent
- **Scope**: Implement intelligence on synced data based on user queries, leveraging the RAG Service for high-quality, context-aware responses.
- **Details**: [Enterprise Brain Agent](./features/enterprise-brain-agent.md)

### Orchestration
- **Scope**: Coordinate multi-step workflows across connectors and the RAG Service; manage retries, backoffs, and idempotency for reliable execution.
- **Details**: [Orchestration](./features/orchestration.md)

## Operational Requirements

### Logging
- **Scope**: Implement audit logging for all user queries and system access.
- **Details**: [Logging](./features/logging.md)

### LLM Monitoring
- **Scope**: Monitor large language model (LLM) performance, including token usage, latency, and accuracy.
- **Details**: [LLM Monitoring](./features/llm-monitoring.md)