| title | Installation Guide | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| description | Complete installation guide for Vector Bot including all methods and troubleshooting | ||||||||
| audience | user | ||||||||
| level | beginner | ||||||||
| keywords |
|
||||||||
| related_docs |
|
This guide covers all methods to install Vector Bot and its prerequisites. Choose the method that works best for your setup.
Before installing Vector Bot, you need:
Vector Bot runs on:
- Windows 10/11 (x64)
- macOS 10.14+ (Intel and Apple Silicon)
- Linux (x64) - Ubuntu 18.04+, CentOS 7+, or equivalent
Vector Bot requires Ollama for AI models. Install it first:
Option A: Download from Website (Recommended)
- Visit ollama.ai
- Download the installer for your operating system
- Run the installer and follow instructions
Option B: Command Line Installation
macOS/Linux:
curl -fsSL https://ollama.ai/install.sh | shWindows (PowerShell):
iwr -useb https://ollama.ai/install.ps1 | iex# Check Ollama version
ollama --version
# Start Ollama server (if not already running)
ollama serveExpected output:
ollama version is 0.1.32
# Install a chat model (choose one)
ollama pull llama3.1 # Recommended: Good balance of speed and quality
ollama pull llama3.2 # Alternative: Latest model
ollama pull mistral # Alternative: Fast model
# Install embedding model (required)
ollama pull nomic-embed-textVerify models are installed:
ollama listExpected output:
NAME ID SIZE MODIFIED
llama3.1:latest 42182f0b3b60 4.7GB 2 weeks ago
nomic-embed-text:latest 0a109f422b47 274MB 2 weeks ago
Choose one of these installation methods:
Best for most users. Works on all platforms and includes automatic updates.
If you don't have Node.js:
- Visit nodejs.org
- Download and install the LTS version
- Verify installation:
node --version
npm --version# Install globally (recommended)
npm install -g @joshuaramirez/vector-bot
# Verify installation
vector-bot --version# Run directly without installation
npx @joshuaramirez/vector-bot --help
npx @joshuaramirez/vector-bot doctor# Update to latest version
npm update -g @joshuaramirez/vector-botBest for Python developers or when npm is not available.
Vector Bot requires Python 3.10 or later:
Check current version:
python --version
# or
python3 --versionIf you need to install Python:
- Windows: Download from python.org
- macOS:
brew install python(with Homebrew) or download from python.org - Linux:
sudo apt install python3 python3-pip(Ubuntu/Debian) or equivalent
# Install from PyPI
pip install vector-bot
# Verify installation
vector-bot --version# Update to latest version
pip install --upgrade vector-botBest for users who want a single file with no dependencies.
- Go to GitHub Releases
- Download the appropriate file for your system:
- Windows:
vector-bot.exe - macOS:
vector-bot-macos - Linux:
vector-bot-linux
- Windows:
Windows:
# Place in a permanent location
mkdir C:\Tools
move vector-bot.exe C:\Tools\
# Add to PATH (optional - makes it easier to use)
$env:PATH += ";C:\Tools"
# Test
C:\Tools\vector-bot.exe --versionmacOS/Linux:
# Make executable
chmod +x vector-bot-macos # or vector-bot-linux
# Place in a standard location (optional)
sudo mv vector-bot-macos /usr/local/bin/vector-bot
# Test
vector-bot --versionDownload the new version from GitHub releases and replace the old file.
Best for developers who want to contribute or modify the code.
- Python 3.10+
- Git
- Make (optional, for convenience)
# Clone the repository
git clone https://github.com/joshuaramirez/vector-bot.git
cd vector-bot
# Install in development mode
pip install -e .
# Or with development dependencies
pip install -e ".[dev]"
# Verify installation
vector-bot --version# Run tests
pytest tests/ -v
# Code quality checks
ruff check src/
mypy src/
# Build executable
python build_executable.pyAfter installing Vector Bot with any method, verify everything works:
# Check Vector Bot version
vector-bot --version
# Should output something like:
# Vector Bot v1.0.0# Check all components
vector-bot doctorExpected output:
✓ Ollama server is running at http://localhost:11434
✓ Chat model available: llama3.1
✓ Embedding model available: nomic-embed-text
✓ Configuration is valid
# Create test setup
mkdir test-docs
echo "This is a test document about Vector Bot installation." > test-docs/test.txt
# Index the test document
vector-bot ingest
# Ask a test question
vector-bot query "What is this document about?"Expected response: The AI should provide an answer about Vector Bot installation based on your test document.
PowerShell Execution Policy: If you get execution policy errors:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserPath Issues:
If vector-bot command isn't found:
- For npm install: Restart terminal after installation
- For executable: Add installation directory to PATH
- For pip: Ensure Python Scripts directory is in PATH
Windows Defender: If Windows Defender blocks the executable:
- Add an exclusion for the vector-bot.exe file
- Or right-click → Properties → Unblock
Permission Issues: If you get "developer cannot be verified" error:
- System Preferences → Security & Privacy → General
- Click "Allow Anyway" next to the blocked app message
Homebrew Users:
# Alternative Ollama installation
brew install ollama
# Start Ollama service
brew services start ollamaApple Silicon (M1/M2):
- All installation methods work on Apple Silicon
- Ollama includes optimized models for Apple Silicon
- Performance may be better than Intel Macs
Package Manager Dependencies:
# Ubuntu/Debian
sudo apt update
sudo apt install curl python3 python3-pip nodejs npm
# CentOS/RHEL/Fedora
sudo yum install curl python3 python3-pip nodejs npm
# Or with dnf
sudo dnf install curl python3 python3-pip nodejs npmPermissions: If you get permission errors:
# For executable installation
sudo chmod +x vector-bot-linux
sudo mv vector-bot-linux /usr/local/bin/vector-bot
# For pip installation
pip install --user vector-bot# Create a dedicated directory for Vector Bot work
mkdir ~/vector-bot-workspace
cd ~/vector-bot-workspace
# Create documents directory
mkdir docs
# Optional: Create environment file
cp .env.example .env # if installing from sourceCreate a .env file for custom settings:
# Create basic configuration file
cat > .env << EOF
# Documents directory
DOCS_DIR=./docs
# Index storage location
INDEX_DIR=./index_storage
# Ollama settings
OLLAMA_BASE_URL=http://localhost:11434
OLLAMA_CHAT_MODEL=llama3.1
OLLAMA_EMBED_MODEL=nomic-embed-text
# Query settings
SIMILARITY_TOP_K=4
EOFFor npm installation:
# Check if installed globally
npm list -g @joshuaramirez/vector-bot
# Reinstall if needed
npm install -g @joshuaramirez/vector-bot
# Check npm global bin directory
npm config get prefixFor pip installation:
# Check if installed
pip show vector-bot
# Check if Python scripts directory is in PATH
python -m site --user-baseFor executable:
- Ensure file is executable (
chmod +xon Unix) - Use full path to executable if PATH isn't set
# Check if Ollama is running
curl http://localhost:11434/api/tags
# If not running, start Ollama
ollama serve
# Check if on different port
ps aux | grep ollama # Unix
tasklist | findstr ollama # Windows# List installed models
ollama list
# Install required models
ollama pull llama3.1
ollama pull nomic-embed-text
# Verify models are available
ollama list# Check Python version
python --version
# Use specific Python version if needed
python3.10 -m pip install vector-bot
# Or use virtual environment
python -m venv vector-bot-env
source vector-bot-env/bin/activate # Unix
vector-bot-env\Scripts\activate # Windows
pip install vector-botIf you're still having issues:
- Run diagnosis:
vector-bot doctor --verbose - Check logs: Look for error messages in terminal output
- Verify requirements: Ensure all prerequisites are met
- Check documentation:
You can have multiple installation methods on the same system:
# Example: npm and pip installations
vector-bot --version # npm version
python -m rag.cli --version # pip version (if installed in development mode)To avoid conflicts, use only one method for regular use.
npm uninstall -g @joshuaramirez/vector-botpip uninstall vector-bot# Simply delete the executable file
rm /usr/local/bin/vector-bot # Unix
del C:\Tools\vector-bot.exe # Windowscd vector-bot-source-directory
pip uninstall vector-botAfter successful installation:
- Getting Started - Quick start guide
- Basic Configuration - Customize your setup
- Basic Usage - Learn the essential commands
Installation complete! You're now ready to start using Vector Bot for document querying and analysis.