// NewFaissClient creates a new gRPC client
NewFaissClient creates a new gRPC client
// NewFaissClient creates a new gRPC client
func NewFaissClient(addr string, port int) (uc.Ann, error) {
	servingAddress := addr + ":" + strconv.Itoa(port)
	conn, err := grpc.Dial(servingAddress, grpc.WithInsecure())
	if err != nil {
		log.Fatalf("Cannot connect to the grpc server: %v\n", err)
	}
	client := NewFaissServiceClient(conn)
	return Faiss{client: client}, nil
}
func NewFaissClient ( addr string , port int ) ( uc . Ann , error ) { servingAddress := addr + " " + strconv . Itoa ( port ) conn , err := grpc . Dial ( servingAddress , grpc . WithInsecure ( ) ) if err != nil { log . Fatalf ( " \n " , err ) } client := NewFaissServiceClient ( conn ) return Faiss { client : client } , nil }
NewFaissClient creates a new gRPC client
NewFaissClient creates a new gRPC client