StampyAI / stampy-ui

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

Feature request: Searching Stampy directly from a browser's search bar #277

Open LeMurphant opened 12 months ago

LeMurphant commented 12 months ago

It would be nice to have a url for direct search of aisafety.info in my browser's search bar with something like this https://arxiv.org/search?query=%s

Ccstan pointed out that this works, but the UI isn't great and links are not clickable https://nlp.stampy.ai/api/search?query=agi

I believe it would mostly be used by content writers, but could be a nice touch.

mruwnik commented 6 months ago

can already be done, e.g. here

LeMurphant commented 6 months ago

@mruwnik Seems to work quite well in production. I tried it for the QA interface at https://nlp.stampy.ai/ and it did not seem to work, is this functionality something that can reasonably easily be ported to the QA interface to allow searching for in-progress articles?

mruwnik commented 6 months ago

would you prefer for it to work on nlp.stampy.ai, or for aisafety.info to have a flag that allows searching for in progress articles? Or both? :D

LeMurphant commented 6 months ago

Either would do. If we do it on aisafety.info we just want to make sure people don't stumble on it inadvertently

LeMurphant commented 1 week ago

@mruwnik this seems broken with the new site. Then again, without something like https://github.com/StampyAI/stampy-ui/issues/571 I'm not sure how you would fix it as I'm not sure what page https://aisafety.info/?q=existential should return. How about the first result by default as a quick fix?

mruwnik commented 1 week ago

first result with the search bar prepopulated and results shown, or just the first result?

LeMurphant commented 1 week ago

I'd weakly favour the former if it's something that can be done while keeping navigation smooth.