File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
learn/experimental/merge-namespaces Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 22
22
" \n " ,
23
23
" Please note this code is **experimental** and not guaranteed to work by Pinecone. Test thoroughly before using in production."
24
24
]
25
+ },
26
+ {
27
+ "cell_type" : " code" ,
28
+ "execution_count" : null ,
29
+ "metadata" : {
30
+ "vscode" : {
31
+ "languageId" : " plaintext"
32
+ }
33
+ },
34
+ "outputs" : [],
35
+ "source" : [
36
+ " %pip install -qU pinecone-notebooks pinecone-client[grpc]"
37
+ ]
38
+ },
39
+ {
40
+ "cell_type" : " code" ,
41
+ "execution_count" : null ,
42
+ "metadata" : {
43
+ "vscode" : {
44
+ "languageId" : " plaintext"
45
+ }
46
+ },
47
+ "outputs" : [],
48
+ "source" : [
49
+ " from pinecone.grpc import PineconeGRPC as Pinecone\n " ,
50
+ " from pinecone import ServerlessSpec\n " ,
51
+ " import os\n " ,
52
+ " \n " ,
53
+ " # The generated API key is available in the PINECONE_API_KEY environment variable\n " ,
54
+ " api_key = os.environ.get('PINECONE_API_KEY')\n " ,
55
+ " \n " ,
56
+ " # Use the API key to initialize the Pinecone client\n " ,
57
+ " pc = Pinecone(api_key=api_key)"
58
+ ]
25
59
}
26
60
],
27
61
"metadata" : {
You can’t perform that action at this time.
0 commit comments