hoshingakag commited on
Commit
e97bd62
1 Parent(s): 165e54c

env updated

Browse files
Files changed (3) hide show
  1. .DS_Store +0 -0
  2. app.py +1 -1
  3. 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', 'ChatExp'))
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', 'us-west1-gcp-free')
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', 'experience'),
162
- index_namespace: str = os.getenv('PINECONE_NAMESPACE', 'main')
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)