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 }
);
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>
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>
ConvexVectoreStore <type for my database>
?
1 Reply
Michal Srb
Michal Srb6mo ago
GitHub
GitHub - get-convex/convex-ai-chat-langchain: AI chat with context ...
AI chat with context retrieval using Convex and LangChain - get-convex/convex-ai-chat-langchain

Did you find this page helpful?