Skip to content

embeddings_pb2_grpc

langroid/embedding_models/protoc/embeddings_pb2_grpc.py

Client and server classes corresponding to protobuf-defined services.

EmbeddingStub(channel)

Bases: object

Missing associated documentation comment in .proto file.

Parameters:

Name Type Description Default
channel

A grpc.Channel.

required
Source code in langroid/embedding_models/protoc/embeddings_pb2_grpc.py
def __init__(self, channel):
    """Constructor.

    Args:
        channel: A grpc.Channel.
    """
    self.Embed = channel.unary_unary(
        "/Embedding/Embed",
        request_serializer=embeddings__pb2.EmbeddingRequest.SerializeToString,
        response_deserializer=embeddings__pb2.BatchEmbeds.FromString,
    )

EmbeddingServicer

Bases: object

Missing associated documentation comment in .proto file.

Embed(request, context)

Missing associated documentation comment in .proto file.

Source code in langroid/embedding_models/protoc/embeddings_pb2_grpc.py
def Embed(self, request, context):
    """Missing associated documentation comment in .proto file."""
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details("Method not implemented!")
    raise NotImplementedError("Method not implemented!")

Embedding

Bases: object

Missing associated documentation comment in .proto file.