HackerTrans
TopNewTrendsCommentsPastAskShowJobs

nicolewhite

no profile record

Submissions

Why is everyone pretending like prompts don't have schemas?

autoblocks.ai
11 points·by nicolewhite·há 2 anos·4 comments

comments

nicolewhite
·mês passado·discuss
The lockfile also handles the first-order dependencies, though. Pinning them in the manifest doesn't enforce this -- the lockfile does. And yes, I agree that the lockfile _also_ handles pinning dependencies-of-dependencies.
nicolewhite
·mês passado·discuss
From that repo:

> Exact version pinning — specifying precise versions (1.0.0, ==1.0.0, =1.0.0, = 5.31.0) rather than ranges (^, ~>, >=) in package manifests. Ranges allow any version satisfying the constraint to be resolved at install time; exact pins mean only one version is ever valid.

My understanding is that pinning the dependency within the manifest isn't the mechanism that prevents the version from changing across installs -- it's the lockfile that accomplishes this.
nicolewhite
·há 2 anos·discuss
> TRUNCATE TABLE <new_table> CASCADE;

Ouch. DELETE FROM <new_table> is what they wanted here.

Somewhat related, and this wouldn't have saved them since they were using TRUNCATE instead of DELETE, but I always use ON DELETE RESTRICT instead of ON DELETE CASCADE when setting up foreign keys. I'd rather be slightly inconvenienced on the rare occasion I'm hard-deleting data and have to be really explicit about what I want to delete rather than inadvertently allow a "convenience" like ON DELETE CASCADE to delete my data for me.
nicolewhite
·há 2 anos·discuss
I fixed by adding this to the theme:

    .c00 a:link {
        color: #bd93f9;
    }
nicolewhite
·há 2 anos·discuss
Hey all, I'm Nicole. I've been working on the prompt management platform at Autoblocks and I'm looking forward to getting your thoughts on our approach.

We basically think that prompt management boils down to a schema management problem. How do you enable UI-based prompt development for non-technical team members while not sacrificing on developer experience? How do you allow updates from a UI while guaranteeing the changes won't break your currently-running application?

Our solution was heavily influenced by these excellent tools we already use in day to day development:

* Dopt's versioning flows: https://docs.dopt.com/platform/versioning-flows/

* PlanetScale's safe migrations: https://planetscale.com/docs/concepts/safe-migrations

* Prisma's autogenerated, type-safe ORM: https://www.prisma.io/docs/orm/prisma-client/setup-and-confi...

Thanks in advance for any feedback!
nicolewhite
·há 2 anos·discuss
Pretty neat!

I have a question about how you intend to deal with LLM applications where the output is more creative, e.g. an app where the user input is something like "write me a story about X" and the LLM app is using a higher temperature to get more creative responses. In these cases I don't think it's possible to represent the ideal output as a single string -- it would need to be a more complicated schema, like a list of constraints for the output, e.g. that it contains certain substrings.

TIA!