Skip to content

Commit 83ad1b6

Browse files
committed
Iterate
1 parent 00d731f commit 83ad1b6

File tree

9 files changed

+14
-208
lines changed

9 files changed

+14
-208
lines changed

.github/actions/post-merge-additions/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ runs:
2727
shell: bash
2828
name: Process addition of ${{ inputs.added_notebook }}
2929
run: |
30-
python .github/actions/post-merge-additions/process-additions.py ${{ inputs.added_notebook }}
30+
python .github/actions/post-merge-additions/process-additions.py
3131
env:
3232
PINECONE_API_KEY: ${{ inputs.PINECONE_API_KEY }}
33+
NOTEBOOK: ${{ inputs.added_notebook }}

.github/actions/post-merge-additions/process-additions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import sys
1+
import os
22
import nbformat
33
from pinecone import Pinecone
44

5-
notebook_added = sys.argv[1]
5+
notebook_added = os.environ['NOTEBOOK']
66

77
print(f"Processing new notebook {notebook_added}")
88

.github/actions/post-merge-deletions/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ runs:
2727
shell: bash
2828
name: Process deletion of ${{ inputs.deleted_notebook }}
2929
run: |
30-
python .github/actions/post-merge-deletions/process-deletions.py ${{ inputs.deleted_notebook }}
30+
python .github/actions/post-merge-deletions/process-deletions.py
3131
env:
3232
PINECONE_API_KEY: ${{ inputs.PINECONE_API_KEY }}
33+
NOTEBOOK: ${{ inputs.deleted_notebook }}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import sys
1+
import os
22
import nbformat
33
from pinecone import Pinecone
44

5-
notebook_deleted = sys.argv[1]
5+
notebook_deleted = os.environ['NOTEBOOK']
66

77
print(f"Processing deletions to {notebook_deleted}")
88

99
pc = Pinecone()
1010

11-
idx = pc.Index(host='hosturl') # TODO: adjust for arjun project
11+
idx = pc.Index(name='arjun-project') # TODO: adjust for arjun project
1212

1313
# TODO: remove embeddings related to deleted notebook

.github/actions/post-merge-modifications/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ runs:
2727
shell: bash
2828
name: Process changes to ${{ inputs.modified_notebook }}
2929
run: |
30-
python .github/actions/post-merge-modifications/process-modifications.py ${{ inputs.modified_notebook }}
30+
python .github/actions/post-merge-modifications/process-modifications.py
3131
env:
3232
PINECONE_API_KEY: ${{ inputs.PINECONE_API_KEY }}
33+
NOTEBOOK: ${{ inputs.modified_notebook }}

.github/actions/post-merge-modifications/process-modifications.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import sys
1+
import os
22
import nbformat
33
from pinecone import Pinecone
44

5-
notebook_changed = sys.argv[1]
5+
notebook_changed = os.environ['NOTEBOOK']
66

77
print(f"Processing modified notebook {notebook_changed}")
88

learn/assistant/pinecone-assistant-getting-started copy 4.ipynb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@
1919
},
2020
"outputs": [],
2121
"source": [
22-
"import os\n",
23-
"\n",
24-
"if not os.environ.get(\"PINECONE_API_KEY\"):\n",
25-
" from pinecone_notebooks.colab import Authenticate\n",
26-
" Authenticate()"
22+
"import os\n"
2723
]
2824
},
2925
{

learn/assistant/pinecone-assistant-getting-started copy.ipynb

Lines changed: 0 additions & 193 deletions
This file was deleted.

0 commit comments

Comments
 (0)