What is Nostr?
Leo Wandersleb
npub1gm7…8rf6
2024-11-16 20:26:06

Leo Wandersleb on Nostr: Sentiment analysis as bookmarklet. Yeah, that is fun! :D ...

Sentiment analysis as bookmarklet. Yeah, that is fun! :D



So what's going on here ... I load my timeline and click a bookmark which runs some far from perfect code but for me the key observations are: It's fast. It's somewhat useful in its results. It's probably quite cheap. ppq won't show me the price as it's less than 0.1ct or probably less than 0.05ct.

noStrudel unloads and loads a lot of stuff, forgetting past tagging so there are many aspects that need work but I'll keep that Bookmarktlet around to maybe improve it in the future.

For all the client devs but especially noStrudel hzrd149 (npub1ye5…knpr) please help me categorize posts with highly visible tags. It's impressive how easy that is now with for example ppq:

$ curl https://api.ppq.ai/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer sk-topSecretToken" -d '{"model": "gpt-4o-mini","messages": [{"role": "user", "content": "Classsify the following post on social media as one of trivia, technical, social interaction, cheap engagement or deep thought. Answer with just the classification: Splash of bourbon and wild honey in my iced coffee why not "}]}' | jq '.choices[0].message.content'
"Social interaction"
Author Public Key
npub1gm7tuvr9atc6u7q3gevjfeyfyvmrlul4y67k7u7hcxztz67ceexs078rf6