ElonMask
TTCTheo's Typesafe Cult
•Created by ElonMask on 4/3/2024 in #questions
ai prompting doubt
so i have this requirement to get the ai to reply to 3 of my questions.
eg:
"x is something.. 1. what is x, 2. where is x, 3. who is x"
and i want the ai to stream the data, and id be passing each of these values as props to a component.
obviously json wont work w. streaming. so i updated the query for the ai to include a delimiter like "||" after each qn.
so ijust split the string by the delimiter and pass the data. but often times it misses this, and the data appears mixed. any suggestions?
also often times it does the: "sure i can answer your question" kinda messages at the beginning, how do i get the ai to not yap?
would appreciate any actually useful prompt engineering guide/vids if u guys know. thanks
4 replies
TTCTheo's Typesafe Cult
•Created by ElonMask on 2/15/2024 in #questions
using prisma along with drizzle/kysley
Prob dumb, but would i face any issues if i use both prisma and kysley/drizzle in the same app. (I wont run out of connections or anything right?).
Also assuming single prisma schema would serve for both, cba to maintain multiple schemas.
(Reason is so that i can use vercel edge runtime)
13 replies
TTCTheo's Typesafe Cult
•Created by ElonMask on 11/18/2022 in #questions
planetscale-prisma issue
any prisma-planetscale users in here?
im trynna create a new db and populate the data. (its pretty long) - like 10k links long
but im getting a (i believe) timeout error from planetscales side. The code runs fine, im able to see like 200 - 300 entries, the data until the error occures.
heres the error message im getting
also ps, i didnt set any shadow db (cause of which i could do the migrate dev command), idk what that is, but it seemed to work when i created a single entry.
i tried doing the same task using postgres on railway, i ended up getting "too many clients error"
1 replies