Skip to content

Installation

Prerequisites

  • Python 3.8 or higher
  • pip package manager

Basic Installation

# Clone the repository
git clone https://github.com/yourusername/complex-network-rag.git
cd complex-network-rag

# Install dependencies
pip install -r requirements.txt

# Optional: Install in development mode
pip install -e .

Verify Installation

# Check if CLI works
network-rag --version

# Run tests to ensure everything is working
pytest tests/ -v

Optional Dependencies

For Advanced Embeddings

# Sentence transformers (for better embeddings)
pip install sentence-transformers

# Ollama integration (for LLM embeddings)
pip install ollama

For Development

# Development dependencies
pip install pytest pytest-cov black flake8

# Documentation
pip install mkdocs mkdocs-material

Troubleshooting

ImportError: No module named 'src'

If you get this error, install the package in development mode:

pip install -e .

SQLite Version Too Old

Complex Network RAG requires SQLite 3.24+. Check your version:

python -c "import sqlite3; print(sqlite3.sqlite_version)"

If too old, upgrade Python or install a newer SQLite.

Next Steps