dust-tt / dust

Amplify your team's potential with customizable and secure AI assistants.
https://dust.tt
MIT License
952 stars 108 forks source link

Endpoint for Agent AutoComplete #1345

Closed spolu closed 1 year ago

spolu commented 1 year ago

Endpoint used to auto-complete agent mentions

URL https://dust.tt/w/[wId]/assistant/agents

philipperolet commented 1 year ago

we seem to already have a route [wId]/assistants/ (post, get all + assistants/[aI]) => I suggest using https://dust.tt/[wid]/assistants/autocomplete for route

philipperolet commented 1 year ago

Other topic on what to match (equally simple to implement with like/ilike) :

spolu commented 1 year ago

Agreed with prefix / insensitive

I think it's fine to have one route on top of the [aId] sub-routes next just supports it.

autocomplete is fine as well

philipperolet commented 1 year ago

lastly, following IRL discussion with Henry, no need to go sublter than like / ilike => even if no index, there will be very few rows so this should be fast enough

spolu commented 1 year ago

Let's add an index none the less. The sub-question is: would a normal index handle the case insensitive efficiently or not at all?