Skip to content

How to utilize Google API

Dilyara Zharikova (Baymurzina) edited this page Jun 5, 2023 · 1 revision

How to utilize Google API to generate responses

You may utilize (LangChain Google API Skill)[https://github.com/deeppavlov/dream/blob/main/components/VJ7c3sLqEi.yml] to generate hypotheses via Google API. For this, you should provide GOOGLE_API_KEY and GOOGLE_CSE_ID in dream/.env_secret.

How To Get GOOGLE_CSE_ID and GOOGLE_API_KEY

  1. Create a new project at https://console.developers.google.com/apis/dashboard.

  2. Create a new API key at https://console.developers.google.com/apis/credentials.

  3. Enable the Custom Search API at https://console.developers.google.com/apis/library/customsearch.googleapis.com.

  4. Create a new Custom Search Engine at https://cse.google.com/cse/all.

  5. Add your API Key and your Custom Search Engine ID to your .env_secret file.