Skip to content
Snippets Groups Projects
Unverified Commit bff788b4 authored by Logan's avatar Logan Committed by GitHub
Browse files

Merge pull request #24 from run-llama/logan/patch_storage_docs

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