A comprehensive data lake system for AI-first sales organizations, enabling advanced revenue intelligence through unstructured data analysis and AI-driven insights.
[Data Sources] → [API Gateway] → [Message Queue] → [LakeSail Processing] → [Storage Layer] → [AI Layer]
-
Data Sources
- Sales conversations
- Email threads
- Product usage data
- External research
-
API Gateway
- FastAPI-based ingestion endpoints
- Authentication and rate limiting
- Request validation
-
Message Queue
- Kafka for real-time data streaming
- Topic-based routing
- Message persistence
-
Processing Layer (LakeSail)
- High-performance data processing
- Batch and stream processing
- AI workload support
-
Storage Layer
- S3/MinIO for raw data
- Vector storage for embeddings
- Metadata catalog
-
AI Layer
- Multiple LLM integration
- Custom model training
- Natural language querying
gtm_data_lake/
├── api/ # FastAPI application
├── ingestion/ # Data ingestion modules
├── processing/ # Data processing pipelines
├── ai/ # AI models and agents
├── storage/ # Storage interfaces
└── utils/ # Utility functions
- Python 3.9+
- Git
- Docker (optional)
-
Clone the repository:
git clone [repository-url] cd gtm-data-lake -
Create and activate a virtual environment:
python3 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Set up environment variables:
cp .env.example .env # Edit .env with your configuration
-
Start the API server:
python run_api.py
-
Access the API documentation:
- Swagger UI: http://localhost:8000/docs
- ReDoc: http://localhost:8000/redoc
The system is designed to integrate with LakeSail for high-performance data processing. The integration will be implemented in a future update.
- Create a new branch for features
- Make changes and commit
- Push to remote repository
- Create pull request
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
POST /api/v1/query { "question": "Show me all customers who had meetings this week" }
POST /api/v1/query { "question": "What are the top 10 opportunities forecasted to close this year?" }
POST /api/v1/query { "question": "What is the most common role in sales conversations?" }
POST /api/v1/query { "question": "Show me 5 examples of successful sales calls" }
POST /api/v1/ingest/calendar-event { "event_id": "meeting_123", "title": "Product Demo with Acme Corp", "start_time": "2024-03-20T14:00:00Z", "end_time": "2024-03-20T15:00:00Z", "description": "Demo of our AI platform for the sales team", "attendees": [ {"email": "john@acme.com", "name": "John Doe", "role": "Sales Director"}, {"email": "jane@acme.com", "name": "Jane Smith", "role": "CTO"} ], "organizer": {"email": "sales@yourcompany.com", "name": "Sales Team"}, "opportunity_id": "opp_456", "company_domain": "acme.com", "meeting_type": "product_demo" }
POST /api/v1/ingest/agent-data { "agent_id": "lead_qual_123", "agent_type": "lead_qualification", "timestamp": "2024-03-20T14:00:00Z", "data": { "domain": "acme.com", "company_size": "1000-5000", "geography": "North America", "product_usage": { "active_users": 50, "engagement_score": 0.8 }, "qualification_status": "MQL", "confidence_score": 0.9 }, "metadata": { "source": "web_form", "form_id": "enterprise_inquiry_123" } }