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.
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.