Open jpmcb opened 7 months ago
You're right. Qdrant only supports f32 vectors at this point.
Search accuracy should be more than good enough with f32 floats, increasing with number of dimensions.
Do you have a specific use case in which you require f64 floats?
Do you have a specific use case in which you require f64 floats?
Not really I suppose.
I ended up just iterating the vec and converting them to f32 which seems fine.
But, I'd love if Ollama and Qdrant were easily plug and play since my main use case is building a local first RAG type application (and both Ollama / Qdrant running in Docker are perfect for this). Is the solution that the ollama-rs library needs to support f32 vecs? Or maybe there's a glue library that needs some thought?
Open to any / all suggestions!
I would rather request Ollama to provide f32, as it is what the industry is most commonly use nowadays.
I noticed that the vectors only support
f32
floats:https://github.com/qdrant/rust-client/blob/cd7ee0f5946bdf4d5c49de438230f8f9d337a6fc/src/qdrant.rs#L2037-L2042
and I ran into an issue attempting to load
PointStruct
s that are ofVec<f64>
(using embeddings generated from an ollama rust client.https://github.com/pepperoni21/ollama-rs/blob/f38634d33edd2ccdb440816aa866e5614a8a1983/src/generation/embeddings.rs#L54-L60
Trying to use this vec
f64
results in:Steps to reproduce
Vec<f64>
PointStruct
and notice error.