Skip to content
Snippets Groups Projects
Commit 3e1abd2c authored by Logan Markewich's avatar Logan Markewich
Browse files

fix storage example

parent 79c76ea9
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ import { Document, VectorStoreIndex, storageContextFromDefaults } from "./src";
const storageContext = await storageContextFromDefaults({ persistDir: "./storage" });
const document = new Document({ text: "Test Text" });
const index = await VectorStoreIndex.fromDocuments([document], storageContext);
const index = await VectorStoreIndex.fromDocuments([document], { storageContext });
```
## API Reference
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment