Spaces:
Runtime error
Runtime error
hoshingakag
commited on
Commit
•
e97bd62
1
Parent(s):
165e54c
env updated
Browse files- .DS_Store +0 -0
- app.py +1 -1
- src/llamaindex_palm.py +3 -3
.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|
app.py
CHANGED
@@ -22,7 +22,7 @@ llm.set_index_from_pinecone()
|
|
22 |
genai.configure(api_key=os.getenv('PALM_API_KEY'))
|
23 |
|
24 |
# W&B
|
25 |
-
wandb.init(project=os.getenv('WANDB_PROJECT'
|
26 |
|
27 |
# Gradio
|
28 |
chat_history = []
|
|
|
22 |
genai.configure(api_key=os.getenv('PALM_API_KEY'))
|
23 |
|
24 |
# W&B
|
25 |
+
wandb.init(project=os.getenv('WANDB_PROJECT'))
|
26 |
|
27 |
# Gradio
|
28 |
chat_history = []
|
src/llamaindex_palm.py
CHANGED
@@ -125,7 +125,7 @@ class LlamaIndexPaLM():
|
|
125 |
# Pinecone
|
126 |
pinecone.init(
|
127 |
api_key=os.environ['PINECONE_API_KEY'],
|
128 |
-
environment=os.getenv('PINECONE_ENV'
|
129 |
)
|
130 |
|
131 |
# model metadata
|
@@ -158,8 +158,8 @@ class LlamaIndexPaLM():
|
|
158 |
|
159 |
def set_index_from_pinecone(
|
160 |
self,
|
161 |
-
index_name: str = os.getenv('PINECONE_INDEX'
|
162 |
-
index_namespace: str = os.getenv('PINECONE_NAMESPACE'
|
163 |
) -> None:
|
164 |
# Pinecone VectorStore
|
165 |
pinecone_index = pinecone.Index(index_name)
|
|
|
125 |
# Pinecone
|
126 |
pinecone.init(
|
127 |
api_key=os.environ['PINECONE_API_KEY'],
|
128 |
+
environment=os.getenv('PINECONE_ENV')
|
129 |
)
|
130 |
|
131 |
# model metadata
|
|
|
158 |
|
159 |
def set_index_from_pinecone(
|
160 |
self,
|
161 |
+
index_name: str = os.getenv('PINECONE_INDEX'),
|
162 |
+
index_namespace: str = os.getenv('PINECONE_NAMESPACE')
|
163 |
) -> None:
|
164 |
# Pinecone VectorStore
|
165 |
pinecone_index = pinecone.Index(index_name)
|