Arize Phoenix TS
    Preparing search index...
    • Replace the full set of annotation configs assigned to a project.

      Configs in configIds that are not yet assigned are added, and assigned configs missing from configIds are removed. The annotation configs themselves are never deleted.

      Parameters

      Returns Promise<AnnotationConfig[]>

      The annotation configs assigned to the project after the update.

      HttpError when Phoenix rejects the request, e.g. with a 404 if the project does not exist or a 422 if any config ID is invalid or missing.

      Phoenix server >= 17.16.0

      import { setProjectAnnotationConfigs } from "@arizeai/phoenix-client/projects";

      await setProjectAnnotationConfigs({
      projectName: "support-bot",
      configIds: ["Q2F0ZWdvcmljYWxBbm5vdGF0aW9uQ29uZmlnOjE="],
      });

      // Clear every assignment
      await setProjectAnnotationConfigs({
      projectName: "support-bot",
      configIds: [],
      });