class TensorFlowEmbeddingsClass that extends the Embeddings class and provides methods for generating embeddings using the Universal Sentence Encoder model from TensorFlow.js.
const embeddings = new TensorFlowEmbeddings();
const store = new MemoryVectorStore(embeddings);
const documents = [
"A document",
"Some other piece of text",
"One more",
"And another",
];
await store.addDocuments(
documents.map((pageContent) => new Document({ pageContent }))
);