Haystack DocumentRetriever context window overflow with long documents

closeup photo of hay bale

Problem – Context Window Overflow When Using Haystack DocumentRetriever In a production data pipeline that ingests long technical reports (PDFs, Word docs, etc.), the DocumentRetriever backed by ElasticsearchDocumentStore returns whole document sections that exceed the token limit of downstream LLMs. The pipeline aborts with errors such as: Token limit exceeded: 8192 tokens (max 4096) ElasticsearchDocumentStoreError: Document … Read more

Weaviate streaming API incomplete results under high traffic

photo of computer cables

Weaviate Streaming API Incomplete Results Under High Traffic Problem – Symptoms and Impact During peak load the /v1/objects/{className}/{id}/stream endpoint returns truncated JSON payloads or the client receives a connection reset by peer error. Typical observations include: Logs in Weaviate: 2024-05-12T14:23:07Z WARN streaming response incomplete: expected 12456 bytes, got 8421 API gateway (Kong) reports: 504 Gateway … Read more

TensorRT container crashes repeatedly on Ubuntu with NVIDIA GPU

blue and green mural

Problem Description During local development on an Ubuntu workstation equipped with an NVIDIA GPU, a TensorRT Docker container repeatedly crashes and Docker restarts it in a loop. Typical log excerpts look like one of the following: Failed to initialize TensorRT runtime: CUDA driver version is insufficient for CUDA runtime version libnvidia-ml.so.1: cannot open shared object … Read more

Qwen shard rebalancing error during model weight update

black sedan parked beside tree during daytime

Problem Description – ShardRebalanceError During Model Weight Update During the CI/CD integration of Qwen‑7B, the distributed training job aborts after a weight checkpoint is pushed. The failure manifests as a ShardRebalanceError indicating that the data partitioning across training nodes is inconsistent. Typical log excerpts look like: [rank 0] ERROR: ShardRebalanceError: inconsistent partitioning across nodes [rank … Read more

Nginx reverse proxy causing tokenizer encoding errors

a rack of servers in a server room

Problem – Tokenizer Encoding Errors Behind an Nginx Reverse Proxy During automated model deployment in a CI/CD pipeline (GitLab CI, Jenkins, Azure DevOps, or GitHub Actions), the inference service receives POST requests containing raw text that must be tokenized. In several incidents the service raised exceptions such as: UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x80 … Read more

Kubernetes StatefulSet update fails during rolling upgrade TGI deployment

Open bible page with handwritten notes on the side.

Problem Description A high‑traffic Text Generation Inference (TGI) service is deployed as a StatefulSet on a Kubernetes cluster. During a rolling upgrade the controller stalls after the first pod is updated. Subsequent pods never reach the Running/Ready state, causing a partial service outage and a noticeable drop in request capacity. Typical symptoms observed in the … Read more

PostgreSQL vision token embedding overflow during ML training

a close-up of a server room

Problem – Vision Token Embedding Overflow During ML Training A machine‑learning pipeline extracts image embeddings (e.g., CLIP vision tokens) and stores each intermediate token vector in a PostgreSQL table while training. During a nightly training run the following symptoms were observed: Rapid disk consumption: storage grew from 200 GB to 1.2 TB within a few hours. PostgreSQL … Read more

MLflow training job rejected by Kubernetes admission controller

photo of computer cables

Problem Description When launching an MLflow training run that uses the Kubernetes backend, the pod creation fails with an admission‑controller error. The MLflow client reports a kubectl error similar to the following: Error from server (Forbidden): pods “mlflow-train-7f9c8d5b9-xyz” is forbidden: exceeded quota: compute-resources, request: cpu=8, memory=16Gi Other observed messages include: admission webhook “validation.gatekeeper.sh” denied the … Read more

RAG retrieval empty results with vLLM in hybrid cloud

A ribbon with gradient colors floats in the air.

Problem Description In a hybrid‑cloud deployment of a Retrieval‑Augmented Generation (RAG) pipeline that uses vLLM for inference, the retrieval step consistently returns an empty list or null despite: Valid user queries arriving at the API endpoint. Document embeddings successfully indexed in the vector store (e.g., Milvus or Pinecone). No errors reported by the vLLM server … Read more

Docker API server refuses connection from data pipeline

red and blue cargo ship on sea during daytime

Problem Description The data‑pipeline service, defined in a docker‑compose.yml file, attempts to call the API server at http://api:5000/api during ingestion. The call consistently fails with either a timeout or a connection‑refused error, causing the pipeline to abort. Typical log excerpts: pipeline | 2026-06-12T08:14:32Z ERROR: dial tcp 172.18.0.3:5000: connect: connection refused pipeline | 2026-06-12T08:14:32Z ERROR: Get … Read more