Skip to content

Commit d0b71dc

Browse files
Add ANTHROPIC_API_KEY for notebook runs (#487)
## Problem Add ANTHROPIC_API_KEY for notebook runs - to coincide with adding secret to github settings in this repo ## Solution Describe the approach you took. Link to any relevant bugs, issues, docs, or other resources. ## Type of Change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update - [ ] Infrastructure change (CI configs, etc) - [ ] Non-code change (docs, etc) - [ ] None of the above: (explain here) ## Test Plan Describe specific steps for validating this change.
1 parent 7494c88 commit d0b71dc

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

.github/actions/run-notebook/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ inputs:
1414
HF_TOKEN:
1515
description: "The Hugging Face token"
1616
required: true
17+
ANTHROPIC_API_KEY:
18+
description: "The Anthropic API key"
19+
required: true
1720

1821
runs:
1922
using: 'composite'
@@ -52,4 +55,5 @@ runs:
5255
env:
5356
PINECONE_API_KEY: ${{ inputs.PINECONE_API_KEY }}
5457
OPENAI_API_KEY: ${{ inputs.OPENAI_API_KEY }}
55-
HF_TOKEN: ${{ inputs.HF_TOKEN }}
58+
HF_TOKEN: ${{ inputs.HF_TOKEN }}
59+
ANTHROPIC_API_KEY: ${{ inputs.ANTHROPIC_API_KEY }}

.github/workflows/test-notebooks-all.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,4 @@ jobs:
4545
PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }}
4646
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
4747
HF_TOKEN: ${{ secrets.HF_TOKEN }}
48+
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}

.github/workflows/test-notebooks-changed.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ jobs:
6161
PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }}
6262
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
6363
HF_TOKEN: ${{ secrets.HF_TOKEN }}
64-
64+
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
65+
6566
check-links:
6667
needs:
6768
- validate-notebooks

learn/generation/traditional-rag/traditional-rag-with-claude-and-hybrid.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"cell_type": "markdown",
66
"metadata": {},
77
"source": [
8-
"# Retrieval-Augmented Generation with hybrid search and Claude\n",
8+
"# Retrieval-Augmented Generation with hybrid search and Claude \n",
99
"\n",
1010
"This notebook demonstrates how to implement retrieval-augmented generation (RAG), connecting Anthropic's Claude models with the data in your Pinecone vector database. We will cover the following steps:\n",
1111
"\n",

0 commit comments

Comments
 (0)