I’m going to show you how *incredibly easy* it is to add some AI-magic to the search bar in your sites & apps in 2025 using @typesense.
Say you’re building a cars site & you have a search bar on top. You have cars. Cars have attributes. You have well structured data like make, model, color, year, hp, mileage, etc. Cool.
Along comes a user & types this into your search bar:
“A black SUV with less than 30K miles in Houston for less than 20K”.
☠️🫣
If you’ve built any kind of search experience you probably know how hard it is to map free-form text like that to specific attributes in your dataset.
Like how do you know that 20K is talking about cost, and black is talking about the overall color and not the color of the seats, and then account for the zillion other ways your users can write the same query?
If you haven’t encountered this, let me tell you that it is HARD to use simple full-text search or even fancy semantic search or hybrid search to pull this off.
Traditionally you’d have to train and build what’s called intent detection ML models to do this well.
Ain’t nobody got time for that! 🤓
Enter @Typesense - an open source, cutting edge, light-weight alternative to Elasticsearch / Algolia.
As of v29.0, it now has a built-in feature that cleverly uses the magic of LLMs, to parse your users’ queries, and convert them automatically into a set of filters and sorts, and then executes that query and returns results.
So in our example “A black SUV with less than 30K miles in Houston for less than 20K” gets converted by Typesense automatically into this search query:
Notice how the free-form user query was correctly mapped to the attributes and values in our cars dataset under the hood.
It’s literally one API call to Typesense, to make this magic work:
The curl request will return results like this:
And you’d display those results in your UI.
That’s it. What used to take teams of ML experts, is now one API call away. No PhD required.
You now have an AI-powered search bar that’s ready for the most brazenly complicated user queries.
How about this one:
No problemo!
That get's translated to: 🪄
```
filter_by: "transmission_type:AUTOMATIC"
```
(Only 4 images per tweet, so only text for that one)
Even though `transmission_type` only has
- `Automatic` and
- `Manual`
across all records, Typesense is able to automatically convert the user’s intent in “I don’t know how to drive shift” to the fact that we should only show them vehicles with automatic transmission.
Easy-peasy.
Here’s a step-by-step guide on how to implement Natural Language Search in your own sites and apps:
https://t.co/KUgjTQ9weB
🥳 Closing out 2023 with our biggest release in a while! #Drupal Commerce 2.37 resolves 59 issues thanks to 40 contributors. 👏🏼
Even better: it introduces a new dashboard with navigation, sales reports, and a core inspired message feed for project updates. 👀
Happy new year! 💥
#Drupal Commerce merchants selling in the EU should prioritize the update to get the latest VAT rate changes. Full details on bugs smashed, features added, and maintenance issues addressed in the release notes.
🔗 https://t.co/oXgvMZ1JSL
https://t.co/OZ2v6lWl0v this also shows a massive performance increase with PHP 8.3. 50% for Drupal 10 and Laravel, 25% for Drupal 7 and Joomla and Symfony, 18% for WooCommerce, only 10% for WordPress (interesting).
⛔ As of November 26, PHP 8.0 is no longer supported, and PHP 8.1 is in security support mode.
🆙 Consider upgrading to PHP 8.2 or higher.
To read more about how to upgrade:
🔗 https://t.co/hsfZB20f7t
🔗 https://t.co/m1jRP6tp7o
🔗 https://t.co/GbijaAtFft
🥳 PHP 8.3 Released!
In this new release, we have:
⌨️ Typed Class Constants
🏛️ Dynamic Class Content Fetch
♻️ A New [#Override] Attribute
➕ …and more!
👓 Read all about it on: https://t.co/w5ziasljBK
🔗 https://t.co/lPQhZRU1qe
📦 https://t.co/VqsPMvqYvO
Drupal 10.1 was released last week, introducing an impressive array of new capabilities — the most I've seen in any minor Drupal release to date. I've already updated my personal site to take advantage of these improvements!
📧 New release: #Drupal Commerce Email 1.1 adds expanded token support and the ability to send emails in response to any order state transition. https://t.co/8qsK9popXM
Cool new #Drupal Commerce contrib from @valic, Commerce Promo Bar. Simplify the management of "promo bars" atop your website to fine tune special messaging to customers, including tokens from related promotions: https://t.co/N5JS2UVKca
Gave some much needed love to our commerceguys/authnet PHP library today to support Guzzle 7 which made a D10 compatible release of the #Drupal Commerce https://t.co/DlWkSmg1u3 module possible @CentarroHQ.
Finally got to trying out Commerce with D10 last week which resulted in many new Commerce contrib releases including Shipping, Pricelist, Avatax, Stripe & Braintree. Our project base Composer template now has a 10.x branch as well! #Drupal10
Thanks to 2129 contributors from 616 orgs resolving 4083 issues, Drupal 10.0.0 is available today! This new version sets Drupal up for continued stability and security for the longer term. All new features will be added to Drupal 10 going forward.
See https://t.co/uDfSUtdoil
🎉 PHP 8.2.0 has been released!
🐘 Find out all about it @ https://t.co/m7e5n8GPRe
📇 The full ChangeLog is at https://t.co/fYUaGUZj4X
💙 Thanks to everyone involved in this release.
⛔ As of today, PHP 7.4, and with that PHP 7 is no longer supported.
🆙 Please upgrade to PHP 8.0, or preferably the latest PHP 8.1 release, 8.1.13.
🆕 PHP 8.2 comes out on December 8th!