b'{"status":{"error":"Wrong input: Vector params for are not specified in config"},"time":0.000074995}'
dense_config
to QdrantVectorStore() as well as adding embed_model
to VectorStoreIndex() but neither have worked to resolve the issue. I also tried what was suggested above (https://discord.com/channels/1059199217496772688/1059200010622873741/1233183387884191774 - upgrading the python library) but that didn't work either. Here's the code for reference:_SS_VECTOR_STORE = QdrantVectorStore(client=_QDRANT_CLIENT, collection_name="STAGE", dense_config=models.VectorParams(size=384, distance=models.Distance.COSINE)) _SS_STORAGE_CONTEXT = StorageContext.from_defaults(vector_store=_SS_VECTOR_STORE) _SS_RECURSIVE_INDEX = VectorStoreIndex.from_vector_store(vector_store=_SS_VECTOR_STORE, storage_context=_SS_STORAGE_CONTEXT, embed_model=FastEmbedEmbedding(model_name="sentence-transformers/all-MiniLM-L6-v2")) _RETRIEVER = VectorIndexAutoRetriever( _SS_RECURSIVE_INDEX, vector_store_info=_VECTOR_STORE_INFO, similarity_top_k=20 )
''
(an empty string)dense_config
param, it will work[QueryResponse(id='eedf3b5c-97f0-4be3-8f6e-6cf50b86a32e', embedding=None, sparse_embedding=None, metadata={'document':...
add()
and query()
methods if you haven't alreadyfast-all-minilm-l6-v2
and fast-sparse-splade_pp_en_v1
as our named vectors. And like you suggeted, it's using the default vector name of ''
. using
to the search/query calls, e.g.:random_results = _SS_QDRANT_CLIENT.query_points( collection_name="STAGE", query=[0.0] * 384, using="fast-all-minilm-l6-v2", ) print(f"Random results: {random_results}")
enable_hybrid
since we have both kinds of vectors already. I got this error instead b'{"status":{"error":"Wrong input: Vector params for text-dense are not specified in config"},"time":0.000079313}'
. I feel like we're SO close and that it's just a matter of renaming these in the config - I just haven't found out how π
query()
to include the NamedVector:response = self._client.search( collection_name=self.collection_name, query_vector=rest.NamedVector( name="fast-all-minilm-l6-v2", vector=query_embedding, ), limit=query.similarity_top_k, query_filter=query_filter, )
parse_to_query_result()