continue icon indicating copy to clipboard operation
continue copied to clipboard

Google Programmable Search Context Provider

Open samoils opened this issue 1 year ago • 2 comments

Validations

  • [X] I believe this is a way to improve. I'll try to join the Continue Discord for questions
  • [X] I'm not able to find an open issue that requests the same enhancement

Problem

It's possible to create a free personal API key to conduct Google searches without using a third party through Google Programmable Search. This would provide one less party that information needs to pass through and improve data privacy.

Solution

A free personal API key can be generated through the Google Programmable Search website that could be used for a search context - https://programmablesearchengine.google.com/about/

The MindMac app has this functionality available so it should be possible to integrate here as well.

samoils avatar Apr 24 '24 05:04 samoils

@samoils We have something similar to this with the GoogleContextProvider, except it just uses the Serper API (I find it a bit easier to obtain an API key from them than Google). Curious if this is the kind of thing you're looking for? https://github.com/continuedev/continue/blob/main/core/context/providers/GoogleContextProvider.ts

sestinj avatar Apr 24 '24 07:04 sestinj

I did see that, it's very close to what I was looking for but if possible it would be nice to not have to rely on a third party provider. Setting up an API key for Google was pretty straightforward and includes a pretty reasonable amount of free queries: https://docs.mindmac.app/how-to.../internet-browsing/get-google-search-key

samoils avatar Apr 24 '24 15:04 samoils