Closed zhangjiale-64 closed 3 months ago
@zhangjiale-64 please be sure you have set the required environment variables and secrets, either in your local environment or in your Github project. Please see the README.md for the full list of required variables.
@zhangjiale-64 please be sure you have set the required environment variables and secrets, either in your local environment or in your Github project. Please see the README.md for the full list of required variables.
@cwaddingham please update the README.md to include all required environment variables and resources, such as Pinecone and OpenAI services. Include links to relevant documentation or registration pages to assist users in setting up. After I have configured the required environment variables, run the azd deploy
command, get error as follow:
Repro Steps:
git clone https://github.com/pinecone-io/pinecone-rag-demo-azd.git
cd pinecone-rag-demo-azd
npm i
npm run env:init
azd auth login
azd provision
azd deploy
Environments:
I've added the environment variables to the README.md file, please review, set in your local environment or fork, and try again.
For convenience they are:
PINECONE_API_KEY={your Pinecone API key}
OPENAI_API_KEY={your OpenAI API key}
PINECONE_REGION={your Pinecone region}
PINECONE_INDEX={your index name}
pinecone-rag-demo-azd
.AZURE_ENV_NAME=prod
AZURE_TENANT_ID={tenant_id}
{tenant_id}
with your Tenant's Tenant ID
AZURE_SUBSCRIPTION_ID={subscription_id}
{subscription_id}
with your Subscription's Subscription ID
AZURE_CLIENT_ID={service_principal_id}
{service_principal_id}
with your Service principal's Application ID
AZURE_LOCATION={location_name}
{location_name}
with your desired region nameaz account list-locations -o table
SERVICE_WEB_CONTAINER_MIN_REPLICAS=1
@zhangjiale-64 @v-xuto were you able to successfully run npm run env:init
after configuring the required env variables Cory provided?
@zhangjiale-64 @v-xuto were you able to successfully
run npm run env:init
after configuring the required env variables Cory provided?
Sorry for the delayed response. This issue has been fixed and I will close it.
Describe the issue: Run command
npm run env:init
in Windows (bash) ,Devcontainer and Codespaces, get error as follow:Repro Steps:
git clone https://github.com/pinecone-io/pinecone-rag-demo-azd.git
cd pinecone-rag-demo-azd
npm i
npm run env:init
Environments:
Expected behavior:
Running the command
npm run env:init
can successfully create the ".env.local" file.@hemarina and @cwaddingham for notification.