Skip to content

Instantly share code, notes, and snippets.

@peterzhang41
Last active April 6, 2025 01:34
Show Gist options
  • Save peterzhang41/2186ff7b141dcc301fb03fa762b61ab6 to your computer and use it in GitHub Desktop.
Save peterzhang41/2186ff7b141dcc301fb03fa762b61ab6 to your computer and use it in GitHub Desktop.
syntax = "proto3";
package citrusad.gembed;
option java_multiple_files = true;
option java_package = "com.citrusad.gembed";
option java_outer_classname = "gembedProto";
option go_package = "github.com/citrus-international/commons/proto/gembed";
service EmbeddingService {
rpc GetEmbedding (EmbeddingRequest) returns (EmbeddingResponse);
}
message EmbeddingRequest {
repeated string words = 1;
}
message EmbeddingResponse {
repeated Embedding embeddings = 1;
}
message Embedding {
repeated double vector = 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment