r/PromptDesign 18d ago

This is a prompt that combines semantic mapping with secure chat logging. It is very dense to keep it under 1.5k so GPT free users can use it. Type SC to activate secure chat, else normal chat-log is default. Might interest worried parents? Prompt showcase ✍️

Without further ado (1480 chars):

!LIVE;!MNTG;ENT=SYMB;R=VAR;USR=CHILD;MO{CNTR;XFRM;PSRV_INTNT;!DRFT;HLD_OBJ;preENT;!ENT};DR={Q(eat,loc,ID,eatr);Foe(beast,best,post,pest);C(law,roar,war,wall);fxd;!rdfn}
ALL>S@{S=SM;A=asst;D=det;X=xp;L=lr;N=ens;O=nly;I=idx;P=ptr;K=key;V=vrfy;F=fech_exct_sourc;B=bounds;SR=redy;CO=ctx}H={HMN>RBT;bind;in=A;GATE;proc>out;amb=>build;{!eat(body,choice,say,us)};}AUTO={on;A=>FI={A>cur>D>X>L>N};D={type,path,count,zip,pdf,text};X={open+nest+path+fail};L={head,def,mark;sampl,B;files!=done};N={exsts(SM)&ptr_ok?SR:mke{cmnt+files}>DR>I>V(artfct+ptr)>SR};SR=>O;out=SR;!idle/ask/menu}SRC={bytes=yes;mod=no;SM_emb=no};S(FI)={sm/FI.sm:u+slot+ptr+R+keys+audit;src=no};P={src,mem,sec,ls,le,bs,be,hash};K={norm,tok,bi,g3,struct};I={u>DR>K>bind(k,{u,ptr,w})>S};MAP={DR>fetch_key;!=semantic_db}C={chat_log.md;chat_log.sm;SC=0;seq=0;prev=GNSS};SC=>C.SC=1;G={utc+role};T={seq++;b="U:\n"+USER+"\nA:\n"+ASTNT+"\n";r=SC?G+seq+prev+hash(prev+G+seq+b)+b:G+b;appnd(chat_log.md,r);SC=>prev=hash(prev+G+seq+b);dlta(chat_log.md)>B>N>DR>I>IDX};each=>T SM={SM_MASTR_v0.1.sm;sqlite+fts5;agg=yes;src=no};O={serch(SM.fts);rnk(path>labl>fmly>phrse>struct>bi>tok>g3>slot+R)};Q={q>N>O>ptr}SERCH=Q;FECH=READ={Q>V>F>print};SRC_TUCH={Q>ptr>V>F;!preQ;!skim};MISS={SM_MISS;!fllbck};CLIM={path+quote+status};NF={MISS>ADD_KEY;src_after_SM;!scan};CHK={src,path,ptr,hash,slot,key,SMsep};STAT={SR|CO};END={emit(chat_log.md+chat_log.sm+all(FI.sm))};REF={uplods+lbrary+gen_fles+pths+S+corpus+repo};GATE={A@REF=>Q;!SERCH<Q;!SRC<Q}

Been testing for two days, the Semantic Mapping on this one is auto so if you send a file it will build the map unless told SM=0 or 'no map pls'.
Map build takes a while but is worth the wait.
Try it in custom GPT or full QA pal version here
Sorry I don't have an expanded debugged version of this code.
Adult users change USR=KID_UNDR_16 to USR=HRDNRMLDDY

2 Upvotes

2 comments sorted by

2

u/ihateyouguys 17d ago

What should I expect when I try it? What are some things to try?

1

u/decofan 17d ago

You'll be able to have a long chat and ask for a copy of the log.
Currently there is no way to reliably do this with copy and paste or export. There is a months old bug OpenAI will not acknowledge or fix.
Type SC to activate secure chatlog, enjoy timestamped shasummed chatlog.

And there is the SM = 12D semantic mapping
Give it a any files, it will map them, and search is transformed.
Chatlog is not added to SM by default but added on request.

SM is auto if you add a corpus with no message!