qdrant-js icon indicating copy to clipboard operation
qdrant-js copied to clipboard

hybrid retrieval in qdrantjs

Open imdoge opened this issue 1 year ago • 1 comments

Does the qdrantjs support hybrid retrieval, including the initialization configuration of QdrantVectorStore for hybrid retrieval, generation and upload of sparse vectors, as well as hybrid queries?

On the official website, I only saw examples like the following code used to create a collection with sparse vector configuration:

client.createCollection('sparse1', {
  sparse_vectors: {
    text: {},
  },
});

Is there currently a way to generate, upload, and perform hybrid queries with sparse vectors using JavaScript?

imdoge avatar May 15 '24 04:05 imdoge

Hello. Trying the same, were you able to upsert sparse and dense vectors?

        const point = {
            id: uuidv4(),
            vector: {
                dense: denseVector,
                sparse: sparseVectorArr,
            },
            payload: payload,
        };

        // Upsert the point into the collection
        await client.upsert(collectionName, [point]);

getting 400

hereisabrams avatar Feb 27 '25 11:02 hereisabrams