Personal project · public or synthetic data
Agentic search
A LangGraph team searches Elasticsearch, Qdrant and Pinecone, on a quantized model served by vLLM on a laptop GPU.
Key results
- answer in the top 5, hybrid BM25 + dense (RRF)
- 0.679
- tokens / s, 1.5B AWQ, 8 parallel requests
- 1,133
- weights in GPU memory (FP16: 2.98 GiB)
- 1.10 GiB
- agent accuracy, held-out questions (fixed: 0.645)
- 0.670
The agent was a few points better and three times slower; on 200 questions, that is within the noise.
Four roles, two of them in code
A planner (LLM) chooses keyword, semantic or hybrid search and writes the query; a searcher runs it on Elasticsearch (BM25), Qdrant or Pinecone (dense), or fuses both with Reciprocal Rank Fusion; an answerer (LLM) replies from the passages and cites them; a critic, in code, refuses an answer that is not found or cites a passage that was not retrieved, and sends the planner back once with another strategy.
Plans and answers are decoded under a JSON schema by vLLM, so even a 1.5B model cannot break the format. When the 3B model looped until the token limit, the graph fell back instead of crashing. The interface shows each step live, with the passages and their scores.
Retrieval, and what 4-bit costs
On 508 Wikipedia questions, hybrid search found the answer in the top 5 for 0.679, against 0.648 for BM25 and 0.636 for dense search. Qdrant and Pinecone returned the same passages (99.9 % overlap): with the same vectors, the choice between them is about operations, not quality.
Same 8 GB GPU, three models: at 1.5B, AWQ 4-bit gave 1.9× the throughput with 2.7× less memory, for 13.5 points of accuracy (0.680 → 0.545). A 3B model in 4-bit took less memory than the 1.5B in FP16 and served more tokens per second, at an accuracy the 200 questions cannot separate from it.


Is the agent worth it?
Rewriting the query lost passages: the planner rewrote every question, and the rewrite alone found the answer less often than the question itself (0.607 against 0.650). Searching with both and fusing them gained 3.5 points; on 200 questions kept aside, the gain shrank to 1 point. It is kept because it never hurt, not because it was proven.
Against a fixed hybrid pipeline, the agent gained 2.5 points on the held-out questions, inside the 95 % interval, for three times the latency. On single-hop questions over one corpus, a well-chosen fixed pipeline is almost as good; the agent pays off when the right strategy depends on the question.
Limitations
The critic checks that citations were retrieved, not that they support the answer ("roo bars" was accepted with a valid citation). Pinecone runs on its official local emulator, so its latency says nothing about the cloud service. Scoring is strict, so absolute numbers are pessimistic; comparisons hold because the same rules apply to every system.
