Installation¶
This guide covers different methods to install Polymathy.
Prerequisites¶
Before installing Polymathy, ensure you have:
- Rust (1.70 or later) - Install Rust
- SearxNG instance - Either self-hosted or public
- Content processor service - For chunking and embeddings
Installation Methods¶
From Source (Recommended)¶
Clone and build from the source repository:
# Clone the repository
git clone https://github.com/skelfresearch/polymathy.git
cd polymathy
# Build in release mode
cargo build --release
# The binary will be at ./target/release/polymathy
As a Cargo Binary¶
Install directly using Cargo:
As a Library¶
Add Polymathy as a dependency in your Cargo.toml:
Verifying Installation¶
After installation, verify it works:
# If installed as binary
polymathy --version
# If built from source
./target/release/polymathy --version
Dependencies¶
Polymathy uses the following key dependencies:
| Dependency | Version | Purpose |
|---|---|---|
| actix-web | 4.0 | HTTP server framework |
| tokio | 1.38.2 | Async runtime |
| usearch | 2.12.0 | Vector similarity search |
| reqwest | 0.11 | HTTP client |
| serde | 1.0 | Serialization |
Next Steps¶
After installation, proceed to:
- Quick Start - Make your first request
- Configuration - Configure your environment