[FEATURE]: Add a qdrant embedding provider backed by the Qdrant Cloud Inference API
Note de correção (2026-09-29, ciclo de investigação): a análise abaixo foi ampliada. Três afirmações estavam erradas e foram corrigidas no registro local (
conhecimento/dividas/ediagnosticos-auditaveis/, via ai-hub#35):
- A coleção de indexação é apagada e recriada pelo Kilo quando a dimensão diverge (
_recreateCollectionWithNewDimensionembin/kilo.exe). A recriação foi automática, não efeito de configuração manual.- A implementação da indexação está em
bin/kilo.exe, não nos bundles JS. Lácloud_inferencetem zero ocorrências — o caminho de código não existe, mas a biblioteca cliente já sabe montar o payload de inferência. Isso torna este pedido de complexidade relativamente baixa: habilitar o que já existe.intfloat/multilingual-e5-smallexiste e é gratuito (384 dims, janela de 512 tokens). Testado e funcional.
Hi! Thanks for the detailed report — this is a well-evidenced feature request, and the reproduction is unambiguous.
On the 404s: those are expected, not a Qdrant bug worth reporting separately. The documented interfaces are client libraries (Python, JS/TS, Rust, Go, .NET, Java), REST, and gRPC. The openapi.json from qdrant/qdrant master (520,610 bytes, 53 routes) has no route matching embed, inference, or /v1. The Inference API is inline by design — an Inference Object is passed inside points/upsert or points/query, and the docs explicitly note the input is not persisted.
On the architectural reason: indexing embeds client-side, so it needs the vector before it writes. Qdrant produces the vector server-side as a side effect of the query or upsert, and there is no route that returns a bare vector for given text — so no baseUrl value can bridge it. That is the structural gap, and it is the part that makes a shim necessary rather than merely convenient.
Two data points that may be useful for scoping:
- Free dense text models on Qdrant Cloud include
sentence-transformers/all-minilm-l6-v2(384 dims, 256-token context) andintfloat/multilingual-e5-small(384 dims, 512-token context). The MiniLM context window is worth noting for codebase indexing — segment truncation is silent, and the vectors for a truncated prefix and the full text can be byte-identical above the limit. - Your
searchMinScoredefault of 0.4 sits close to where 384-dim dense models actually score. Measured on a 250-chunk sample, all-minilm-l6-v2 returned 0.44–0.64 and multilingual-e5-small 0.86–0.91 for the same queries. If the threshold is meant to filter, dense-only retrieval of code may not give it room to do so. Hybrid dense + BM25 (qdrant/bm25runs locally in the cluster at no cost, and the client library already shipsPrefetch/FusionQuery) tends to be the lever that matters most for identifier-heavy code search.
The question that would shape an implementation:
Since the Qdrant client exposes inference as a configuration flag, would it be workable for indexing to pass Inference Objects to Qdrant rather than pre-computing vectors? If the client supports mixing a client-computed vector at index time with a server-inferred query at search time, a qdrant embedding provider may be smaller than a full feature. The open question from our side is whether the two modes interoperate in one collection, which we have not verified.
Either way, the shim is a workaround we are not proposing as a pattern — it needs a scratch collection, three round-trips per batch, and a long-lived local process. This issue is about the supported path.
Search checklist
- I have verified this feature I'm about to request hasn't been suggested before.
Source: Kilo-Org/kilocode