Chrome Extension: Combining Google Search and OpenAI API for Smarter Results

Chrome Extension: Combining Google Search and OpenAI API for Smarter Results

Introduction

This article talks about the growing need for intelligent applications and tools in the digital world and highlights OpenAI's API as a revolutionary tool for interacting with artificial intelligence. To make it easier for users to find specific answers related to AI, the article introduces a Chrome Extension for OpenAI API search that integrates the power of OpenAI's API with Google's search. The aim is to provide a one-stop-shop for all AI-related queries.

Chrome Extension

Created a Chrome Extension that utilizes the OpenAI API to obtain search results. Until now, we have relied solely on Google search to obtain the desired results. To obtain the best of both worlds, I have integrated the Chrome extension with the Google search page. This enables users to view both Google search results and OpenAI search results by simply clicking on the Chrome extension.

Try Google Search

Let's do some google search for example "Describe six effective yoga poses or stretches that are safe and excellent for people of all ages." We get some results.

No alt text provided for this image
Google Search

Chrome extension : For OpenAI API Search

How about somehow if we can insert Chrome extension within search page to enhance search capabilities.

No alt text provided for this image
Insert Chrome Extension to Google Search Page

Let's search on chrome extension by setting token = 150 and temperature to 0.7

No alt text provided for this image
Change Token and Temperature

Let's Edit and change token to 500 to get all 6 points in detail with scrolling

No alt text provided for this image
Change token to 500

Complete Demo

Quick demo of

  • How to insert or remove Chrome Extension in Google Search Page
  • Search with same prompt
  • Modify prompt by changing Search text, Token, Temperature, Option to use Stream

Conclusion

In this blog, we explored the OpenAI API and showed you how to use a Chrome Extension to get the most out of it. It's important to ask questions in the correct manner to get desired results. That's why it's said, if you know how to create prompts, AI will not replace you. It will exist because of you.

要查看或添加评论,请登录

社区洞察

其他会员也浏览了