• Stars
    star
    164
  • Rank 230,032 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 1 year ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐ŸŒณ Connecting ChatGPT with the Internet

SearchGPT

SearchGPT

Connecting ChatGPT with the Internet



You want to try ChatGPT with Internet connectivity so that you can ask about events beyond 2021, but don't have access to AI-enabled Bing and don't want to wait for Google's Bard? SearchGPT gives you this functionality today - it crawls the Internet for information and then feeds it back to ChatGPT.

SearchGPT Demo

Usage

The easiest way to get started with search-gpt is to run the following:

export OPENAI_API_KEY=<REPLACE>
export GOOGLE_SEARCH_API_KEY=<REPLACE>
export GOOGLE_SEARCH_ID=<REPLACE>

npx search-gpt

Alternatively, you can also run:

npm install --global search-gpt

# Run SearchGPT with this command
searchgpt

Ensure you have your own Google Search API key, Programmable Search Engine and OpenAI API key before running the CLI.

Once the CLI starts, it will prompt you to enter a question. Simply type in your query, and the AI assistant will search the web and generate a response.

How it works

This is a proof of concept and is far from a proper implementation (e.g., Microsoft's Prometheus Model) - I wanted to experiment how easy it could be to crawl certain search engines and then feed these results into a large language model (LLM) such as GPT 3.5. Apart from querying Google Search, one could also think about integrating other APIs to crawl data and then feed it into the LLM.

flowchart LR
  A[User enters question] --> B[Search Google]
  A --> C[Search Twitter, not implemented yet]
  A --> D[Search other engines]
  B --> E[Search results handed to ChatGPT]
  E --> F[ChatGPT uses this context to provide an answer]

Please note: the current implementation feeds Google Search results to gpt-3.5-turbo and does not include previous messages in subsequent queries to avoid surpassing the token limit.

License

This project is licensed under the MIT license.

More Repositories

1

awesome-pokemon

๐ŸŽฎ A curated list of awesome Pokรฉmon & Pokรฉmon Go resources, tools and more.
594
star
2

awesome-WebAR

๐Ÿ“ฑ A curated list of awesome WebAR projects, resources, tools and more.
98
star
3

virtual-reality-tour

๐Ÿ“ Virtual reality travel in Google Street View.
CSS
40
star
4

awesome-visionOS

๐Ÿ•ถ๏ธ A curated list of awesome Vision Pro apps, SDKs, resources, tools and more.
37
star
5

awesome-stadia

๐ŸŽฎ A curated list of awesome Google Stadia projects, resources, tools and more.
22
star
6

git-push-pr

๐Ÿ“ค Git push and open pull request in your default browser (works for GitHub, GitLab and BitBucket)
JavaScript
10
star
7

patient-management-system

๐Ÿ’Š A patient management system developed in Java with Swing, using GitHub Actions, SonarCloud & Gradle.
Java
8
star
8

e-mart

๐Ÿ”จ Online Marketplace
CSS
7
star
9

day-calendar

๐Ÿ“† Simple calendar that renders a series of events.
JavaScript
5
star
10

msw-example-react-hackernews

Example React application showing how MSW can speed up your testing workflows
JavaScript
4
star
11

masterrc

๐Ÿ”ง Manage all your .dotfiles from one central .masterrc file
JavaScript
2
star
12

simple-java-programs

๐ŸŽจThese programs were developed at @UCL
Java
2
star
13

json-validator

JSON Lexer & Parser written in JFlex & CUP
Lex
1
star
14

harvard-student-organizations

๐ŸŽ“ Get Harvard student organizations
JavaScript
1
star
15

git-is-branch-protected-cli

๐Ÿ”’ CLI to check whether the current Git branch is protected (i.e. is main or develop)
JavaScript
1
star