Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ai-infra-curriculum/ai-infra-engineer-learning
/ types & classes
Types & classes
113 in github.com/ai-infra-curriculum/ai-infra-engineer-learning
⨍
Functions
523
◇
Types & classes
113
↳
Endpoints
19
↓ 2 callers
Class
ComponentHealth
Health status for a single component.
projects/project-102-mlops-pipeline/src/monitoring/health.py:33
↓ 2 callers
Class
HealthResponse
Health check response TODO: Define health check response structure Fields to include: - status: str - "healthy" or "unhealthy"
projects/project-101-basic-model-serving/src/api.py:139
↓ 1 callers
Class
GenerateResponse
Response for standard text generation. TODO: Complete response model with: - generated_text: The completion(s) - model: Model name u
projects/project-103-llm-deployment/src/api/models.py:233
↓ 1 callers
Class
ModelInference
Model inference class for image classification This class handles: - Loading pre-trained model - Image preprocessing - Running i
projects/project-101-basic-model-serving/src/model.py:20
↓ 1 callers
Class
ModelOptimizer
Utilities for optimizing LLM inference performance. This class provides methods for: - Applying quantization - Managing KV cache
projects/project-103-llm-deployment/src/llm/optimization.py:53
↓ 1 callers
Class
OptimizationMetrics
Metrics for optimization analysis. Attributes: model_size_gb: Model size in gigabytes peak_memory_gb: Peak GPU memory usage
projects/project-103-llm-deployment/src/llm/optimization.py:35
↓ 1 callers
Class
RAGGenerateResponse
Response for RAG-augmented generation. TODO: Extend GenerateResponse with: - sources: List of retrieved documents - retrieval_latenc
projects/project-103-llm-deployment/src/api/models.py:305
↓ 1 callers
Class
RAGResult
Result from RAG pipeline. Attributes: answer: Generated answer sources: Retrieved source documents confidence: Confi
projects/project-103-llm-deployment/src/rag/pipeline.py:50
Class
APIDataSource
Data source for REST APIs TODO: Implement API data ingestion - Handle authentication (API keys, OAuth, etc.) - Implement rate limiti
projects/project-102-mlops-pipeline/src/data/ingestion.py:268
Class
APIKeyAuthMiddleware
API key authentication middleware. TODO: Implement API key authentication - Check for API key in headers - Validate key against data
projects/project-103-llm-deployment/src/api/middleware.py:344
Class
AsyncVectorIndexer
Async version of vector indexer for high-throughput scenarios. TODO: Implement async indexing - Async batch processing - Concurrent
projects/project-103-llm-deployment/src/ingestion/indexer.py:505
Class
BaseChunker
Abstract base class for document chunkers.
projects/project-103-llm-deployment/src/rag/chunking.py:50
Class
BaseRetriever
Abstract base class for retrievers. All retriever implementations should inherit from this class and implement the retrieve() method.
projects/project-103-llm-deployment/src/rag/retriever.py:52
Class
BatchGenerateRequest
Batch generation request for processing multiple prompts. TODO: Implement batch request model - List of prompts (required) - Shared
projects/project-103-llm-deployment/src/api/models.py:172
Class
BudgetMonitor
Monitor costs against budgets and send alerts. TODO: Implement budget monitoring - Set budgets per customer/category - Check against
projects/project-103-llm-deployment/src/monitoring/cost_tracker.py:505
Class
CSVDataSource
Data source for CSV files (local or remote) TODO: Implement CSV data ingestion - Support local files - Support remote files (S3, GCS
projects/project-102-mlops-pipeline/src/data/ingestion.py:92
Class
ChatConfig
Extended configuration for chat-specific LLM serving. Adds chat-specific settings: - System prompts - Chat templates - Stop sequ
projects/project-103-llm-deployment/src/llm/config.py:363
Class
ChatLLMServer
Extended LLM server with chat-specific functionality. This class adds: - Chat template formatting - Conversation history management
projects/project-103-llm-deployment/src/llm/server.py:349
Class
ChromaIndexer
ChromaDB-specific vector indexer. TODO: Implement ChromaDB indexing - Initialize Chroma client - Implement add/upsert operation
projects/project-103-llm-deployment/src/ingestion/indexer.py:413
Class
Chunk
Represents a document chunk. Attributes: content: Chunk text content metadata: Associated metadata chunk_index: Inde
projects/project-103-llm-deployment/src/rag/chunking.py:32
Class
Config
projects/project-103-llm-deployment/src/llm/config.py:225
Class
Config
projects/project-103-llm-deployment/src/api/models.py:102
Class
Config
projects/project-103-llm-deployment/src/api/models.py:159
Class
Config
projects/project-103-llm-deployment/src/api/models.py:263
Class
Config
projects/project-103-llm-deployment/src/api/models.py:451
Class
Config
TODO: Pydantic configuration Configure how Pydantic loads settings: - env_file: Load from .env file - env_file_encod
projects/project-101-basic-model-serving/src/config.py:444
Class
ConversationalRAG
RAG pipeline with conversation memory. Extends basic RAG to support: - Multi-turn conversations - Follow-up questions - Context
projects/project-103-llm-deployment/src/rag/pipeline.py:401
Class
CostCalculator
Calculate costs for different LLM operations. TODO: Implement cost calculations - Token processing costs - GPU compute costs - S
projects/project-103-llm-deployment/src/monitoring/cost_tracker.py:95
Class
CostEvent
Single cost event. TODO: Complete cost event class - timestamp: When cost occurred - category: Type of cost (tokens, compute, storag
projects/project-103-llm-deployment/src/monitoring/cost_tracker.py:44
Class
CostOptimizer
Analyze costs and suggest optimizations. TODO: Implement cost optimization analysis - Identify high-cost customers/requests - Sugges
projects/project-103-llm-deployment/src/monitoring/cost_tracker.py:574
Class
CostSummary
Cost summary for a time period. TODO: Complete cost summary - total_cost: Total cost in USD - cost_by_category: Dict of costs by cat
projects/project-103-llm-deployment/src/monitoring/cost_tracker.py:67
Class
CostTracker
Track and aggregate costs over time. TODO: Implement cost tracking - Record cost events - Aggregate by time period - Aggregate b
projects/project-103-llm-deployment/src/monitoring/cost_tracker.py:286
Class
CostTrackingMiddleware
Track API usage costs per request. TODO: Implement cost tracking - Calculate tokens used - Estimate cost based on model - Track
projects/project-103-llm-deployment/src/api/middleware.py:477
Class
DataIngestionPipeline
Main data ingestion pipeline that coordinates data collection from multiple sources TODO: Implement pipeline orchestration - Support mul
projects/project-102-mlops-pipeline/src/data/ingestion.py:384
Class
DataPreprocessor
Main data preprocessing class TODO: Implement comprehensive preprocessing pipeline - Handle missing values - Encode categorical vari
projects/project-102-mlops-pipeline/src/data/preprocessing.py:34
Class
DataQualityMetrics
Metrics for data quality monitoring. Tracks data validation results, schema compliance, and data drift.
projects/project-102-mlops-pipeline/src/monitoring/metrics.py:157
Class
DataSource
Base class for data sources TODO: Implement this base class with common functionality for all data sources - Connection management -
projects/project-102-mlops-pipeline/src/data/ingestion.py:26
Class
DataValidator
Main data validation class using Great Expectations TODO: Implement comprehensive data validation - Schema validation (column names, typ
projects/project-102-mlops-pipeline/src/data/validation.py:31
Class
DatabaseDataSource
Data source for SQL databases (PostgreSQL, MySQL, etc.) TODO: Implement database data ingestion - Support multiple database types -
projects/project-102-mlops-pipeline/src/data/ingestion.py:160
Class
DirectoryLoader
Load all documents from a directory. TODO: Implement directory loading - Recursively scan directory - Use appropriate loader per fil
projects/project-103-llm-deployment/src/ingestion/loader.py:449
Class
Document
Document container with content and metadata. TODO: Complete document class - content: The text content - metadata: Dict with source
projects/project-103-llm-deployment/src/ingestion/loader.py:45
Class
DocumentFilter
Filter documents based on quality criteria. TODO: Implement document filtering - Filter by language - Filter by length - Filter
projects/project-103-llm-deployment/src/ingestion/processor.py:201
Class
DocumentProcessor
Main document processing pipeline. TODO: Implement complete processing pipeline - Clean text - Filter documents - Enrich metadat
projects/project-103-llm-deployment/src/ingestion/processor.py:471
Class
EmbeddingModel
Wrapper for embedding model with caching and optimization. Supports: - Sentence-transformers models - Batch processing - GPU acc
projects/project-103-llm-deployment/src/rag/embeddings.py:34
Class
ErrorResponse
Standardized error response. TODO: Implement error model - error: Error message - error_code: Machine-readable code - details: A
projects/project-103-llm-deployment/src/api/models.py:424
Class
FixedSizeChunker
Split text into fixed-size chunks with overlap. Simple but effective for uniform documents.
projects/project-103-llm-deployment/src/rag/chunking.py:68
Class
GPUMonitor
Monitor GPU metrics. TODO: Implement GPU monitoring - Query GPU stats periodically - Update Prometheus metrics - Support multipl
projects/project-103-llm-deployment/src/monitoring/metrics.py:446
Class
GenerateRequest
Standard text generation request for LLM. TODO: Complete this model with proper validation - Add field for prompt (required, non-empty s
projects/project-103-llm-deployment/src/api/models.py:30
Class
GeneratedText
Single generated text completion. TODO: Implement completion model - text: Generated text - finish_reason: Why generation stopped
projects/project-103-llm-deployment/src/api/models.py:207
Class
HealthChecker
Comprehensive health checker for MLOps pipeline. Performs health checks on all pipeline components and aggregates results.
projects/project-102-mlops-pipeline/src/monitoring/health.py:75
Class
HealthStatus
Health status enumeration.
projects/project-102-mlops-pipeline/src/monitoring/health.py:25
Class
HealthStatus
Health check response. TODO: Implement health status model - status: "healthy", "degraded", "unhealthy" - model_loaded: Whether mode
projects/project-103-llm-deployment/src/api/models.py:391
Class
HybridRetriever
Hybrid retrieval combining dense and sparse methods. Combines: - Dense retrieval: Vector similarity (semantic search) - Sparse retri
projects/project-103-llm-deployment/src/rag/retriever.py:231
Class
IndexedDocument
Document ready for indexing. TODO: Complete indexed document class - id: Unique identifier - content: Text content - embedding:
projects/project-103-llm-deployment/src/ingestion/indexer.py:44
Class
LLMConfig
Main configuration class for LLM serving. This class uses Pydantic for: - Type validation - Environment variable loading - Defau
projects/project-103-llm-deployment/src/llm/config.py:48
Class
LLMServer
High-level wrapper for LLM inference using vLLM. This class provides a unified interface for: - Model loading and initialization - S
projects/project-103-llm-deployment/src/llm/server.py:42
Class
LatencyBenchmark
Specialized benchmark for measuring latency metrics. Focuses on: - Time to First Token (TTFT) - Time Per Output Token (TPOT) - E
projects/project-103-llm-deployment/src/llm/optimization.py:499
Class
MarkdownChunker
Markdown-aware chunking that respects structure. Preserves headers, code blocks, lists, etc.
projects/project-103-llm-deployment/src/rag/chunking.py:326
Class
MetadataEnricher
Enrich document metadata. TODO: Implement metadata enrichment - Extract keywords - Calculate readability scores - Detect topics
projects/project-103-llm-deployment/src/ingestion/processor.py:367
Class
MetricsCollector
Collect and expose Prometheus metrics for LLM serving. TODO: Implement metrics collection - Track all request metrics - Monitor GPU
projects/project-103-llm-deployment/src/monitoring/metrics.py:122
Class
MetricsExporter
Export metrics to Prometheus. Handles metric registration and serving metrics endpoint.
projects/project-102-mlops-pipeline/src/monitoring/metrics.py:397
Class
ModelDeployer
TODO: Implement model deployment automation - Pull from MLflow Registry - Build container images - Deploy to Kubernetes - Health
projects/project-102-mlops-pipeline/src/deployment/deploy.py:26
Class
ModelEvaluator
Model evaluation class TODO: Implement comprehensive model evaluation - Multiple metric calculation - Confusion matrix, ROC curves
projects/project-102-mlops-pipeline/src/training/evaluate.py:26
Class
ModelMetrics
Metrics for ML model training and evaluation. Tracks model performance, training duration, and resource usage.
projects/project-102-mlops-pipeline/src/monitoring/metrics.py:24
Class
ModelTrainer
Main model training class with MLflow integration TODO: Implement comprehensive model training - Support multiple model types - MLfl
projects/project-102-mlops-pipeline/src/training/train.py:29
Class
MultiModalEmbedding
Multi-modal embedding support (text + images). For advanced RAG with images, tables, etc.
projects/project-103-llm-deployment/src/rag/embeddings.py:324
Class
MultiQueryRetriever
Generate multiple query variations and aggregate results. Uses LLM to generate query variations, then retrieves for each. Useful for com
projects/project-103-llm-deployment/src/rag/retriever.py:442
Class
PDFLoader
Load PDF documents. TODO: Implement PDF loading - Extract text from all pages - Preserve page numbers in metadata - Handle scann
projects/project-103-llm-deployment/src/ingestion/loader.py:197
Class
PineconeIndexer
Pinecone-specific vector indexer. TODO: Implement Pinecone indexing - Initialize Pinecone client - Implement upsert operation -
projects/project-103-llm-deployment/src/ingestion/indexer.py:322
Class
PipelineMetrics
Metrics for ML pipeline execution monitoring. Tracks DAG runs, task execution, and pipeline health.
projects/project-102-mlops-pipeline/src/monitoring/metrics.py:264
Class
Prediction
Single prediction result TODO: Define the structure of a single prediction Fields to include: - class_id: int - Predicted class ID
projects/project-101-basic-model-serving/src/api.py:97
Class
PredictionCache
TODO: Simple in-memory prediction cache Implement a cache that stores predictions for repeated inputs. Use case: Same image requested mu
projects/project-101-basic-model-serving/src/utils.py:545
Class
PredictionRequest
Request model for prediction endpoint TODO: Define the structure of your prediction request Fields to include: - image_url: Optiona
projects/project-101-basic-model-serving/src/api.py:76
Class
PredictionResponse
Response model for prediction endpoint TODO: Define the structure of your prediction response Fields to include: - predictions: Lis
projects/project-101-basic-model-serving/src/api.py:118
Class
QuantizationMethod
Supported quantization methods for model compression. Quantization reduces model size and memory requirements while maintaining reasonab
projects/project-103-llm-deployment/src/llm/config.py:27
Class
RAGConfig
Configuration for RAG pipeline. Attributes: top_k: Number of documents to retrieve chunk_size: Size of document chunks
projects/project-103-llm-deployment/src/rag/pipeline.py:28
Class
RAGGenerateRequest
RAG-augmented generation request. This extends standard generation with retrieval parameters. TODO: Complete this model for RAG request
projects/project-103-llm-deployment/src/api/models.py:114
Class
RAGPipeline
Complete RAG pipeline implementation. Orchestrates: - Retrieval from vector DB - Context construction - LLM generation - Res
projects/project-103-llm-deployment/src/rag/pipeline.py:68
Class
RateLimitMiddleware
Token bucket rate limiting middleware. Implements per-IP and per-API-key rate limiting to prevent abuse. TODO: Implement rate limiting
projects/project-103-llm-deployment/src/api/middleware.py:47
Class
RecursiveCharacterChunker
Recursively split text using multiple separators. Tries to keep paragraphs, sentences, and words together. This is the most commonly use
projects/project-103-llm-deployment/src/rag/chunking.py:145
Class
RequestLoggingMiddleware
Log all requests and responses with timing. TODO: Implement request/response logging - Log request details (method, path, client) -
projects/project-103-llm-deployment/src/api/middleware.py:252
Class
RerankerRetriever
Two-stage retrieval with reranking. Stage 1: Fast retrieval (vector search) Stage 2: Rerank with cross-encoder model This improves
projects/project-103-llm-deployment/src/rag/retriever.py:338
Class
RetrievalResult
Result from a retrieval operation. Attributes: doc_id: Document identifier content: Retrieved text content score: Si
projects/project-103-llm-deployment/src/rag/retriever.py:34
Class
SemanticChunker
Split text based on semantic similarity. Uses embeddings to determine natural breakpoints. More sophisticated but slower than character-
projects/project-103-llm-deployment/src/rag/chunking.py:244
Class
Settings
TODO: Application settings loaded from environment variables This class uses Pydantic BaseSettings to automatically load configuration f
projects/project-101-basic-model-serving/src/config.py:30
Class
SourceDocument
Retrieved source document from RAG. TODO: Implement source document model - content: Document text/chunk - metadata: Document metada
projects/project-103-llm-deployment/src/api/models.py:279
Class
StreamBuffer
Buffer for aggregating tokens before sending. This can reduce overhead by sending chunks instead of individual tokens. TODO: Implement
projects/project-103-llm-deployment/src/api/streaming.py:445
Class
StreamChunk
Single chunk in a streaming response. TODO: Implement streaming chunk model - chunk: Text chunk - finish_reason: Optional finish rea
projects/project-103-llm-deployment/src/api/models.py:332
Class
TestChunking
Test document chunking.
projects/project-103-llm-deployment/tests/test_rag.py:15
Class
TestDataIngestion
TODO: Implement tests for data ingestion Test Cases: - Test CSV data source connection and fetching - Test database data source with
projects/project-102-mlops-pipeline/tests/test_data.py:25
Class
TestDataPreprocessing
TODO: Implement tests for data preprocessing Test Cases: - Test missing value handling (different strategies) - Test categorical enc
projects/project-102-mlops-pipeline/tests/test_data.py:104
Class
TestDataValidation
TODO: Implement tests for data validation Test Cases: - Test schema validation (correct and incorrect schemas) - Test completeness v
projects/project-102-mlops-pipeline/tests/test_data.py:78
Class
TestEmbeddings
Test embedding generation.
projects/project-103-llm-deployment/tests/test_rag.py:37
Class
TestGenerateEndpoint
Test /generate endpoint.
projects/project-103-llm-deployment/tests/test_api.py:19
Class
TestHealthEndpoint
Test /health endpoint.
projects/project-103-llm-deployment/tests/test_api.py:85
Class
TestIndexer
Test vector indexing.
projects/project-103-llm-deployment/tests/test_ingestion.py:86
Class
TestLLMServer
Test LLM server functionality.
projects/project-103-llm-deployment/tests/test_llm.py:18
Class
TestLoaders
Test document loaders.
projects/project-103-llm-deployment/tests/test_ingestion.py:15
Class
TestMiddleware
Test API middleware.
projects/project-103-llm-deployment/tests/test_api.py:63
Class
TestModelDeployment
TODO: Implement tests for model deployment Test Cases: - Test pulling model from MLflow Registry - Test Docker image building (mocke
projects/project-102-mlops-pipeline/tests/test_deployment.py:15
next →
1–100 of 113, ranked by callers