Merge pull request #28 from luka1104/patch-1

Update SETUP-GUIDE.md
This commit is contained in:
Dhravya Shah 2024-04-19 10:57:22 -07:00 • committed by GitHub
commit 813f79bd89
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,6 +3,7 @@
## Prerequisites
- [bun](https://bun.sh/)
- [turbo](https://turbo.build/repo/docs/installing)
- [wrangler](https://developers.cloudflare.com/workers/cli-wrangler/install-update)
## Steps
@ -52,12 +53,13 @@ If it runs, you can set up the cloud database as well by removing the `--local`
To do this, first edit the `.dev.vars` file in `apps/cf-ai-backend` with the following content:
```bash
SECURITY_KEY ="veryrandomsecuritykey"
SECURITY_KEY="veryrandomsecuritykey"
// Why? to generate embeddings with 4000+ tokens
OPENAI_API_KEY="sk-"
```
6. Run this command to initialise vector database
> Note: You need to use the workers paid plan to use vectorize for now.
```
wrangler vectorize create --dimensions=1536 supermem-vector-1 --metric=cosine