Skip to content

How to find in specific vectorΒ #77

@roysG

Description

@roysG

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,
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions