import type { Document } from "@langchain/core/documents";
const document1: Document = {
pageContent: "The powerhouse of the cell is the mitochondria",
metadata: { language: "en", topic: "biology" }
};
const document2: Document = {
pageContent: "Buildings are made out of brick",
metadata: { language: "en", topic: "history" }
};
const document3: Document = {
pageContent: "Mitochondria are made out of lipids",
metadata: { language: "en", topic: "biology" }
};
const document4: Document = {
pageContent: "The 2024 Olympics are in Paris",
metadata: { language: "en", topic: "history" }
}
const documents = [document1, document2, document3, document4];
await vectorStore.addDocuments(documents);