From 9e7ddbc288d5243390499db44b7838957f286b0e Mon Sep 17 00:00:00 2001 From: Luka1104 Date: Sat, 20 Apr 2024 02:56:11 +0900 Subject: [PATCH] Update SETUP-GUIDE.md Add turbo installation link to prerequisites. Add vectorize information(need to use workers paid plan for now) --- SETUP-GUIDE.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SETUP-GUIDE.md b/SETUP-GUIDE.md index 5313b71b..b7f47999 100644 --- a/SETUP-GUIDE.md +++ b/SETUP-GUIDE.md @@ -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