GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - shxntanu/lesa: 📚 Turn your terminal into a File Interpreter

BranchesTags
Open more actions menu

Latest commit

 

History

109 Commits
109 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.vscode
.vscode
 
 
assets
assets
 
 
lesa
lesa
 
 
scripts
scripts
 
 
.gitignore
.gitignore
 
 
.pre-commit-config.yaml
.pre-commit-config.yaml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
poetry.lock
poetry.lock
 
 
pyproject.toml
pyproject.toml
 
 

Repository files navigation

Banner

Python PyPI - Version PyPI Downloads

lesa [lee - saa] • Old Norse
(v.) 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!

Usage

To start a conversation with a document (.pdf and .docx for now), simply run:

lesa read path/to/your/document --page <page_number> (optional)

Or start a conversation with an already-embedded directory, run:

lesa chat

Embed

To embed all files from your current working directory, run:

lesa embed

This creates a .lesa config folder in your current working directory that stores the embeddings of all the documents in the directory.

Setup

lesa uses Ollama under the hood to utilize the power of large language models. To install and setup Ollama, run the setup script setup-ollama.sh.

curl -fsSL https://raw.githubusercontent.com/shxntanu/lesa/master/scripts/setup-ollama.sh | bash

This script automatically installs the Ollama CLI and pulls the default model (llama3.1:latest) for you. Then install the package using pip.

Installation

Simply install the package using pip:

pip install lesa

To upgrade to the latest version, run:

pip install -U lesa

Contribute

We welcome contributions! If you'd like to improve lesa or have any feedback, feel free to open an issue or submit a pull request.

Credits

  1. Typer and Rich: CLI library and terminal formatting.
  2. Ollama: On-device language model inference.
  3. Langchain: Pipeline for language model inference.
  4. FAISS: Similarity Search and Vector Store library from Meta AI.

License

Apache-2.0

About

📚 Turn your terminal into a File Interpreter

pypi.org/project/lesa/

Topics

document-chatollamapython

Resources

Readme
Apache-2.0 license
Activity

Stars

4 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.