AI-powered search component for Docusaurus using Upstash Search.
docusaurus
. You can override it by setting the upstashSearchIndexName
option.
You can fetch your URL and read only token from Upstash Console. Make sure to use the read only token!
If you do not have a search database yet, you can create one from Upstash Console. Make sure to use Upstash generated embedding model.
.env
file with the following environment variables:
docs
directory by default. You can specify a different path using the DOCS_PATH
option.docusaurus
. You can override it by setting the UPSTASH_SEARCH_INDEX_NAME
option. Make sure the name you set while indexing matches with your themeConfig upstashSearchIndexName
option.