# JS/TS Client v3: nearVector with named vectors always returns same results (CLIP, multi-vector collection)

**URL:** <https://forum.weaviate.io/t/js-ts-client-v3-nearvector-with-named-vectors-always-returns-same-results-clip-multi-vector-collection/21933>\
**Category:** Support\
**Created:** [September 3, 2025, 6:05am UTC](https://forum.weaviate.io/t/js-ts-client-v3-nearvector-with-named-vectors-always-returns-same-results-clip-multi-vector-collection/21933 "2025-09-03T06:05:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MELINA\_BELEN\_JAUREGU](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/melina_belen_jauregu/32/5410_2.png) [@MELINA\_BELEN\_JAUREGU](https://forum.weaviate.io/u/MELINA_BELEN_JAUREGU)\
**Post date:** [September 3, 2025, 6:05am UTC](https://forum.weaviate.io/t/js-ts-client-v3-nearvector-with-named-vectors-always-returns-same-results-clip-multi-vector-collection/21933/1 "2025-09-03T06:05:01Z")

</div>

Hi,  
I am using the JS/TS client v3 to search a collection with named vectors (`text_vector` and `image_vector`). I am using CLIP model for my embeddings, so both vectors are 768-dimensional and cross-modal search works as expected in the Weaviate console (GraphQL), where I get different results for different query vectors.

This is my code for Weaviate console:

```auto
# Powered by GraphiQL
{
  Get {
    FashionItem(
      limit: 5
      nearVector: {
        vector: embedding
        targetVectors: ["text_vector"]
      }
    ) {
      name
      description
      imageUrl
      url
      brandId
      price
      _additional {
        distance
      }
    }
  }
}

```

However, when I run the following code in TypeScript, I always get the same results, regardless of the input vector:

```auto
`const queryOptions = {
  limit: limit,
  offset: offset,
  returnProperties: [
    "name",
    "description",
    "imageUrl",
    "url",
    "brandId",
    "price",
  ],
  nearVector: {
    text_vector: embedding, //vector of 768 dimension 
  },
  targetVector: ["text_vector"],
};

result = await collection.query.fetchObjects(queryOptions);`

```

Is there something wrong with my query, or could this be a bug in the client? As I said before, the same search in the console works as expected, but in TypeScript the results do not change with different vectors.

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [September 3, 2025, 8:54pm UTC](https://forum.weaviate.io/t/js-ts-client-v3-nearvector-with-named-vectors-always-returns-same-results-clip-multi-vector-collection/21933/2 "2025-09-03T20:54:55Z")

</div>

hi @MELINA_BELEN_JAUREGU !

You are using `fetchObjects` instead of `nearVector`.

This is what you will need:

```typescript
result = await collection.query.nearVector(
  [1,2,3], 
  {
    returnProperties: [
      "name",
      "description",
      "imageUrl",
      "url",
      "brandId",
      "price",
    ],
    targetVector: ["text_vector"],
    limit: 5,
    offset: 10
  }
);

```

Check here our docs on nearVector: [Vector similarity search | Weaviate Documentation](https://docs.weaviate.io/weaviate/search/similarity#search-with-a-vector)

Let me know if this helps!

Happy coding!! 🙂

---

<div class="post-metadata">

**Author:** ![MELINA\_BELEN\_JAUREGU](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/melina_belen_jauregu/32/5410_2.png) [@MELINA\_BELEN\_JAUREGU](https://forum.weaviate.io/u/MELINA_BELEN_JAUREGU)\
**Post date:** [September 3, 2025, 10:38pm UTC](https://forum.weaviate.io/t/js-ts-client-v3-nearvector-with-named-vectors-always-returns-same-results-clip-multi-vector-collection/21933/3 "2025-09-03T22:38:07Z")

</div>

> [@DudaNogueira](#):
>
> `nearVector`

Yes that was the problem. Thanks a lot!!
