davidfearne commited on
Commit
40d5e41
·
verified ·
1 Parent(s): 17eaed7

Update retriever.py

Browse files
Files changed (1) hide show
  1. retriever.py +2 -2
retriever.py CHANGED
@@ -7,11 +7,11 @@ import pandas as pd
7
  import streamlit as st
8
 
9
  # Initialize Pinecone client
10
- pc = Pinecone(api_key="567aca04-6fb0-40a0-ba92-a5ed30be190b")
11
  index = pc.Index("openai-serverless")
12
 
13
  # Azure OpenAI configuration
14
- os.environ["AZURE_OPENAI_API_KEY"] = st.secrets["API_KEY"]
15
  os.environ["AZURE_OPENAI_ENDPOINT"] = "https://davidfearn-gpt4.openai.azure.com/"
16
  os.environ["AZURE_OPENAI_DEPLOYMENT_NAME"] = "text-embedding-ada-002"
17
  os.environ["AZURE_OPENAI_API_VERSION"] = "2024-08-01-preview"
 
7
  import streamlit as st
8
 
9
  # Initialize Pinecone client
10
+ pc = Pinecone(api_key=st.secrets["PC_API_KEY"])
11
  index = pc.Index("openai-serverless")
12
 
13
  # Azure OpenAI configuration
14
+ os.environ["AZURE_OPENAI_API_KEY"] = st.secrets["api_key"]
15
  os.environ["AZURE_OPENAI_ENDPOINT"] = "https://davidfearn-gpt4.openai.azure.com/"
16
  os.environ["AZURE_OPENAI_DEPLOYMENT_NAME"] = "text-embedding-ada-002"
17
  os.environ["AZURE_OPENAI_API_VERSION"] = "2024-08-01-preview"