Use OpenAIEmbeddings() once and then re-recreate MemoryVectorStore? #11439
bennofatius
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In my test app I'm running below step before every chain call which always takes time and feels unnecessary. I assume that I could instead turn my context into embeddings only once, and then use the resulting data to re-create a MemoryVectorStore in the future? If so, how do I do that?
const newVectorStore = await MemoryVectorStore.fromDocuments(doc, new OpenAIEmbeddings()
Beta Was this translation helpful? Give feedback.
All reactions