RAG (Retrieval-Augmented Generation) system over Brazilian federal legislation.
Built with Laravel 11 + PostgreSQL/pgvector + OpenAI.
Status: 🚧 Active development. Currently in prototype phase.
- Ingestion — PDF/text → chunks → embeddings → pgvector
- Retrieval — query → embedding → similarity search
- Generation — context + question → LLM → answer with sources
- Laravel 11 (PHP 8.3)
- PostgreSQL + pgvector
- OpenAI API (text-embedding-3-small + gpt-4o-mini)
- Docker
- RAG prototype working in Python notebook
- Laravel API structure
- Ingestion pipeline
- Query endpoint
- OpenAPI documentation
MIT