Rohan Varma
Rohan Varma

Reputation: 11

Returning vector with Weaviate

I am considering using Weaviate as a vector store. I see on the docs that you can set the vectorizer to none and provide custom vectors in addition to the other metadata. After I do that I want to get all the metadata back using the Get{} query, as well as the vectors. Does Weaviate support returning the vector as well as the metadata?

I see in the demo they add vector to the additional properties and it seemed to return the vector associated with the object. Is this in fact simply returning the vector associated with results or is it tied to specifying some kind of search query like nearText?

Upvotes: 1

Views: 778

Answers (1)

Bob van Luijt
Bob van Luijt

Reputation: 7598

Yes, that's certainly possible.

{
  Get{
    Article(
      nearText: {
        concepts: ["music"]
      }  
      limit: 3
    ){
      title
      _additional {
        vector # <== this is what you're looking for
      }
    }
  }
}

Upvotes: 1

Related Questions