gnes.proto package

Module contents

class gnes.proto.RequestGenerator[source]

Bases: object

static index(data, batch_size=0, doc_type=1, doc_id_start=0, request_id_start=0, random_doc_id=False, *args, **kwargs)[source]
static query(query, top_k, request_id_start=0, doc_type=1, *args, **kwargs)[source]
static train(data, batch_size=0, doc_type=1, doc_id_start=0, request_id_start=0, random_doc_id=False, *args, **kwargs)[source]
gnes.proto.send_message(sock, msg, timeout=-1, squeeze_pb=False, **kwargs)[source]
Return type:None
gnes.proto.recv_message(sock, timeout=-1, check_version=False, **kwargs)[source]
Return type:Optional[Message]
gnes.proto.blob2array(blob)[source]

Convert a blob proto to an array.

Return type:ndarray
gnes.proto.array2blob(x)[source]

Converts a N-dimensional array to blob proto.

Return type:NdArray
gnes.proto.add_route(evlp, name, identity)[source]
gnes.proto.add_version(evlp)[source]