MCPcopy Create free account

hub / github.com/ai-infra-curriculum/ai-infra-engineer-learning / types & classes

Types & classes113 in github.com/ai-infra-curriculum/ai-infra-engineer-learning

↓ 2 callersClassComponentHealth
Health status for a single component.
projects/project-102-mlops-pipeline/src/monitoring/health.py:33
↓ 2 callersClassHealthResponse
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 callersClassGenerateResponse
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 callersClassModelInference
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 callersClassModelOptimizer
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 callersClassOptimizationMetrics
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 callersClassRAGGenerateResponse
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 callersClassRAGResult
Result from RAG pipeline. Attributes: answer: Generated answer sources: Retrieved source documents confidence: Confi
projects/project-103-llm-deployment/src/rag/pipeline.py:50
ClassAPIDataSource
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
ClassAPIKeyAuthMiddleware
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
ClassAsyncVectorIndexer
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
ClassBaseChunker
Abstract base class for document chunkers.
projects/project-103-llm-deployment/src/rag/chunking.py:50
ClassBaseRetriever
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
ClassBatchGenerateRequest
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
ClassBudgetMonitor
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
ClassCSVDataSource
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
ClassChatConfig
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
ClassChatLLMServer
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
ClassChromaIndexer
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
ClassChunk
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
ClassConfig
projects/project-103-llm-deployment/src/llm/config.py:225
ClassConfig
projects/project-103-llm-deployment/src/api/models.py:102
ClassConfig
projects/project-103-llm-deployment/src/api/models.py:159
ClassConfig
projects/project-103-llm-deployment/src/api/models.py:263
ClassConfig
projects/project-103-llm-deployment/src/api/models.py:451
ClassConfig
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
ClassConversationalRAG
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
ClassCostCalculator
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
ClassCostEvent
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
ClassCostOptimizer
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
ClassCostSummary
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
ClassCostTracker
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
ClassCostTrackingMiddleware
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
ClassDataIngestionPipeline
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
ClassDataPreprocessor
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
ClassDataQualityMetrics
Metrics for data quality monitoring. Tracks data validation results, schema compliance, and data drift.
projects/project-102-mlops-pipeline/src/monitoring/metrics.py:157
ClassDataSource
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
ClassDataValidator
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
ClassDatabaseDataSource
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
ClassDirectoryLoader
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
ClassDocument
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
ClassDocumentFilter
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
ClassDocumentProcessor
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
ClassEmbeddingModel
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
ClassErrorResponse
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
ClassFixedSizeChunker
Split text into fixed-size chunks with overlap. Simple but effective for uniform documents.
projects/project-103-llm-deployment/src/rag/chunking.py:68
ClassGPUMonitor
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
ClassGenerateRequest
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
ClassGeneratedText
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
ClassHealthChecker
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
ClassHealthStatus
Health status enumeration.
projects/project-102-mlops-pipeline/src/monitoring/health.py:25
ClassHealthStatus
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
ClassHybridRetriever
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
ClassIndexedDocument
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
ClassLLMConfig
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
ClassLLMServer
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
ClassLatencyBenchmark
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
ClassMarkdownChunker
Markdown-aware chunking that respects structure. Preserves headers, code blocks, lists, etc.
projects/project-103-llm-deployment/src/rag/chunking.py:326
ClassMetadataEnricher
Enrich document metadata. TODO: Implement metadata enrichment - Extract keywords - Calculate readability scores - Detect topics
projects/project-103-llm-deployment/src/ingestion/processor.py:367
ClassMetricsCollector
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
ClassMetricsExporter
Export metrics to Prometheus. Handles metric registration and serving metrics endpoint.
projects/project-102-mlops-pipeline/src/monitoring/metrics.py:397
ClassModelDeployer
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
ClassModelEvaluator
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
ClassModelMetrics
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
ClassModelTrainer
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
ClassMultiModalEmbedding
Multi-modal embedding support (text + images). For advanced RAG with images, tables, etc.
projects/project-103-llm-deployment/src/rag/embeddings.py:324
ClassMultiQueryRetriever
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
ClassPDFLoader
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
ClassPineconeIndexer
Pinecone-specific vector indexer. TODO: Implement Pinecone indexing - Initialize Pinecone client - Implement upsert operation -
projects/project-103-llm-deployment/src/ingestion/indexer.py:322
ClassPipelineMetrics
Metrics for ML pipeline execution monitoring. Tracks DAG runs, task execution, and pipeline health.
projects/project-102-mlops-pipeline/src/monitoring/metrics.py:264
ClassPrediction
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
ClassPredictionCache
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
ClassPredictionRequest
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
ClassPredictionResponse
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
ClassQuantizationMethod
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
ClassRAGConfig
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
ClassRAGGenerateRequest
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
ClassRAGPipeline
Complete RAG pipeline implementation. Orchestrates: - Retrieval from vector DB - Context construction - LLM generation - Res
projects/project-103-llm-deployment/src/rag/pipeline.py:68
ClassRateLimitMiddleware
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
ClassRecursiveCharacterChunker
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
ClassRequestLoggingMiddleware
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
ClassRerankerRetriever
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
ClassRetrievalResult
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
ClassSemanticChunker
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
ClassSettings
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
ClassSourceDocument
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
ClassStreamBuffer
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
ClassStreamChunk
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
ClassTestChunking
Test document chunking.
projects/project-103-llm-deployment/tests/test_rag.py:15
ClassTestDataIngestion
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
ClassTestDataPreprocessing
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
ClassTestDataValidation
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
ClassTestEmbeddings
Test embedding generation.
projects/project-103-llm-deployment/tests/test_rag.py:37
ClassTestGenerateEndpoint
Test /generate endpoint.
projects/project-103-llm-deployment/tests/test_api.py:19
ClassTestHealthEndpoint
Test /health endpoint.
projects/project-103-llm-deployment/tests/test_api.py:85
ClassTestIndexer
Test vector indexing.
projects/project-103-llm-deployment/tests/test_ingestion.py:86
ClassTestLLMServer
Test LLM server functionality.
projects/project-103-llm-deployment/tests/test_llm.py:18
ClassTestLoaders
Test document loaders.
projects/project-103-llm-deployment/tests/test_ingestion.py:15
ClassTestMiddleware
Test API middleware.
projects/project-103-llm-deployment/tests/test_api.py:63
ClassTestModelDeployment
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