Member Junction
    Preparing search index...

    Client for running cluster analysis on the server through GraphQL.

    The heavy clustering / dimensionality-reduction / LLM-naming pipeline runs server-side (via @memberjunction/clustering-engine); this client is a thin, strongly-typed transport that sends the RunClusterAnalysis mutation and parses the JSON-string fields back into typed objects.

    Follows the same naming + construction convention as the other GraphQL clients in this package (GraphQLAIClient, GraphQLEncryptionClient, etc.).

    const clusterClient = new GraphQLClusterClient(graphQLProvider);
    const result = await clusterClient.RunClusterAnalysis({
    EntityName: 'Companies',
    Algorithm: 'kmeans',
    K: 5,
    Dimensions: 2,
    NameClusters: true,
    });
    if (result.Success) {
    console.log('Clusters:', result.Clusters);
    console.log('Points:', result.Points.length);
    } else {
    console.error(result.ErrorMessage);
    }
    Index

    Constructors

    Methods

    Constructors

    Methods