You must use Node v20.12.2
for this script.
If you use nvm
then you can simply run nvm use
from the root of this repo.
npm install
mkdir tmp
cd tmp
git clone https://github.com/mintlify/docs.git
cp .env .env.dist
Then, you have two options to get environment variables for Trieve:
- Go to [https://dashboard.trieve.ai] and register or sign in
- Press "create dataset" from the page for your automatically created organization
- Copy the
DATASET_ID
value to your.env
as the value forTRIEVE_DATASET_ID
- Create a new
owner level
API_KEY
and copy its value forTRIEVE_API_KEY
Warning! You must have cargo
and some build tools installed to use the CLI.
cargo install trieve
trieve login
trieve api-key generate
trieve dataset create
Then copy your API_KEY
value to the .env
file for TRIEVE_API_KEY
and the DATASET_ID
for TRIEVE_DATASET_ID
npm run ingest