Git Product home page Git Product logo

gpt-4-web-browsing's Introduction

GPT-4 Enhanced with Real-Time Web Browsing

Languages / 语言: English | δΈ­ζ–‡

GPT-4's extensive knowledge base covers a wide range of topics but is limited to historical data. To address this, we've integrated web browsing into GPT-4, connecting its advanced language processing to the internet. πŸ”—

This upgrade enables access to the latest information, enhancing the model's relevance and efficiency in real-time data retrieval, and is much faster than web-browsing on the GPT web page.

You may consider this as a tiny implementation of the new Bing and Bard, primarily for search engines and Q&A.

Please give me a star if you like it! 🌟

Features

  • Rapid real-time web search through Serper (Google API)

  • Automatically adjusts web search and response language based on input

  • Multi-threading to extract main content from web pages, reducing embedding costs

  • Semantic search with OpenAI Embedding and ChromaDB

  • LLM responses generated with references and web sources

  • Supports customization of models, AI roles, and output formats

  • Matches each quoted sentence in the AI’s response to the title, snippet, and link of the source website

Architecture

Project Architecture

Demo

Screen.Recording.2023-11-24.mp4

Getting Started

Prerequisites

To run main.py or llm_answer.py, you'll need:

  • Stable connection to OpenAI (may be instability in China)
  • Python 3.11.5 (not necessarily the same)
  • Serper API Key
    • Serper: 2,500 free queries (very adequate and fast)
  • OpenAI API Key
    • OpenAI: First $5 is free (GPT-3.5-turbo-16k recommended)

Installation

  1. Install the required packages (consider adding -i https://pypi.tuna.tsinghua.edu.cn/simple in China):
pip install -r requirements.txt
  1. Save your API Keys in config.yaml

  2. run main.py or llm_answer.py, where you can change the query

License

This project is licensed under the MIT License.

gpt-4-web-browsing's People

Contributors

wilson-zhelin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.