Metadata-Version: 2.1
Name: lesa
Version: 0.1.0.3
Summary: A CLI tool to converse with any document locally using Ollama.
Home-page: https://github.com/shxntanu/lesa
License: Apache-2.0
Keywords: lesa,rag pipeline,document chatbot
Author: Shantanu Wable
Author-email: shantanuwable2003@gmail.com
Requires-Python: >=3.10.14,<4.0.0
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: MacOS
Classifier: Operating System :: Unix
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: chroma-haystack (>=1.0.0,<2.0.0)
Requires-Dist: chromadb (>=0.5.21,<0.6.0)
Requires-Dist: haystack-ai (>=2.7.0,<3.0.0)
Requires-Dist: markdown-it-py (>=3.0.0,<4.0.0)
Requires-Dist: mdit-plain (>=1.0.1,<2.0.0)
Requires-Dist: ollama (>=0.4.2,<0.5.0)
Requires-Dist: ollama-haystack (>=2.1.0,<3.0.0)
Requires-Dist: pandas (>=2.2.3,<3.0.0)
Requires-Dist: platformdirs (>=4.3.6,<5.0.0)
Requires-Dist: psutil (>=6.1.0,<7.0.0)
Requires-Dist: pypdf (>=5.1.0,<6.0.0)
Requires-Dist: pypdf2 (>=3.0.1,<4.0.0)
Requires-Dist: python-docx (>=1.1.2,<2.0.0)
Requires-Dist: requests (>=2.32.3,<3.0.0)
Requires-Dist: rich (>=13.9.4,<14.0.0)
Requires-Dist: sentence-transformers (>=3.3.1,<4.0.0)
Requires-Dist: six (>=1.16.0,<2.0.0)
Requires-Dist: torch (>=2.5.1,<3.0.0)
Requires-Dist: typer (>=0.14.0,<0.15.0)
Project-URL: Repository, https://github.com/shxntanu/lesa
Description-Content-Type: text/markdown

![Banner](assets/banner.png)

> _lesa_ (verb) - to read, to study, to learn

**_lesa_** is a CLI tool built in Python that allows you to converse with your documents from the terminal, completely offline and on-device using **Ollama**. Open the terminal in the directory of your choice and start a conversation with any document!

<div align="center">

[![Python](https://img.shields.io/badge/python-3.10%2B-blue)](https://www.python.org/downloads/)
[![PyPI version](https://badge.fury.io/py/lesa.svg)](https://badge.fury.io/py/lesa)
![PyPI Downloads](https://static.pepy.tech/badge/lesa)

</div>

## Setup

### Prerequisites

This project uses [Ollama](https://ollama.com/) under the hood to utilize the power of large language models. To install Ollama, run:

```bash
curl -fsSL https://ollama.com/install.sh | sh
```

We recommend the Llama 3.1 8b or Qwen 4b model for the same. You can use any other model as well, just make sure it has enough context window to understand the content of your documents.

Pull Llama or Qwen using:

```bash
ollama pull qwen:4b
```

or

```bash
ollama pull llama3.1
```

### Installation

Simply install the package using pip:

```bash
pip install lesa
```

