Skip to content

Let llama3 performs web searches and retrieves information using searXNG

License

Notifications You must be signed in to change notification settings

GaryKu0/ollama-web-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

🔍Ollama Web Search

A chatbot that performs web searches and retrieves information based on user queries.

Features

  • Generates precise search queries from user questions.
  • Retrieves top web search results.
  • Extracts and displays relevant information from chosen web pages.
  • Supports streaming responses for real-time feedback.

Requirements

  • Python 3.x
  • ollama library
  • requests library

Installation

1. Clone the repository:

git clone https://github.com/garyku0/ollama-web-search.git
cd ollama-web-search
    

2. Install the required libraries:

pip install ollama requests
    

Usage

Run the chatbot:

python main.py
    

Enter your query when prompted, and the chatbot will provide web search results and retrieve information from the selected result.

Configuration

Before running the chatbot, set your SearxNG instance URL in the BrowseWeb function:

EngineURL = "https://YOUR-SEARXNG-INSTANCE/search?q={query}&format=json".format(query=query)
    

You can find a list of SearxNG instances here or search for "SearxNG instances" online.

Contributing

Feel free to open issues or submit pull requests for any enhancements or bug fixes.

License

This project is licensed under the MIT License.

About

Let llama3 performs web searches and retrieves information using searXNG

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages