// Import Stash
const Stash = require('./stash');
// Initialize the Stash client
const stash = new Stash('YOUR_API_KEY');
// Create a stash
const baseId = await stash.createStash('MyStash');
// Start stashing things
await stash.stash(baseId, 'GraphRAG.pdf');
// Query the stash
const results = await stash.query(baseId, 'What is Stash?');
1
2
3
4
1
2
3