This repository contains a web search agent that recreates the sophisticated browsing mode from ChatGPT's December 2023 release. The agent utilizes the OpenAI API and Bing Custom Search API to perform web searches and navigate through search results, providing a ChatGPT-like browsing experience for the Linux terminal or any Python environment.
WebBrowser
class to handle search, click, back, scroll, and quote_lines actionsgenerate_bing_queries_for_user_question
functionweb_search
function, including querying the model, processing search results, and navigating the browserBROWSING_MODE_PROMPT
) to guide the agent's behavior, emphasizing thoroughness, high effort, and synthesis of informationagents/
: Contains various agent scripts and related files
multi-llm-code-improver-2.sh
: Bash script for multi-LLM code improvement logicsearch/
: Directory for web search-related scriptsbing-custom-search-ai-agent.py
: The main web search agent scriptweb-search-query-resources.md
: Markdown document aggregating web search query resourcessql-agent/
: Directory for SQL-related scripts and filesgithub-issues.db
: SQLite database for GitHub issuessteampipe-example-md
: Example markdown on database utilizationnyxt/
: Contains Nyxt browser configuration and plugin files
config.lisp
: Nyxt's Lisp configuration filenyxt-browser-gh-issues-plugin.lisp
: Plugin for handling GitHub issues within Nyxt browsergroq-chat.py
: Python script demonstrating Groq API interaction for generating chat completionsget-buffer-text
Lisp function for retrieving buffer text content in Nyxt browsercmd-result
internal page for displaying command execution results in Nyxt browserbuf-text-to-pipe-cmd
command for executing shell commands with buffer text in Nyxt browsergh-selection-to-issue
command for creating GitHub issues using escaped selection text via a specified Python script