From 3235fd3d9497a3a6708773e42c412388d8e2e1ec Mon Sep 17 00:00:00 2001 From: Laure-di Date: Wed, 9 Oct 2024 18:15:39 +0200 Subject: [PATCH 1/2] fix(tutorial): change .env var in tutorial --- tutorials/how-to-implement-rag/index.mdx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tutorials/how-to-implement-rag/index.mdx b/tutorials/how-to-implement-rag/index.mdx index 95f1c5fca9..e2552645de 100644 --- a/tutorials/how-to-implement-rag/index.mdx +++ b/tutorials/how-to-implement-rag/index.mdx @@ -50,6 +50,7 @@ Create a .env file and add the following variables. These will store your API ke # Scaleway API credentials SCW_ACCESS_KEY=your_scaleway_access_key SCW_API_KEY=your_scaleway_secret_ke + SCW_REGION=your_scaleway_region # Scaleway managed database (PostgreSQL) credentials SCW_DB_NAME=your_scaleway_managed_db_name @@ -60,10 +61,10 @@ Create a .env file and add the following variables. These will store your API ke # Scaleway S3 bucket configuration SCW_BUCKET_NAME=your_scaleway_bucket_name - SCW_BUCKET_ENDPOINT="https://{{SCW_BUCKET_NAME}}.s3.{{SCW_REGION}}.scw.cloud" # S3 endpoint, e.g., https://s3.fr-par.scw.cloud + SCW_BUCKET_ENDPOINT="https://s3.{{SCW_REGION}}.scw.cloud" # S3 endpoint, e.g., https://s3.fr-par.scw.cloud # Scaleway Inference API configuration (Embeddings) - SCW_INFERENCE_EMBEDDINGS_ENDPOINT="https://{{SCW_INFERENCE_DEPLOYMENT_ID}}.ifr.fr-par.scw.cloud/v1" # Endpoint for sentence-transformers/sentence-t5-xxl deployment + SCW_INFERENCE_EMBEDDINGS_ENDPOINT="https://{{SCW_INFERENCE_EMBEDDINGS_DEPLOYMENT_ID}}.ifr.fr-par.scw.cloud/v1" # Endpoint for sentence-transformers/sentence-t5-xxl deployment # Scaleway Inference API configuration (LLM deployment) SCW_INFERENCE_DEPLOYMENT_ENDPOINT="https://{{SCW_INFERENCE_DEPLOYMENT_ID}}.ifr.fr-par.scw.cloud/v1" # Endpoint for your LLM deployment From 709ed56bb19cde5d51558a4dd76c530dc356d80c Mon Sep 17 00:00:00 2001 From: Laure-di Date: Mon, 14 Oct 2024 10:11:21 +0200 Subject: [PATCH 2/2] fix public url --- tutorials/how-to-implement-rag/index.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/how-to-implement-rag/index.mdx b/tutorials/how-to-implement-rag/index.mdx index e2552645de..07c74f8f9f 100644 --- a/tutorials/how-to-implement-rag/index.mdx +++ b/tutorials/how-to-implement-rag/index.mdx @@ -64,10 +64,10 @@ Create a .env file and add the following variables. These will store your API ke SCW_BUCKET_ENDPOINT="https://s3.{{SCW_REGION}}.scw.cloud" # S3 endpoint, e.g., https://s3.fr-par.scw.cloud # Scaleway Inference API configuration (Embeddings) - SCW_INFERENCE_EMBEDDINGS_ENDPOINT="https://{{SCW_INFERENCE_EMBEDDINGS_DEPLOYMENT_ID}}.ifr.fr-par.scw.cloud/v1" # Endpoint for sentence-transformers/sentence-t5-xxl deployment + SCW_INFERENCE_EMBEDDINGS_ENDPOINT="https://{{SCW_INFERENCE_EMBEDDINGS_DEPLOYMENT_ID}}.ifr.fr-par.scaleway.com/v1" # Endpoint for sentence-transformers/sentence-t5-xxl deployment # Scaleway Inference API configuration (LLM deployment) - SCW_INFERENCE_DEPLOYMENT_ENDPOINT="https://{{SCW_INFERENCE_DEPLOYMENT_ID}}.ifr.fr-par.scw.cloud/v1" # Endpoint for your LLM deployment + SCW_INFERENCE_DEPLOYMENT_ENDPOINT="https://{{SCW_INFERENCE_DEPLOYMENT_ID}}.ifr.fr-par.scaleway.com/v1" # Endpoint for your LLM deployment ``` ## Setting Up Managed Databases