Update retriever.py
Browse files- 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="
|
| 11 |
index = pc.Index("openai-serverless")
|
| 12 |
|
| 13 |
# Azure OpenAI configuration
|
| 14 |
-
os.environ["AZURE_OPENAI_API_KEY"] = st.secrets["
|
| 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"
|