AllYourBot / hostedgpt

An open version of ChatGPT you can host anywhere or run locally.
MIT License
228 stars 92 forks source link

Basic text search of all past conversations (bonus over chatgpt) #56

Open krschacht opened 5 months ago

krschacht commented 5 months ago

A v1 of this could simply be an ILIKE query. But it would be really nice to support some fuzzy matching so people don't have to type a word exactly in order to find it in a past conversation.

Check out the pg_search gem to see if it can help? Someone suggested this.

Also, it's an open question as to where this lives in the UI. I think the basic approach would be a permanent text input below the list of assistants and above the list of conversations. As soon as you start typing and pause for more than X00 milliseconds then it executes a search and replaces the conversation list with the search results.

That's just some quick thinking off the top of my head.