Description
AI Search for WordPress enhances the search experience by:
– Replacing the default WordPress search with an AI-powered intelligent search system.
– Generating embeddings for posts using OpenAI’s text-embedding-ada-002
model.
– Contextualizing search queries for better relevance and precision.
– Ranking posts based on similarity using cosine similarity metrics.
Features
- Intelligent Search: Enhances default search functionality with AI-powered context inference.
- Embeddings Table: Stores AI-generated embeddings for all posts in the database.
- Admin Settings: Easily configure the plugin via the WordPress admin panel.
- Seamless Integration: Automatically updates embeddings when posts are saved or updated.
- Cached results for better performance
Usage
- Simply use the default WordPress search, and AI Search will enhance it.
- Manage your OpenAI API key and plugin settings via the Settings > AI Search menu.
External Service
This plugin connects with Completions API from Open AI to get the embedding of the products. It also connects to the Embeddings endpoint.
Please read more here:
https://platform.openai.com/docs/guides/completions
https://platform.openai.com/docs/guides/embeddings
Installation
- Upload the plugin folder to the
/wp-content/plugins/
directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- Go to Settings > AI Search to configure your OpenAI API key.
- Enjoy smarter search functionality on your site!
FAQ
-
What is required to use AI Search for WordPress?
-
You need an OpenAI API key to use this plugin. You can get one from the OpenAI website.
-
How does this plugin work?
-
The plugin uses OpenAI’s
text-embedding-ada-002
model to generate embeddings for your posts. When users search, it matches the query embedding with post embeddings in the database for more relevant results. -
What happens if the OpenAI API fails?
-
The plugin handles API errors by logging them and reverting to the default search query.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“AI Search” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “AI Search” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.2
- Cache Search embeddings, saved in transients for one day
1.1
- text-davinci-003 (deprecated) has been replaced bytext-embedding-ada-002 model
- db manipulation has been replaced by custom_post_meta approach
1.0
- Initial release, adding the settings page and the search filter.