Advanced AI feature ? Is it feasible?

Hi all, is there any way to integrate an AI feature to my app in the following scenario?
Let’s say I have a list of books with authors, categories, page numb, age, publisher and so on…
Of course I can use filters to have an advanced search but what I’m looking for is something like an AI input text field where people can write a free text like “I’m looking for a fantasy book for a 12 year old boy with maximum 100 pages”… and then I will show results accordingly.

Is it possibile in Glide to have something similar ? (maybe using external tools?)

Thanks so much for your support!

That’s an interesting concept. I did something like this last year but I want it to be as precise as it can.

I feed the query to AI, tell it to generate a JavaScript function.

Then I pass that function to a JS column, and it should return true or false for every row in my database.

I show a filtered collection to the user based on that boolean.

It works most of the time, as long as your prompt is good.

Thanks Dinh.
Any other suggestion from all of you on how to achieve the goal ?

In addition to @ThinhDinh reply, you could try to use text to texts AI, that will generate a JSON array of string that you could use to search in your queries.

Does it make sense?