diff --git a/channel_provider.go b/channel_provider.go index cbd2661..d5fb63c 100644 --- a/channel_provider.go +++ b/channel_provider.go @@ -25,7 +25,8 @@ var errChannelProviderClosed = errors.New("channel provider is closed") // connection represents a gRPC client connection and all the clients (stubs) // for the various AVS services. It's main purpose to remove the need to create -// multiple clients for the same connection. +// multiple clients for the same connection. This follows the documented grpc +// best practice of reusing connections. type connection struct { grpcConn *grpc.ClientConn transactClient protos.TransactServiceClient diff --git a/client.go b/client.go index 316c851..0ce6446 100644 --- a/client.go +++ b/client.go @@ -232,8 +232,8 @@ func (c *Client) Upsert( // namespace (string): The namespace of the record to retrieve. // set (*string): The set within the namespace where the record resides. // key (any): The key of the record to retrieve. -// includeFields ([]string): Fields to include in the response. -// excludeFields ([]string): Fields to exclude from the response. +// includeFields ([]string): Fields to include in the response. Default is all. +// excludeFields ([]string): Fields to exclude from the response. Default is none. // // Returns: // @@ -498,8 +498,8 @@ func (c *Client) vectorSearch(ctx context.Context, // query ([]float32): The query vector. // limit (uint32): The maximum number of neighbors to return. // searchParams (*protos.HnswSearchParams): Extra options to configure the behavior of the HNSW algorithm. -// includeFields ([]string): Fields to include in the response. -// excludeFields ([]string): Fields to exclude from the response. +// includeFields ([]string): Fields to include in the response. Default is all. +// includeFields ([]string): Fields to include in the excludeFields ([]string): Fields to exclude from the response. Default is none.. Default is all. // // Returns: // @@ -542,8 +542,8 @@ func (c *Client) VectorSearchFloat32( // query ([]bool): The query vector. // limit (uint32): The maximum number of neighbors to return. // searchParams (*protos.HnswSearchParams): Extra options to configure the behavior of the HNSW algorithm. -// includeFields ([]string): Fields to include in the response. -// excludeFields ([]string): Fields to exclude from the response. +// includeFields ([]string): Fields to include in the response. Default is all. +// includeFields ([]string): Fields to include in the excludeFields ([]string): Fields to exclude from the response. Default is none.. Default is all. // // Returns: //