File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed
learn/experimental/merge-namespaces Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change 26
26
{
27
27
"cell_type" : " code" ,
28
28
"execution_count" : null ,
29
- "metadata" : {
30
- "vscode" : {
31
- "languageId" : " plaintext"
32
- }
33
- },
29
+ "metadata" : {},
34
30
"outputs" : [],
35
31
"source" : [
36
32
" %pip install -qU pinecone-notebooks pinecone-client[grpc]"
39
35
{
40
36
"cell_type" : " code" ,
41
37
"execution_count" : null ,
42
- "metadata" : {
43
- "vscode" : {
44
- "languageId" : " plaintext"
45
- }
46
- },
38
+ "metadata" : {},
47
39
"outputs" : [],
48
40
"source" : [
49
41
" from pinecone.grpc import PineconeGRPC as Pinecone\n " ,
54
46
" api_key = os.environ.get('PINECONE_API_KEY')\n " ,
55
47
" \n " ,
56
48
" # Use the API key to initialize the Pinecone client\n " ,
57
- " pc = Pinecone(api_key=api_key)"
49
+ " pc = Pinecone(api_key=api_key)\n " ,
50
+ " \n " ,
51
+ " # Connect to your index\n " ,
52
+ " index_name = \" namespace-test\" # replace with the correct index name\n " ,
53
+ " index = pc.Index(index_name)"
58
54
]
59
55
}
60
56
],
You can’t perform that action at this time.
0 commit comments