Skip to content

Latest commit

 

History

History
76 lines (56 loc) · 1.58 KB

README.md

File metadata and controls

76 lines (56 loc) · 1.58 KB

AI Tools

CLI in python that uses ollama to provide a basic workflow for search, chat, rag and visualization of docs and notes. I use this primarily for search and as an alternative to open-webui, so I don't have to leave my editor.

Read the documentation for more information.

Installation

pipxu

pipxu install "git+https://github.com/RyanGreenup/ai-tools"

source ~/.local/pipxu/venvs/ai-tools/bin/activate.fish
python -m nltk.downloader all

Poetry

Install with poetry:

git clone https://github.com/RyanGreenup/ai-tools
cd ai-tools
poetry install

# In the directory
poetry run src/main.py -n ~/Notes/slipbox live-search

# Anywhere
dir=$(pwd)
cd /tmp/
poetry run -C "${dir}" /home/ryan/.local/scripts/python/ai-tools/src/main.py  --help

Consider creating a script, e.g. =~/.local/bin/ait:

#!/bin/sh
dir="$HOME/.local/scripts/python/ai-tools/"
poetry run -C "${dir}" "${dir}"/src/main.py ${@:-}

Virtual environment

git clone https://github.com/RyanGreenup/ai-tools
cd ai-tools
python -m venv venv
source venv/bin/activate
pip install .
python src/main.py --help

Screenshots

CLI

Embedding Space

Semantic Search

TODO

  • Chat
  • RAG
  • Visualization
  • Search
    • Live Search
  • RAG generate Answers over question sets to generate answers
  • Question / Answer Generation
  • Documentation summaries using
    • Map Reduce
    • Semantic Space Clustering