How can I get a vector for `nearVector` if I have a vectorizer?

I’m using the text2vec-openai and want to use nearVector. Is there a way to get the vector to pass to nearVector without having to use the OpenAI API directly?

Hi @samrat ! Welcome to our community :hugs:

if you have the vectors already, you will use nearVector, however, if you want to let Weaviate vectorize your query, you can use nearText

While using nearText, Weaviate will vectorize your query and search it against your vectors.

Let me know if that helps :slight_smile: