Zack Saadioui
8/26/2024
1
2
bash
npm install llamaindex
1
2
bash
yarn add llamaindex
1
2
bash
pnpm install llamaindex
1
2
bash
jsr install @llamaindex/core
1
2
3
bash
mkdir my-llama-project
cd my-llama-project
1
2
bash
npm init -y
1
package.json
1
app.js
1
2
bash
touch app.js
1
app.js
1
2
javascript
import { Document, VectorStoreIndex } from 'llamaindex';
1
doc.txt
1
data
1
doc.txt
1
2
bash
node app.js
1
2
bash
export OPENAI_API_KEY="your_openai_api_key_here"
1
.bashrc
1
.zshrc
Copyright © Arsturn 2024