-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathset_env.sh
More file actions
39 lines (33 loc) · 1.55 KB
/
Copy pathset_env.sh
File metadata and controls
39 lines (33 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
# ============================================================
# set_env.sh — Set all environment variables for the RAG project
#
# USAGE:
# 1. Edit the PINECONE_API_KEY line below with your real key
# 2. Run: source set_env.sh
# ============================================================
# AWS region — us-east-2 matches deployed infrastructure
export AWS_DEFAULT_REGION=us-east-2
# S3 bucket — includes your account ID for global uniqueness
export S3_BUCKET_NAME=aws-rag-docs-$(aws sts get-caller-identity --query Account --output text)
# Pinecone — replace with your actual API key from https://app.pinecone.io
export PINECONE_API_KEY=your-pinecone-api-key-here
export PINECONE_INDEX_NAME=aws-rag-index
# Frontend origin — set this to your CloudFront URL before deploying 06/07
export ALLOWED_ORIGIN=https://your-cloudfront-domain.example.com
# Bedrock model IDs
export EMBEDDING_MODEL_ID=amazon.titan-embed-text-v2:0
export LLM_MODEL_ID=us.anthropic.claude-sonnet-4-6
# Print confirmation
echo "Environment variables set:"
echo " AWS_DEFAULT_REGION = $AWS_DEFAULT_REGION"
echo " S3_BUCKET_NAME = $S3_BUCKET_NAME"
echo " PINECONE_INDEX_NAME = $PINECONE_INDEX_NAME"
echo " ALLOWED_ORIGIN = $ALLOWED_ORIGIN"
echo " EMBEDDING_MODEL_ID = $EMBEDDING_MODEL_ID"
echo " LLM_MODEL_ID = $LLM_MODEL_ID"
echo ""
if [ "$PINECONE_API_KEY" = "your-pinecone-api-key-here" ]; then
echo "⚠️ WARNING: You still need to replace PINECONE_API_KEY with your real key!"
echo " Edit this file and run 'source set_env.sh' again."
fi