Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ embedding_model = HuggingFaceEmbeddings(model_name="sentence-transformers/all-Mi
|
|
| 32 |
# Initialize Pinecone connection
|
| 33 |
try:
|
| 34 |
pc = PineconeVectorStore(
|
| 35 |
-
pinecone_api_key=os.environ.get('
|
| 36 |
embedding=embedding_model,
|
| 37 |
index_name='rag-rubic',
|
| 38 |
namespace='vectors_lightmodel'
|
|
@@ -46,7 +46,7 @@ except Exception as e:
|
|
| 46 |
# Initialize the LLM
|
| 47 |
llm = ChatOpenAI(
|
| 48 |
model='gpt-4o-mini',
|
| 49 |
-
api_key=os.environ.get('
|
| 50 |
temperature=0.2
|
| 51 |
)
|
| 52 |
|
|
|
|
| 32 |
# Initialize Pinecone connection
|
| 33 |
try:
|
| 34 |
pc = PineconeVectorStore(
|
| 35 |
+
pinecone_api_key=os.environ.get('PINCE_CONE_LIGHT'),
|
| 36 |
embedding=embedding_model,
|
| 37 |
index_name='rag-rubic',
|
| 38 |
namespace='vectors_lightmodel'
|
|
|
|
| 46 |
# Initialize the LLM
|
| 47 |
llm = ChatOpenAI(
|
| 48 |
model='gpt-4o-mini',
|
| 49 |
+
api_key=os.environ.get('OPEN_AI_KEY'),
|
| 50 |
temperature=0.2
|
| 51 |
)
|
| 52 |
|