https://github.com/devflowinc/mintlify-ingest
https://github.com/devflowinc/mintlify-ingest
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/devflowinc/mintlify-ingest
- Owner: devflowinc
- Created: 2024-04-15T08:16:33.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-15T08:17:36.000Z (about 1 year ago)
- Last Synced: 2025-06-22T05:17:05.467Z (8 days ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mintlify --> Trieve ingest with chunking
## Setup
### Node
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.
### Install Packages
`npm install`
### Clone latest version of mintlify/docs repo to `tmp` folder
```
mkdir tmp
cd tmp
git clone https://github.com/mintlify/docs.git
```### Environment Variables
```
cp .env .env.dist
```Then, you have two options to get environment variables for Trieve:
#### Use dashboard.trieve.ai
1. Go to [https://dashboard.trieve.ai] and register or sign in
2. Press "create dataset" from the page for your automatically created organization
3. Copy the `DATASET_ID` value to your `.env` as the value for `TRIEVE_DATASET_ID`
4. Create a new `owner level` `API_KEY` and copy its value for `TRIEVE_API_KEY`#### Use the CLI
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`
## Running the Script to Ingest to Trieve
`npm run ingest`