Generative AI Engineer (Part 1) — Interview 6¶
Q: What was the content in your data?
- The data ingested into the Knowledge GPT system consisted of a wide variety of enterprise documentation from [Company]’s central knowledge repositories.
- Content Types Included:
- Product manuals, technical articles, troubleshooting guides, FAQs, service bulletins, and support documentation.
- Documents originated from multiple content management systems (CMS) such as Concentra, DITA, Process, and Widen.
- Metadata Associated with Each Document:
- Document title, language/region (e.g., en-US), content type (manual, article, etc.), disclosure level (public, [Company] internal, customer viewable), product associations, country codes, and last modified/inserted dates.
- Each document chunk also included metadata like chunk ID, source system, and searchable status.
- Document Structure:
- Documents were normalized into a unified markdown format and recursively chunked for efficient retrieval.
- Each chunk was embedded as a vector for semantic search and stored in OpenSearch/Elasticsearch.
- Filtering and Access Control:
- The system supported filtering by content type, source, disclosure level, product, and language.
- Disclosure levels were enforced using JWT tokens and mapped to specific access permissions.
- Dynamic and Up-to-Date:
-
The pipeline automatically ingested new or updated documents by monitoring S3 metadata files and generating secure download URLs via KAAS APIs.
-
In summary, the data comprised structured and unstructured enterprise knowledge, enriched with detailed metadata, and optimized for both semantic and lexical retrieval to support accurate, context-aware responses for [Company]’s support teams.
Q: What type of queries can users ask, and does the dataset include image data?
- Types of Queries Users Can Ask:
- Users (typically [Company] support agents or end customers) can submit natural language queries related to any [Company] product, such as laptops, printers, or accessories.
- Example queries include troubleshooting issues (“My printer is showing a cartridge error, how do I fix it?”), product-specific questions (“What is the warranty period for model XYZ?”), or requests for setup instructions (“How do I connect my [Company] laptop to Wi-Fi?”).
-
The system is designed to handle both simple and complex queries, extracting key information like product names, article numbers, and the underlying intent to retrieve the most relevant support documentation.
-
Image Data in the Dataset:
- Yes, the dataset does include image data along with text-based documents.
- Many support documents, manuals, and troubleshooting guides contain embedded images (such as diagrams, screenshots, or product photos) that are essential for visual instructions and clarity.
- The pipeline processes these documents in a way that preserves image references, and the API supports returning content with rich media (images, links) when generating responses.
-
This ensures that users receive not only textual guidance but also visual aids, which are often critical for effective troubleshooting and support.
-
Summary:
- The system supports a wide range of natural language queries related to [Company] products and issues.
- The underlying dataset is multi-modal, containing both text and images, enabling comprehensive and context-rich responses for support scenarios.
interviewee: How did you extract the content? Or we can say that text from the image.
interviewer 1: How did you extract the content? Or we can say the text from the image.
Q: Is it possible to convert image data into markdown format during the document transformation process?
- Yes, it is possible and standard practice to represent image data in markdown format during the document transformation process.
- How It Works:
- When converting documents (HTML, PDF, etc.) to markdown, all image references are detected and transformed into markdown image syntax:
. - The pipeline scans for image tags in the source (e.g.,
<img src="...">in HTML) and replaces them with the markdown equivalent. - For images with broken or relative URLs, the system reconstructs the correct image URLs using CloudFront CDN paths, ensuring that the markdown references point to accessible images.
- If an image is missing alt text, an LLM (Azure OpenAI) generates a descriptive caption based on the surrounding context, which is then used as the alt text in the markdown.
- All image metadata (format, size, validation status) is tracked and stored for validation and traceability.
- Result:
- The final markdown document contains both text and image references, preserving the original document’s structure and visual content.
-
This approach ensures that when the markdown is chunked and indexed, both textual and visual information are available for retrieval and answer generation.
-
In summary, images are seamlessly integrated into the markdown format, allowing the RAG pipeline to process and serve both text and visual content effectively.
Q: How many embedding techniques do you know about?
-
There are several embedding techniques available for representing text, images, and other data types as dense vectors for downstream tasks like semantic search, retrieval, and LLM input. Here are some of the most widely used embedding techniques in the industry:
-
Classical Embedding Techniques:
- TF-IDF (Term Frequency-Inverse Document Frequency): Represents documents as sparse vectors based on word frequency and importance.
-
Bag-of-Words (BoW): Simple count-based vectorization of words in a document.
-
Word-Level Embeddings:
- Word2Vec: Learns word representations using skip-gram or CBOW architectures.
- GloVe (Global Vectors): Generates word embeddings based on global word co-occurrence statistics.
-
FastText: Extends Word2Vec by considering subword information, improving handling of rare words.
-
Contextual Embeddings:
- ELMo (Embeddings from Language Models): Generates context-sensitive word embeddings using deep bi-directional LSTMs.
- BERT (Bidirectional Encoder Representations from Transformers): Produces contextual embeddings for words and sentences using transformer architecture.
-
RoBERTa, DistilBERT, ALBERT: Variants and optimizations of BERT for different use cases.
-
Sentence and Document Embeddings:
- Sentence Transformers (SBERT): Fine-tunes BERT-like models to generate semantically meaningful sentence embeddings, widely used for semantic search and RAG.
-
Universal Sentence Encoder (USE): Google’s model for encoding sentences and paragraphs into fixed-length vectors.
-
Large Language Model Embeddings:
- OpenAI Embeddings (e.g., Ada-002): High-dimensional embeddings generated by OpenAI’s models, commonly used for semantic search and RAG pipelines.
- Azure OpenAI Embeddings: Similar to OpenAI, but available as a managed service on Azure.
-
Cohere, HuggingFace Embeddings: Other commercial and open-source LLM-based embedding APIs.
-
Multimodal Embeddings:
- CLIP (Contrastive Language-Image Pretraining): Jointly learns image and text embeddings for cross-modal retrieval.
-
VisualBERT, ViLT: Models that combine visual and textual information for multimodal tasks.
-
Custom and Domain-Specific Embeddings:
-
Fine-tuned transformer models or domain-adapted embeddings for specialized use cases (e.g., legal, medical, technical domains).
-
In summary, the choice of embedding technique depends on the use case, data type, and downstream application requirements. In my recent projects, I have primarily used OpenAI/Azure OpenAI embeddings, Sentence Transformers, and FastText for various enterprise AI and RAG solutions.
Q: How would you identify if post-deployment model degradation is due to embedding drift, prompt misalignment, or out-of-distribution (OOD) data?
-
To systematically diagnose post-deployment performance degradation in a GenAI/RAG system, I would follow a structured root-cause analysis approach, leveraging both automated monitoring and targeted evaluation:
-
1. Continuous Monitoring & Baseline Comparison
- Set up automated pipelines to track key evaluation metrics (accuracy, relevance, context utilization, MRR, harmful content) over time.
-
Compare current metrics against historical baselines and recent releases using the evaluation pipeline’s reporting and cross-release comparison modules.
-
2. Embedding Drift Detection
- Periodically re-embed a fixed set of reference queries and documents using the current embedding model.
- Compare new embeddings to historical vectors using cosine similarity or distance metrics.
-
Significant shifts in embedding space (e.g., cluster drift, reduced similarity for identical inputs) indicate embedding drift, possibly due to model updates or data preprocessing changes.
-
3. Prompt Misalignment Detection
- Use prompt regression tests: run a suite of standard prompts through the LLM and compare outputs to expected responses.
- Analyze changes in LLM output structure, tone, or factuality using the LLM-based evaluators (e.g., answer correctness, context utilization).
-
If prompt templates or LLM versions have changed, check for increased parse errors or output format deviations in the evaluation logs.
-
4. Out-of-Distribution (OOD) Data Detection
- Monitor the distribution of incoming queries and document content using statistical analysis (e.g., embedding-based clustering, anomaly detection).
- Identify spikes in queries or documents that are semantically distant from the training/validation data.
-
Use the evaluation pipeline to flag increased rates of low-confidence or irrelevant answers, which often correlate with OOD inputs.
-
5. Targeted Root Cause Analysis
- Drill down into failed or low-scoring cases using the detailed Excel and chart reports generated by the evaluation pipeline.
- For embedding drift: look for semantic search failures or reduced retrieval quality.
- For prompt misalignment: look for increased LLM parse errors, inconsistent answer formats, or drop in answer correctness.
-
For OOD data: look for clusters of queries with low semantic similarity to historical data and high error rates.
-
6. Remediation Steps
- For embedding drift: retrain or revert embedding models, or update vector stores.
- For prompt misalignment: fix prompt templates, retrain LLMs, or roll back to previous prompt versions.
-
For OOD data: expand training data, update retrieval corpus, or implement fallback handling for novel queries.
-
Summary:
- By combining automated metric tracking, embedding/probe tests, prompt regression, and OOD detection, I can quickly isolate the root cause of degradation and take targeted corrective actions, ensuring robust and reliable GenAI system performance in production.
Q: How can a state or region communicate with the subject in the context of ADHD (likely referring to a technical system or architecture)?
- Could you please clarify your question? If you are referring to a technical architecture (such as state management, region-based processing, or subject communication in distributed systems or AI pipelines), I can provide a detailed answer.
- If the question is about how different components (like "state" or "region") communicate with a "subject" (possibly an entity, user, or process) in a system:
- Typically, communication is established via well-defined interfaces or protocols.
- In distributed or event-driven architectures, states or regions may publish updates or events to which subjects can subscribe (using observer or pub-sub patterns).
- In AI systems, state machines or region-based modules can trigger actions or send data to subjects (e.g., user sessions, downstream services) through APIs, message queues, or callback mechanisms.
-
For example, in a GenAI pipeline, a stateful orchestrator (region) may communicate with a user session (subject) by sending context, receiving queries, and returning generated responses via REST APIs or WebSocket channels.
-
If you can provide more context or clarify the domain (AI, cloud, distributed systems, etc.), I can tailor the explanation further.
Q: How does the orchestrator agent communicate with the sub-agent in your architecture?
- In our architecture, the orchestrator agent (MCPManager Orchestrator) acts as the central control point for managing communication between the user interface and various sub-agents (such as KGPT or UIDS MCP servers).
- Communication Flow:
- The orchestrator receives user messages from the Chainlit UI, along with a unique chat session ID.
- It loads the conversation history from Redis to maintain context across multiple turns.
- The orchestrator uses an intent router (powered by GPT-4o-mini) to classify the user’s intent and determine which sub-agent (KGPT or UIDS) should handle the request.
- Once the target sub-agent is identified, the orchestrator invokes the appropriate MCP client (configured via YAML) to forward the request to the correct MCP server endpoint.
- Communication between the orchestrator and sub-agents is secured using bearer tokens (managed by the Token Broker) and correlation headers for traceability.
- The orchestrator collects the response from the sub-agent, updates the conversation history, and streams the response back to the user via the UI.
- Key Principles:
- All communication is routed internally; sub-agents (MCP servers) are not exposed directly to the public internet.
- API contracts are standardized using OpenAPI and MCP tool schemas, ensuring consistent and reliable communication.
- Security is enforced through mTLS, token validation, and distributed tracing for observability.
- Summary:
- The orchestrator agent communicates with sub-agents via secure, standardized API calls, leveraging intent routing, token management, and structured logging to ensure robust, traceable, and scalable interactions within the MCP ecosystem.
Q: How does your orchestrator agent communicate with sub-agents in your multi-agent system?
- In our multi-agent system, the orchestrator agent (MCPManager Orchestrator) acts as the central controller, managing all communication between the user interface and the sub-agents (such as KGPT and UIDS MCP servers).
- Communication Workflow:
- The orchestrator receives user messages from the Chainlit UI, along with a unique chat session ID.
- It loads the conversation history from Redis to maintain multi-turn context.
- An intent router (using GPT-4o-mini) analyzes the user message and determines which sub-agent (KGPT or UIDS) should handle the request.
- The orchestrator then invokes the appropriate MCP client, which is configured via YAML, to forward the request to the correct MCP server endpoint.
- Communication is secured using bearer tokens managed by the Token Broker, and correlation headers are added for traceability and audit purposes.
- The orchestrator collects the response from the sub-agent, updates the conversation history, and streams the response back to the user through the UI.
- Security and Observability:
- All sub-agents (MCP servers) are kept internal and are not exposed directly to the public internet.
- The orchestrator is fronted by Apigee as the API gateway, minimizing the public attack surface.
- Security is enforced through mTLS, token validation, and distributed tracing for full observability.
- API contracts are standardized using OpenAPI and MCP tool schemas, ensuring reliable and consistent communication.
- Summary:
- The orchestrator agent communicates with sub-agents via secure, standardized internal API calls, leveraging intent routing, token management, and structured logging to ensure robust, traceable, and scalable interactions within the MCP ecosystem. This design is aligned with industry best practices for multi-agent orchestration and enterprise security.
Q: What is the difference between the Random Forest and XGBoost algorithms?
- Random Forest and XGBoost are both ensemble learning algorithms based on decision trees, but they differ significantly in their approach and performance characteristics:
- Random Forest:
- Uses the bagging (Bootstrap Aggregating) technique.
- Builds multiple independent decision trees in parallel, each trained on a random subset of the data and features.
- Final prediction is made by averaging (regression) or majority voting (classification) across all trees.
- Reduces variance and helps prevent overfitting.
- Trees are grown independently, so training can be parallelized easily.
- Generally robust and easy to tune, but may not capture complex patterns as efficiently as boosting methods.
- XGBoost (Extreme Gradient Boosting):
- Uses the boosting technique, specifically gradient boosting.
- Builds trees sequentially, where each new tree tries to correct the errors (residuals) of the previous ensemble.
- Each tree is added to minimize a loss function using gradient descent.
- Incorporates regularization (L1/L2), shrinkage (learning rate), and advanced features like column subsampling and early stopping.
- Typically achieves higher accuracy and better generalization, especially on structured/tabular data.
- More sensitive to hyperparameters and can overfit if not tuned properly.
-
Training is less parallelizable due to sequential nature, but XGBoost is highly optimized for speed and efficiency.
-
Summary Table:
| Feature | Random Forest | XGBoost |
|---|---|---|
| Ensemble Method | Bagging | Boosting (Gradient Boosting) |
| Tree Building | Parallel, independent | Sequential, dependent |
| Overfitting Control | Averaging, randomness | Regularization, shrinkage |
| Speed | Fast (parallelizable) | Fast (optimized, but sequential) |
| Accuracy | Good | Often better |
| Hyperparameter Tuning | Less sensitive | More sensitive |
- In my projects, I have used both algorithms for different use cases—Random Forest for robust baseline models and XGBoost for high-performance, fine-tuned solutions, especially in enterprise ML pipelines.
Q: What parameters can be used in the XGBoost algorithm?
- XGBoost provides a wide range of hyperparameters to control model complexity, regularization, and training behavior. The most commonly used parameters include:
- n_estimators: Number of boosting rounds (trees to build).
- max_depth: Maximum depth of each tree (controls model complexity).
- learning_rate (eta): Step size shrinkage used in updates to prevent overfitting.
- subsample: Fraction of training samples used for growing each tree (helps prevent overfitting).
- colsample_bytree: Fraction of features used for each tree (feature subsampling).
- gamma: Minimum loss reduction required to make a further partition on a leaf node (pruning).
- min_child_weight: Minimum sum of instance weight (hessian) needed in a child (controls overfitting).
- reg_alpha (alpha): L1 regularization term on weights (sparsity).
- reg_lambda (lambda): L2 regularization term on weights.
- scale_pos_weight: Controls balance of positive and negative weights (useful for imbalanced datasets).
- objective: Specifies the learning task (e.g., "binary:logistic", "reg:squarederror").
- eval_metric: Evaluation metric for validation data (e.g., "logloss", "auc", "rmse").
- early_stopping_rounds: Stops training if validation metric doesn’t improve for a set number of rounds.
- seed: Random seed for reproducibility.
- In practical projects, I typically tune parameters like
max_depth,learning_rate,n_estimators,subsample, and regularization terms (reg_alpha,reg_lambda) to optimize model performance and prevent overfitting. These parameters are often set via configuration files or command-line arguments for reproducibility and automation in ML pipelines.
Q: How can we evaluate the performance of an algorithm (like XGBoost)?
- The performance of machine learning algorithms such as XGBoost can be evaluated using a variety of metrics, depending on the problem type (classification or regression). In my recent projects, especially for intent classification (UIDS), I used the following evaluation approach:
- Key Evaluation Metrics (for Classification):
- Accuracy: Proportion of correct predictions over total predictions.
- Balanced Accuracy: Accounts for class imbalance by averaging recall across classes.
- F1 Score (Micro, Macro, Weighted): Harmonic mean of precision and recall; micro averages over all samples, macro averages per class, and weighted averages by class frequency.
- Precision: Proportion of true positives among all predicted positives.
- Recall: Proportion of true positives among all actual positives.
- Evaluation Pipeline:
- Split the dataset into training and validation/test sets.
- Train the model on the training set.
- Predict on the validation/test set.
- Use functions (like
calculate_metrics) to compute metrics such as accuracy, balanced accuracy, F1 scores, precision, and recall. - Aggregate and log results for analysis and reporting.
- Automation & Reporting:
- Metrics are logged and saved (e.g., as JSON or Excel reports).
- For multi-language or multi-class scenarios, metrics are computed per class or per language and aggregated.
- Reports are uploaded to S3 for traceability and further analysis.
- Summary:
- Evaluate model performance using metrics like accuracy, balanced accuracy, F1 scores, precision, and recall. Automate metric calculation and reporting for robust, reproducible evaluation in production ML pipelines.
Q: In which situations should we focus on checking precision?
- Precision is especially important in scenarios where the cost of a false positive is high—that is, when predicting something as positive when it is actually negative can lead to significant negative consequences.
- Typical situations to focus on precision:
- Spam Detection:
- You want to minimize the number of legitimate emails incorrectly marked as spam (false positives).
- Medical Diagnosis (Rare Disease Screening):
- When a positive prediction leads to expensive or invasive follow-up tests, you want to ensure that only truly likely cases are flagged.
- Fraud Detection:
- Incorrectly flagging legitimate transactions as fraud (false positives) can inconvenience customers and harm business.
- Search Engines/Information Retrieval:
- When returning search results, you want to ensure that the top results are truly relevant (high precision).
- Summary:
- Check precision when false positives are more problematic than false negatives, and you want to ensure that positive predictions are highly reliable.
Q: What techniques or methodologies would you use for final feature selection when you have a dataset with 100 features and 100 rows?
- With a small dataset (100 rows) and a large number of features (100 columns), feature selection is crucial to prevent overfitting and improve model interpretability.
- Recommended Feature Selection Techniques:
- Filter Methods:
- Correlation Analysis: Remove features highly correlated with each other (multicollinearity) or with low correlation to the target.
- Statistical Tests: Use tests like Chi-square (for categorical), ANOVA (for continuous), or mutual information to rank features.
- Wrapper Methods:
- Recursive Feature Elimination (RFE): Iteratively train a model and remove the least important features based on model coefficients or feature importance.
- Forward/Backward Selection: Start with no features (forward) or all features (backward) and add/remove features based on model performance.
- Embedded Methods:
- Regularization (L1/Lasso): Use models like Lasso regression or tree-based models (e.g., XGBoost, Random Forest) that provide built-in feature importance scores.
- Dimensionality Reduction:
- Principal Component Analysis (PCA): Transform features into a lower-dimensional space while retaining most variance (useful if interpretability is less critical).
- Domain Knowledge:
- Leverage business or domain expertise to manually select or prioritize features that are known to be relevant.
- Practical Approach:
- Start with filter methods to quickly remove irrelevant or redundant features.
- Use wrapper or embedded methods for further refinement, especially with tree-based models that handle feature importance well.
- Always validate feature selection using cross-validation to ensure generalization.
-
With only 100 rows, avoid overly complex models and prefer simpler, interpretable feature sets to reduce overfitting risk.
-
In my experience, combining filter and embedded methods (like using feature importance from XGBoost or Random Forest after initial correlation filtering) yields robust results, especially in small datasets.
Q: What metrics can we use to evaluate the performance of a regression model?
- For regression models, the following metrics are commonly used to evaluate performance:
- Mean Absolute Error (MAE):
- Measures the average absolute difference between predicted and actual values.
- Easy to interpret and less sensitive to outliers than squared error metrics.
- Mean Squared Error (MSE):
- Measures the average of the squared differences between predicted and actual values.
- Penalizes larger errors more heavily, making it sensitive to outliers.
- Root Mean Squared Error (RMSE):
- Square root of MSE; brings the error metric back to the original unit of the target variable.
- Useful for interpreting error magnitude in the same scale as the target.
- R-squared (Coefficient of Determination):
- Represents the proportion of variance in the dependent variable explained by the model.
- Values range from 0 to 1 (higher is better), but can be negative if the model is worse than a horizontal mean line.
- Adjusted R-squared:
- Adjusts R-squared for the number of predictors in the model, penalizing for adding irrelevant features.
- Mean Absolute Percentage Error (MAPE):
- Measures the average absolute percentage difference between predicted and actual values.
- Useful for interpretability, especially when target values are always positive.
- In my previous projects (such as customer purchase forecasting), I have used MAE, RMSE, and MAPE to evaluate model accuracy and business relevance, and R-squared to assess overall model fit. The choice of metric often depends on the business context and the importance of penalizing large errors versus interpretability.
Q: What is the use of a decorator in Python?
- A decorator in Python is a special function that allows you to modify or enhance the behavior of other functions or methods without changing their actual code.
- Key Uses of Decorators:
- Code Reusability: Apply common functionality (like logging, authentication, timing, or input validation) across multiple functions in a clean, reusable way.
- Separation of Concerns: Keep core business logic separate from cross-cutting concerns (e.g., logging, access control).
- Readability & Maintainability: Make code more readable and maintainable by abstracting repetitive patterns.
- Frameworks & Libraries: Widely used in frameworks (like Flask, Django) for route handling, permission checks, etc.
- How It Works:
- A decorator is a higher-order function that takes another function as input, wraps it with additional logic, and returns a new function.
- You use the
@decorator_namesyntax above a function definition to apply a decorator. - Example Use Cases:
- Logging function calls and arguments.
- Measuring execution time of functions.
- Checking user permissions before executing a function.
- Caching function results.
- In Practice:
- In production AI systems, decorators are often used for logging (as seen in the provided project context with
log_manager.py), error handling, and enforcing security or configuration checks across API endpoints or pipeline steps. This helps keep the codebase modular and easier to maintain.
Q: Which data types in Python can process data very fast?
- In Python, the following data types are known for fast data processing, especially in the context of large-scale or performance-critical applications:
- Built-in Types:
- List:
- Dynamic arrays, fast for sequential access and appending elements.
- Tuple:
- Immutable sequences, slightly faster than lists for iteration and access due to immutability.
- Set:
- Unordered collections with fast membership testing, insertion, and deletion (average O(1) time complexity).
- Dict (Dictionary):
- Key-value pairs with very fast lookups, insertions, and deletions (average O(1) time complexity).
- Specialized Types (from libraries):
- NumPy Arrays (
numpy.ndarray): - Highly optimized for numerical computations and vectorized operations; much faster than native lists for large datasets and mathematical operations.
- Pandas DataFrame/Series:
- Built on top of NumPy, optimized for tabular data manipulation and analysis; efficient for large-scale data processing.
- Why These Are Fast:
- NumPy and Pandas leverage C-level optimizations and vectorized operations, making them the preferred choice for data science and machine learning pipelines (as seen in the provided project code).
- Dicts and Sets use hash tables for fast access and manipulation.
- In Practice:
- For enterprise AI pipelines (like those in my recent projects), I rely heavily on NumPy arrays and Pandas DataFrames for efficient data processing, and use dictionaries and sets for fast lookups and data organization.
Q: What libraries can we use in Python to find the number of repeated characters in a list?
- To find the number of repeated (duplicate) characters in a list, the following Python libraries and tools are commonly used:
- collections.Counter:
- The most efficient and Pythonic way to count occurrences of each character in a list.
- Returns a dictionary-like object with elements as keys and their counts as values.
- set:
- Can be used to identify unique elements, but not directly for counting repeats.
- pandas.Series.value_counts():
- Useful for larger datasets or when working with tabular data; provides a quick frequency count.
- NumPy (numpy.unique with return_counts=True):
- Efficient for large, numeric or character arrays.
- Typical Approach (Industry Standard):
-
For most use cases, especially in interviews or production code,
collections.Counteris preferred for its simplicity and efficiency. -
Example:
from collections import Counter # Import Counter from collections char_list = ['a', 'b', 'c', 'a', 'b', 'a'] # Example list of characters counts = Counter(char_list) # Count occurrences of each character repeated_chars = {char: count for char, count in counts.items() if count > 1} # Filter characters with count > 1 print(repeated_chars) # Output: {'a': 3, 'b': 2} -
In my experience,
collections.Counteris the go-to solution for counting duplicates in lists due to its speed and readability. For larger or more complex data, pandas or NumPy can be leveraged as well.