Giter VIP home page Giter VIP logo

promptspree's Introduction

Promptspree

Promptspree is an open-source project designed as a sandbox for experimenting generative AI technologies.

Current stack

image

promptspree's People

Contributors

fmaclen avatar

Stargazers

Ely Kahn avatar Pavel Rusakov avatar Huy-Cuong Nguyen avatar Nathanael Bonfim avatar Aleksandr Vasilenko avatar  avatar Roman avatar

Watchers

 avatar Kostas Georgiou avatar  avatar

Forkers

ravenrip

promptspree's Issues

Remove global scroll smoothing

Navigating between pages in mobile and having the smooth scrolling between page loads is less UX-friendly than just a straight "cut".

Assistant "notes" are repetitive

https://promptspree.com/article/idg16rwwb08n28g

User > World leader accidentally sends embarrassing message to entire country
AI > This article is purely fictional and is not based on any real-life events or individuals.

User > make it a bit longer, include realistic sounding names
AI > This article is purely fictional and is not based on any real-life events or individuals.

User > names are too generic, make them more realistic and/or unique
AI > This article is purely fictional and is not based on any real-life events or individuals.

User > make the message be something embarrassing, not "antagonistical"
AI > This article is purely fictional and is not based on any real-life events or individuals.

Display meaningful errors

  • Customize /500
  • Customize /404
  • Login: display form errors
  • Register: display form errors
  • Play: display form errors

Complete re-design

  • Exploration
  • High-fidelity comps of the views (Figma)
  • Component library (Figma)
  • Branding in progress...
  • Implementation

Disable all :hover states on mobile

When tapping on an element with a hover state on mobile it retains the :active/:focus state even after the page has loaded which looks weird.

There is no benefit of having a :hover state on touch-based interfaces so it's easier to remove them.

Change order of deploy script

Getting this error occasionally:

-> Downloading Pocketbase for linux (x64)
-> Unzipping Pocketbase
node:fs:599
  handleErrorFromBinding(ctx);
  ^

Error: ETXTBSY: text file is busy, open '/home/promptspree/pocketbase/pocketbase'
    at Object.openSync (node:fs:599:3)
    at Utils.writeFileTo (/home/promptspree/node_modules/adm-zip/util/utils.js:81:22)
    at /home/promptspree/node_modules/adm-zip/adm-zip.js:617:27
    at Array.forEach (<anonymous>)
    at Object.extractAllTo (/home/promptspree/node_modules/adm-zip/adm-zip.js:605:26)
    at downloadAndUnzipPocketbase (file:///home/promptspree/scripts/pocketbaseSetup.js:37:6)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  errno: -26,
  syscall: 'open',
  code: 'ETXTBSY',
  path: '/home/promptspree/pocketbase/pocketbase'
}

My best guess is it's because the binary is in use or something like that so to be safe, let's kill the process first, setup, then serve.

The front-end build process is much slower than restarting Pocketbase so we do the build part first.

# git pull
# front-end command

...

# Restart backend
pkill -f "./pocketbase serve APP_NAME=promptspree-backend"

# Install Pocketbase
npm run setup:pocketbase

# Serve Pocketbase
nohup bash -c "cd pocketbase/ && ./pocketbase serve APP_NAME=promptspree-backend" &

Send prompts through content moderation before completion

async function validatePrompt(prompt: string | undefined): Promise<PromptValidation> {
// Check that the prompt exists, is greater than 10 character and less than 280
if (!prompt) return { prompt: null, error: 'Prompt was not provided' };
if (prompt.length < 10) return { prompt, error: 'Prompt is too short' };
if (prompt.length > 290) return { prompt, error: 'Prompt is greater than 280 characters' };
// TODO: Check that prompt doesn't violete the moderation rules
return { prompt, error: null };
}

Corrupt JSON responses from AI completion

Need to figure out how to get a less error-prone completion, examples like the one below are fairly common.

Specifically the issue here is that there is an extra, after speak with us:

speak with us.\",\n],\n\"suggestions

Full example:

"SyntaxError: Unexpected token ] in JSON at position 1094 // {\n\"headline\":\"Time-Traveling Tourists Alter Historical Events\",\n\"category\":\"Science\",\n\"body\":[\n\"Reports are coming in that suggest that time-traveling tourists have been altering historical events. According to eyewitnesses, groups of tourists from the future have been appearing at key historical events and interacting with the people and surroundings, causing significant changes to the timeline.\",\n\"Some examples of these changes include a group of tourists who prevented the sinking of the Titanic, and another group who inadvertently caused the Great Fire of London by accidentally dropping a cigarette.\",\n\"Experts are warning that these changes could have profound effects on the future and that steps need to be taken to prevent further interference.\",\n\"Governments around the world are now considering measures to prevent time travel tourism, and some have even suggested that visitors from the future should be arrested and charged with historical vandalism.\",\n\"We reached out to a representative from the Time Travelers Association for comment, but they declined to speak with us.\",\n],\n\"suggestions\":[\n\"Add a quote from a time travel expert.\",\n\"Make it more outrageous by adding a celebrity time traveler.\",\n\"Add a list of the top 10 historical events that were changed by time travelers.\"\n]\n}"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.