Skip to content

Ollama tools for chat, rag, search and visualization of docs and notes

Notifications You must be signed in to change notification settings

RyanGreenup/ai-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Ollama tools for chat, rag, search and visualization of docs and notes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages