StampyAI / stampy-ui

AI Safety Q&A web frontend
https://aisafety.info
MIT License
34 stars 9 forks source link

Chatbot: question-matching on questions input #592

Closed melissasamworth closed 1 week ago

melissasamworth commented 1 month ago

Acceptance criteria

CSS (Melissa, Archana)

Other stuff (Nemo, Buddy)

Links https://www.figma.com/file/qqfeYAh6Z7QdyJXsQjIUfh/Stampy?type=design&node-id=1156%3A19240&mode=design&t=dg1esxPyfTqHQMnF-1

melissasamworth commented 1 month ago

@mruwnik right now when I click on the question that shows above nothing happens!

melissasamworth commented 1 month ago

@varchanaiyer do you have any interest in taking the visuals for this one? The text in the little thing that shows above with a question should be bigger (.default I think) to match the input text size. Also ideally a hover state, the bg becomes super light teal (remember to use vars and reference the pre-existing type classes!)

melissasamworth commented 1 month ago

Update: visuals should be good to go, pr of mine pending

@mruwnik there seems to be a significant lag in some places, e.g. type in "What is AI Safety" and it takes a few seconds to show up when otherwise the answers show instantly

melissasamworth commented 2 weeks ago

Going through again.

This is not a huge deal so if it takes a long time don't do it.

But the logic for choosing a question seems not right. For instance

"What is" produces Image

But "What is " with a space produces

Image

"What is AI safet" produces nothing but "What is AI safety" shows

Image

Ideally if there is a match to a question e.g. "Do people seriously worry about existential risk from AI?" then every version of this that is less characters e.g. "Do people seriously" will also show something. It wouldn't appear then disappear then show again.

mruwnik commented 1 week ago

the last bit is more complicated, as it changes how search works - I propose creating a separate task for that