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.
pipxu install "git+https://github.com/RyanGreenup/ai-tools"
source ~/.local/pipxu/venvs/ai-tools/bin/activate.fish
python -m nltk.downloader all
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 ${@:-}
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
- 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