The ability to get AI-based results from the quick search has been present from the moment I enabled the "AI embeddings semantic search" feature five days ago. I just didn't realize it was working until I happened to perform a search that only returned a couple of keyword-based results a few hours ago.
I thought I should add a post mentioning the existence of this capability, since my previous communications indicating the AI-based results were only available from the advanced search page had resulted in discussion here.
The reason is that your query produces enough keyword-based results to fully populate the quick search dropdown.
Try running this query from the quick search field:
"The procedure entry point GetPackageFamilyName could not be located KERNEL32.dll"
The query only returns three keyword-based results, so the AI-based results are also shown in the quick search dropdown.
Where it now claims "*AI" this type of search method has been in use for decades. A thesaurus is used to find synonyms and these are used to enhance the search phrase.
I understand that, and your complaint that the forum's keyword search does not take the "fuzzy" search approach used by other search engines like Google for many years prior to the AI era. However, the "AI embeddings semantic search" feature of the Discourse platform does truly use AI.
It is actually pretty interesting how it works:
An embedding model creates a numerical representation of the semantic meaning of every forum post. This information is stored in the forum database (meaning each post only has to be processed once, rather than redundantly for each search query).
An LLM is used to generate a hypothetical post from the search query. In the case of the query you ran:
arduino restarts 2 times when a new sketch is loaded
This is the hypothetical post that was generated:
Hey everyone, I'm running into a strange issue with my Arduino Uno. Every time I upload a sketch, the board seems to restart twice before actually running the code. The first reset happens as expected when the bootloader jumps to the application, but then it resets again a second later.
I've tried:
- Disconnecting all peripherals
- Using different USB ports/cables
- Re-installing the Arduino IDE
Has anyone else experienced this double-reset behavior? Is it related to the auto-reset circuit or maybe a memory leak in my
setup()function causing a watchdog reset? Any advice would be appreciated!
The same system used to generate embeddings for the real forum posts is then used to make an embedding for that hypothetical post. This process is called "Hypothetical Document Embeddings (HyDE)".
The embedding of the hypothetical post is then compared against the embeddings in the forum database, and the posts with embeddings having the highest "nearest-neighbor similarity" to the HyDE are selected as the AI-based search results.
The post embeddings (but not HyDE) is also used to generate the "Related topics" list you see at the bottom of each forum topic.
