Skip to content

Commit

Permalink
Merge pull request #172 from cohere-ai/cohere-pinecone-attribution
Browse files Browse the repository at this point in the history
Adding Cohere source attribution to Cohere Pinecone guide
  • Loading branch information
jlinsdell-cohere authored May 14, 2024
2 parents 0383c7d + 75815e8 commit 42e5d4b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions notebooks/Embed_Jobs_Serverless_Pinecone_Semantic_Search.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"outputs": [],
"source": [
"# TODO: upgrade to \"cohere>5\"\n",
"! pip install \"cohere<5\" pinecone-client==3.0.0.dev3 -q"
"! pip install \"cohere<5\" \"pinecone-client>3.2.1\""
]
},
{
Expand Down Expand Up @@ -50,7 +50,10 @@
"from pinecone import Pinecone\n",
"\n",
"co = cohere.Client('COHERE_API_KEY')\n",
"pc = Pinecone(api_key=('PINECONE_API_KEY'))"
"pc = Pinecone(\n",
" api_key=\"PINECONE_API_KEY\", \n",
" source_tag=\"cohere\"\n",
")"
]
},
{
Expand Down Expand Up @@ -552,7 +555,8 @@
"name": "python3"
},
"language_info": {
"name": "python"
"name": "python",
"version": "3.11.6"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 42e5d4b

Please sign in to comment.