Description
I couldn’t find any information for running a nearVector search using the javascript graphQL client when querying a named vector
for a non-named vector, the query would look like this (below):
const response = await client.graphql
.get()
.withClassName('Publication')
.withFields('name _additional {certainty}')
.withNearVector({
vector: [0.1, -0.15, 0.3, ... ]
})
.do();
console.log(response);
Can someone share a sample code showing how a target vector can be specified by name?
Server Setup Information
- Weaviate Server Version: 1.25.2
- Deployment Method: weaviate.io
- Multi Node? Number of Running Nodes:
- Client Language and Version: js/ts
- Multitenancy?: yes