# Project Search Service ## Deskripsi Natural language search untuk file project di NAS via Ollama (LLM) dan PostgreSQL vector index. **Status:** Diimplementasi sebagian. Endpoint tersedia tapi index NAS belum aktif di production. ## Dependency - Ollama: `http://10.100.1.26:11434` (VM aiopr) - Model chat: `qwen2.5:7b` - Model embed: `nomic-embed-text` - PostgreSQL Project Search: `geonet_project_search` (10.100.1.25) ## Endpoint | Method | Path | Scope | Deskripsi | |--------|------|-------|-----------| | GET | `/project-search/sources` | `project-search:read` | Daftar sumber data | | GET | `/project-search/index/status` | `project-search:read` | Status indeks per source | | POST | `/project-search/ask` | `project-search:read` | Query natural language | ## Rate Limit `POST /project-search/ask`: 20 request / menit ## Contoh Request ```bash # Query curl -s -X POST https://console.gisportal.id/api/v1/project-search/ask \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{"query": "Laporan survey jalan tol 2025", "sources": ["project"]}' ``` ## Changelog | Tanggal | Perubahan | |---------|-----------| | 2026-06-23 | README dibuat |