Evalkeeper
    Preparing search index...

    Function prismaStore

    • An EvalStore on your Prisma client, using the models in schema/evalkeeper.prisma.

      Parameters

      Returns EvalStore

      import { prismaStore } from "@crowandraven/evalkeeper/prisma";
      const store = prismaStore(prisma);
      const runner = createRunner({ store, suites, models, promptVersion });
    • An EvalStore on your own eval tables, through a mapping (see PrismaStoreMap), for an app that had eval tables before Evalkeeper.

      Parameters

      • db: object

        Your Prisma client.

      • map: PrismaStoreMap

        Where your tables differ from Evalkeeper's.

      Returns EvalStore

      const store = prismaStore(prisma, {
      fields: {
      evalCaseLabel: { note: "rationale" },
      evalRun: { set: "split", startedBy: "startedById" },
      },
      });