From d76f9e6f37fa918309d30c640e33464de0dbf133 Mon Sep 17 00:00:00 2001 From: hupe1980 Date: Sun, 17 Sep 2023 16:30:47 +0200 Subject: [PATCH] Add missing close --- examples/pinecone_vectorstore/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/pinecone_vectorstore/main.go b/examples/pinecone_vectorstore/main.go index ae9c52b..cea8e2c 100644 --- a/examples/pinecone_vectorstore/main.go +++ b/examples/pinecone_vectorstore/main.go @@ -26,6 +26,7 @@ func main() { if err != nil { log.Fatal(err) } + defer client.Close() vs, err := vectorstore.NewPinecone(client, openai, "textKey", func(po *vectorstore.PineconeOptions) { po.TopK = 1