Skip to main content

TLDR AI CLI Tool

PyPI version License

Overview

TLDR AI CLI Tool is a command-line interface (CLI) designed to provide quick and efficient solutions to complex queries using Large Language Models (LLMs). The tool integrates various AI models to fetch, process, and summarize information from sources like Stack Overflow.

The TLDR AI CLI Tool is inspired by howdoi. Unlike howdoi, this tool leverages the power of LLMs and can even work offline if Stack Overflow is not used.

Features

  • Summarizes complex topics into concise, understandable summaries.
  • Fetches and processes Stack Overflow questions and answers.
  • Utilizes multiple LLMs, including Ollama and other transformers.
  • Configurable via YAML files.
  • Supports real-time response streaming.

Installation

Prerequisites

  • Python 3.8+
  • Ollama

Install Ollama

Ollama is required for some functionalities of this tool. Please install Ollama according to your operating system by following the instructions provided in their Documentation.

Install TLDR AI CLI Tool

You can install the TLDR AI CLI Tool via pip:

pip install tldrai

Usage

To use the tool, simply run:

tldrai apply function to pandas column

You can also override specific configuration settings using the --set argument:

tldrai apply function to pandas column --set summarization_pipeline.model=stable-code precision=float32 -v

CLI Options

  • question: The question or query to process.
  • --config: Path to the configuration file (default: config/config.yaml).
  • --set: Override configuration key-value pairs (e.g., key=value).
  • -v, --verbose: Output all logs verbose.
  • -s, --search: Search for similar quetions on Stack Overflow and feed it to the model as suggestions

Configuration

The TLDR AI CLI Tool is highly configurable. Configuration settings are managed through YAML files. Currently, the default configuration file used is config/ollama_stable_code.yml.

Forming questions

I found two distinct ways to form the questions, depending on if you use StackOverflow search or not:

  • Without searching StackOverflow I found it more useful to form a full sentence (omitting the 'how to' part), for example tldrai solve \'ModuleNotFound\' error
  • To search StackOverflow (using the -s or --search flag) it's better to form a question as if you wanted to google it, for example tldrai \'ModuleNotFound\' -s

The examples are simply for illustrative purpose only and sometimes the question can be formed in a way that simultaneously satisfies the both ways described above.

Contributing

We welcome contributions to the TLDR AI CLI Tool! If you have any suggestions or find any issues, please open an issue or subApache 2.0 a pull request on our GitHub repository.

License

This project is licensed under the Apache 2.0 License. See the LICENSE file for details.

Acknowledgements


Thank you for using TLDR AI CLI Tool. We hope it enhances your productivity and makes working with complex information easier and more efficient.

Metadata

Release files for tldrai 0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tldrai 0.2.5
File Size Uploaded
tldrai-0.2.5.tar.gz 15.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tldrai 0.2.5
File Interpreter ABI Platform
tldrai-0.2.5-py3-none-any.whl Python 3 none any Details

Total release size: 34.0 kB

Release files / tldrai-0.2.5.tar.gz

Download URL tldrai-0.2.5.tar.gz
Size 15.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d96c59a324354dff245350ab197ea321de20aba030f97b665cf706d628340bb3
BLAKE2b-256 checksum
How to use checksums
aa55fdc75865ccccc91232fe4923295bc7b1deb426248adf7003a298969dc7e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1025-azure

Release files / tldrai-0.2.5-py3-none-any.whl

Download URL tldrai-0.2.5-py3-none-any.whl
Size 18.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b2fcaf2820b30a169d1867b2f499916b0eecab4d9fa206bcf831c9ed111d4929
BLAKE2b-256 checksum
How to use checksums
225ca11b1607fb46caedaef6393c3686082ab7ccc55de1203d505593428811dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1025-azure

Release history Release notifications | RSS feed

This release

0.2.5 This release

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page