# ๐Ÿ”ฎ Sibilla > *L'oracolo AI che cerca nel web e risponde alle tue domande.* > Self-hosted Perplexity-like search engine. **Sibilla** รจ un motore di ricerca AI self-hosted che combina: - ๐Ÿง  **Google Gemini API** โ€” modelli linguistici avanzati con grounding su web search - ๐Ÿ”ง **MCP (Model Context Protocol)** โ€” tool use per estendere le capacitร  dell'AI - ๐Ÿ” **Web search integrata** โ€” ricerca e sintesi delle fonti in tempo reale - ๐Ÿ–ฅ๏ธ **Flask web app** โ€” interfaccia pulita e reattiva ``` Tu chiedi โ†’ Sibilla cerca nel web โ†’ Sintetizza le fonti โ†’ Ti risponde con citazioni ``` ## Architettura (pianificata) ``` sibilla/ โ”œโ”€โ”€ src/sibilla/ โ”‚ โ”œโ”€โ”€ app.py # Flask app factory โ”‚ โ”œโ”€โ”€ cli.py # Entry point โ”‚ โ”œโ”€โ”€ search.py # Web search + scraping โ”‚ โ”œโ”€โ”€ ai.py # Google Gemini API client โ”‚ โ”œโ”€โ”€ mcp.py # MCP tool integration โ”‚ โ””โ”€โ”€ prompts.py # Prompt templates โ”œโ”€โ”€ templates/ โ”‚ โ””โ”€โ”€ index.html # Interfaccia di ricerca โ”œโ”€โ”€ static/ โ”‚ โ”œโ”€โ”€ style.css # Stili โ”‚ โ””โ”€โ”€ app.js # Logica frontend โ””โ”€โ”€ tests/ โ””โ”€โ”€ ... ``` ## Setup ```bash cd sibilla python3 -m venv .venv source .venv/bin/activate pip install -e ".[dev]" ``` Crea un file `.env` con la tua API key Google: ``` GOOGLE_API_KEY=your-api-key-here ``` ## Uso ```bash # Avvia il server sibilla # Oppure python -m sibilla ``` Poi apri http://127.0.0.1:5000 nel browser. ## Sviluppo ```bash pip install -e ".[dev]" pytest ruff check src tests ``` ## Licenza MIT