To use the search engine capabilities of Devika, you need to set up the search engine API keys. Currently, Devika supports Bing, Google and DuckDuckGo search engines. If you want to use duckduckgo, you don't need to set up any API keys.
For Bing and Google search engines, you need to set up the API keys. Here's how you can do it:
- Create Azure account. You can create a free account here.
- Go to the Bing Search API website.
- click on the
Try now
button. - Sign in/sign up with your Azure account.
- Create a new resource group (if you don't have any).
- click on the
Review and create
button. - if everything is fine, click on the
Create
button. - Once the resource is created, go to the
Keys and Endpoint
tab. - Copy either
Key1
orKey2
and paste it into theAPI_KEYS
field with the nameBING
in theconfig.toml
file located in the root directory of Devika, or you can set it via the UI. - Copy the
Endpoint
and paste it into theAPI_Endpoints
field with the nameBING
in theconfig.toml
file located in the root directory of Devika, or you can set it via the UI.
- if don't have then create GCP account Google Cloud Console.
- visit Here is the official documentation.
- click on
Get a Key
. - select the project you have or create a new project. click on next.
- it enable the Custom Search API for the project and create the API key.
- Copy the API key and paste it in the API_KEYS field with the name
GOOGLE_SEARCH
in theconfig.toml
file in the root directory of Devika or you can set it via UI. - for the search engine id, go to the Google Custom Search Engine website.
- click on the
Add
button. - After creating the engine. Copy the
Search Engine ID
and paste it in the API_Endpoints field with the nameGOOGLE_SEARCH_ENGINE_ID
in theconfig.toml
file in the root directory of Devika or you can set it via UI.