π»How To Do MultiVector Chunk Search
A guide to combining multiple vectors for chunk search
Sometimes we may want to add multiple vectors to our chunk search.
For this, we can simply use the /collection/advanced
_chunk_search
endpoint. We simply switch out the vector argument and change it into a multivector_query.
An example of constructing a chunkvector multi-vector query can be found below:
multivector_query = {
"chunkvector_1": {"vector": [0.2, 0.5, 0.1], "fields": ["test_chunkvector_"]},
"chunkvector_2": {"vector": [0.5, 0.2, 0.001], "fields": ["test_chunkvector_"]},
}
The only difference between constructing a multivector query for advanced chunk search and advanced search is that the fields will contain chunkvector
instead of vector
.
Last updated
Was this helpful?