InterviewsVector

Blog

Practical engineering articles: debugging deep dives, framework guides, and patterns you can apply at work and in interviews.


Design a Production RAG System in 2026

Design a production RAG system with hybrid search, reranking, evaluation, caching, security, capacity planning, and deployment tradeoffs for interviews.

August 3, 2026

Fix Hydration Failed Errors in Next.js

Fix Next.js hydration mismatch errors by matching server and first client output, debugging dates, storage, invalid HTML, CSS, CDN, and production-only changes.

July 28, 2026

Fix npm ERESOLVE Dependency Tree Errors

Fix npm ERR! ERESOLVE dependency tree errors by reading peer conflicts, aligning package versions, using overrides safely, and keeping CI installs reproducible.

July 27, 2026

Fix "bitsandbytes CUDA Setup failed"

If bitsandbytes loads libbitsandbytes_cpu.so, no CUDA binary matched. Upgrade bitsandbytes first, confirm a CUDA PyTorch, then fix the library path.

July 24, 2026

Resolve "ChromaDB collection does not exist"

Two causes account for almost every ChromaDB 'collection does not exist' — using get_collection instead of get_or_create, and an ephemeral client that never persisted.

July 24, 2026

Resolve "Hugging Face 401 Unauthorized"

A Hugging Face 401 means the token is missing, invalid, or lacks access. Learn to tell 401 from 403 and 404, and fix gated and private repo access.

July 24, 2026

Resolve "LangChain ValidationError"

A LangChain ValidationError is a Pydantic error — and it names the exact field. Read loc/type/input, and fix the Pydantic v1 vs v2 mismatch behind most of them.

July 24, 2026

Resolve "OSError: Can't load tokenizer"

This Hugging Face error means one of two things: a Hub id that can't be found, or a local folder missing tokenizer files. Learn which, then fix it fast.

July 24, 2026

Creating a Custom Filter in ag-Grid

Create a custom filter in ag-Grid by implementing a filter component with doesFilterPass and registering it on the column. A step-by-step walkthrough.

May 21, 2023

A guide to the data science life cycle

The six stages of the data science life cycle — define, collect, explore, model, evaluate, deploy — and why the process is iterative, not linear.

January 5, 2023

Seaborn for Data Visualization in Python

Seaborn is a statistical plotting library on top of matplotlib. It works with pandas DataFrames and offers concise, attractive charts. Getting started.

January 5, 2023

What happens in anomaly detection?

Anomaly detection is the process of identifying unusual patterns or events in data that do not conform to an expected behavior

January 4, 2023

How to use XGBoost in Python?

Use XGBoost in Python via its scikit-learn API (XGBClassifier/Regressor) or native DMatrix API. Key hyperparameters and early stopping explained.

December 24, 2022

Getting started with PyTorch

Get started with PyTorch: install it, create GPU-accelerated tensors, build a model with nn.Module, and train with autograd. A beginner's tutorial.

December 17, 2022

How to install wget in macOS?

macOS does not ship with wget. Install it with Homebrew using brew install wget, or build from source with MacPorts as an alternative.

October 22, 2022

Angular Unit Test Code Coverage with Karma

Generate Angular code coverage with ng test --code-coverage, read the HTML report, enforce thresholds in karma.conf.js, and exclude files that shouldn't count.

October 4, 2022

Rotate Image

You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise).

September 26, 2022

Missing Number In An Array

Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array.

September 24, 2022

Truth Check using Javascript

Check if the predicate (second argument) is truthy on all elements of a collection (first argument).

September 14, 2022

Group Anagrams using Javascript

Group anagrams in JavaScript with a hash map keyed on each word sorted alphabetically. O(n·k log k) with a single pass. Solution and test cases.

May 22, 2021