-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from pinecone-io/vector-service-api
Update grpc bindings to use new Vector Service API
- Loading branch information
Showing
21 changed files
with
2,868 additions
and
3,806 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[submodule "thirdparty/api-common-protos"] | ||
path = thirdparty/api-common-protos | ||
url = [email protected]:googleapis/api-common-protos.git | ||
[submodule "thirdparty/grpc-gateway"] | ||
path = thirdparty/grpc-gateway | ||
url = [email protected]:grpc-ecosystem/grpc-gateway.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
gen: | ||
protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative pinecone/core.proto pinecone/storage.proto | ||
protoc --proto_path . --proto_path thirdparty/api-common-protos --proto_path thirdparty/grpc-gateway --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative pinecone_grpc/vector_service.proto | ||
|
||
test: | ||
go test ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
# go-pinecone | ||
Pinecone Go Client | ||
|
||
> :warning: Note: This branch is incompatible with default pinecone services. If you're trying to self-onboard to use go-pinecone, use branch 'public', or reach out to [email protected]. | ||
## Features | ||
go-pinecone supports all Pinecone dataplane operations: upsert, fetch, query, delete, and info. | ||
go-pinecone contains basic GRPC bindings for all Pinecone vector plane operations: upsert, fetch, query, delete, and info. | ||
|
||
It notably does *not* support service management (creating, deleting Pinecone services and routers). | ||
It notably does *not* support Index management (creating, deleting Pinecone indexes) or OpenAPI-based Pinecone APIs. | ||
|
||
## Installation | ||
go-pinecone requires a Go version with [modules](https://github.com/golang/go/wiki/Modules) support. | ||
|
@@ -23,6 +21,11 @@ See examples/app.go for a usage sample. | |
To get help using go-pinecone, reach out to [email protected]. | ||
|
||
## Development | ||
Clone with submodules: | ||
``` | ||
git clone --recursive [email protected]:pinecone-io/go-pinecone.git | ||
``` | ||
|
||
Generate code: `make gen` | ||
|
||
Run tests: `make test` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.