Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

556 B
Raw Blame
"""
Rate limiting specific exceptions for search engines.
"""


class RateLimitError(Exception):
    """Raised when a search engine hits rate limits."""

    def __init__(
        self, message: str = "Rate limit reached", *, retry_after=None
    ):
        super().__init__(message)
        self.retry_after = retry_after


class AdaptiveRetryError(Exception):
    """Raised when adaptive retry fails after all attempts."""

    pass


class RateLimitConfigError(Exception):
    """Raised when there's an issue with rate limit configuration."""

    pass