const simpleRes = await vectorStore.similaritySearchWithScore(question);
console.log(simpleRes);
How can I know if it uses tokens in similarity search, does my question converted to vector and uses OpenAIEmbeddings
before it search the closest vector in the database?
when you do a similarity search in the database there is no token usage.
You consume tokens when you send the most similar chunks to the LLM