GitHub Language Model Clients

GitHub issues GitHub forks GitHub stars GitHub license

This project is a collection of command-line clients for searching and retrieving answers to user questions using various language models and search engines.

Features

  • Query Google's search engine for answers to questions
  • Use OpenAI's GPT-3.5-turbo to generate answers based on the information found in search results
  • Interactive command-line interface for user input
  • Integrated with Bing's Chat, also known as Sydney, using the SydneyClient (https://github.com/vsakkas/sydney.py)
  • Provides the ability to run chat sessions in Russian language using Google's Bard chat (https://github.com/dsdanielpark/Bard-API)

Installation

Requirements

  • Python 3.10 or higher
  • Poetry for package management

Setup

  1. Clone the repository:
git clone https://github.com/kolommik/gh_llm_clients.git
  1. Navigate to the project directory:
cd gh_llm_clients
  1. Install dependencies using Poetry:
poetry install
  1. Activate the virtual environment:
poetry shell

Usage

To start the command-line client, run:

python src/searcher_console_app.py

Follow the prompts to enter your question and view the generated answers.

Testing

To run the tests using 'pytest', run the following command:

poetry run pytest