YevheniiY
Convex Community2y ago
1 reply
Yevhenii

where get ConvexVectorStore?

I'm working on a rag project. The point is that to retrieve data from a vector database, you need to use the
const vectorStore = await ConvexVectorStore.fromDocuments(
      splitDocs,
      embeddings,
      { ctx }
    ); 

method, which writes data to the vector database and retrieves data about the database from the type
ConvexVectoreStore <all type for my databases>
. Now this variable need in another place in my project. It is possible to generate or maybe somewhere to take object with this type
ConvexVectoreStore <type for my database>
?
Was this page helpful?