Qdrant and Qwen3: experimental RAG steering walkthrough
Learn how Pavan combines Qdrant retrieval with activation steering, demonstrated with a Qwen 3 4B instruct model on an M1 MacBook Pro.
Player not loading? Watch on YouTube
Pavan demonstrates an experimental RAG pipeline that combines Qdrant retrieval with activation steering. He runs Qwen 3 4B instruct on an M1 MacBook Pro, comparing baseline and steered examples sequentially because of the laptop's constraints.
Docling converts a medical PDF to Markdown. Chonkie then chunks it with a similarity threshold of 0.5, a chunk size of 1,024, a similarity window of three and an overlap of 100 before indexing it in a local Qdrant instance. Pavan constructs positive and negative examples with input from medical domain experts. PyTorch hooks capture activations; he derives steering vectors from their means, saves them as tensors on disk and reloads them during inference without changing model weights.
The demonstration applies steering to layers 10 through 20 with a strength of 0.1. Pavan reports numerical errors with excessive strength, while other activation sampling methods produced looping or gibberish in his experiments. One comparison uses a general question without retrieval; the later example supplies retrieved document context to both runs.
The observed changes concern wording and reported response diversity. They do not establish a measured reduction in hallucinations or clinical accuracy. Latency and quality benchmarks remain unfinished. The project is still research, with repository access available on request and a public open source release planned.