qdrant / qdrant/qdrant-js

How to find in specific vector

Open
#77 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
464
Forks
46
PR merge metrics
No merged PRs in 30d

Description

I defined 2 custom vector in collcection, for example:
image and msg

When i try to find the vector in msg, i get error Bad Request.

This is how the code looks:

First i defined the settings vector:

await client.createCollection(collectionName, {
vectors: {
msg:{
size: 384,
distance: 'Cosine',
},
size: 4,
distance: 'Cosine',
},
optimizers_config: {
default_segment_number: 2,
},
replication_factor: 2,
});

Then i tried to search:

const res1 = await client.search(collectionName, {
vector: { "vector": { "vector": [1.0, 2.0, 3.0], "name": "msg" } },
limit: 3,
});

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the client.search call and compare its vector argument with the preceding createCollection configuration for the named msg vector. Reproduce the Bad Request using the shown collection and search inputs, then confirm that searching the specific vector succeeds without an error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.