Skip to content

Latest commit

 

History

History
104 lines (53 loc) · 3.9 KB

AI-SEARCH.md

File metadata and controls

104 lines (53 loc) · 3.9 KB

AI-Assisted Google Search

This bot supports searching google for answers to your questions with assistance from GPT! To get started, you need to get a Google Custom Search API key, and a Google Custom Search Engine ID. You can then define these as follows in your .env file:

GOOGLE_SEARCH_API_KEY="...."  
GOOGLE_SEARCH_ENGINE_ID="...."  

You first need to create a programmable search engine and get the search engine ID here.

Then you can get the API key, click the "Get a key" button on this page.

You can limit the max price that is charged for a single search request by setting MAX_SEARCH_PRICE in your .env file.

Step by Step Guide:

1. Go to the Programmable Search Engine docs to get a Search engine ID.

a. Click on "Control Panel" under "Defining a Programmable Engine in Control Panel"

b. Click to sign in(make a Google account if you do not have one):

image

2. Register yourself a new account/Login to the Control Panel

After logging in, you will be redirected to the Control Panel to create a new search engine:

image

3. Create a new search engine

Fill in a name, select to "Search the entire web" and hit "Create":

image

4. Copy your Search engine ID to your .env file

image

5. Go to custom-search docs to get a Google search API key

Click "Get a Key":

image

6. Name your project and agree to the Terms of Service

image

7. Copy your Google search API key to your .env file

image

8. Enable Cloud Vision API for image recognition

a. Navigate to the Google Cloud API console here.

b. Click on 'Create Project':

image

c. Give it a name and create it:

image

d. Now, navigate to the API Library:

image

e. Search for the 'Cloud Vision API' and enable it:

image

9. Enable Custom Search API for Google search

You can follow this link to quickly jump to the page to enable the custom search API. You may need to first selet the project you created before:

image

image