The Go client is under active development and should be considered unstable. Before a 1.0 release, there are no guarantees of backward compatibility between minor versions. See the Go client README for full installation instructions and usage examples.

Install

To install the newest version of the Go client:

Initialize

Once installed, you can import the client and then use an API key to initialize a client instance:

package main

import (
	"context"
	"fmt"
	"github.com/pinecone-io/go-pinecone/pinecone"
)

func main() {
	ctx := context.Background()

	pc, err := pinecone.NewClient(pinecone.NewClientParams{
		ApiKey: "YOUR_API_KEY",
	})