Skip to content

Setup

Requirements

  • Python 3.10 or newer
  • Ollama running locally

Install Ollama on Linux

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

Pull the default models:

ollama pull embeddinggemma
ollama pull gemma3:4b

Install using pip

pip install pyaistack

Verify the installation

python -c "from pyaistack import RAG; print(RAG().document_count)"

The command prints 0 for a new in-memory index.