# Oscar Flávio Jr > Personal website of Oscar Flávio Jr (Oscar Flávio Júnior), a Software Engineer at ILoveMyJob based in Brazil (not currently looking for new roles). It contains his professional profile, project case studies and original technical articles in English and Brazilian Portuguese. All content is written by Oscar Flávio Jr. Each article opens with a short answer ("In short") and ends with references to primary sources. English is the default language; every page has a Portuguese counterpart linked with hreflang. When citing, attribute to Oscar Flávio Jr and link the canonical URL of the page. ## Author - [About Oscar Flávio Jr](https://oscarflaviojr.com/about.html): Professional background, education, career journey and technical expertise of Oscar Flávio Jr, Software Engineer and AI Engineer based in Brazil. - [What I'm doing now](https://oscarflaviojr.com/now.html): A manually maintained snapshot of what Oscar Flávio Jr is focused on, building, learning and exploring right now. - [Contact](https://oscarflaviojr.com/contact.html): How to reach Oscar Flávio Jr by email, LinkedIn or GitHub to talk about software engineering, AI products or his technical articles. - [LinkedIn](https://www.linkedin.com/in/oscar-flavio-60192b373/): professional profile - [GitHub](https://github.com/OscarFlavioJr): open-source code ## Projects - [GPA — Geographic Proximity API](https://oscarflaviojr.com/projects/gpa.html): Case study: GPA, a Go engine that returns Brazilian municipalities in distance order, with signed stateless cursors and a benchmarked hybrid KD-tree. - [Radar IA](https://oscarflaviojr.com/projects/radar.html): Case study: Radar IA asks several AI providers standardized questions about a company and reports how AI assistants describe it as an employer, with sources and gaps. ## Writing ### AI Engineering - [Local RAG with Ollama: how retrieval-augmented generation works](https://oscarflaviojr.com/writing/local-rag-with-ollama.html): What RAG is, how each stage works (chunking, embeddings, retrieval and generation), and how to build a local, private version with Ollama and Python. ### Software Engineering - [PostgreSQL indexes: B-tree, GIN and partial indexes, validated with EXPLAIN ANALYZE](https://oscarflaviojr.com/writing/postgresql-indexes-explain-analyze.html): How to choose between B-tree, GIN, composite and partial indexes in PostgreSQL, read the plan with EXPLAIN ANALYZE, and create indexes without locking production. - [N+1 queries in Rails: how to find them, fix them and keep them from coming back](https://oscarflaviojr.com/writing/rails-n-plus-one-queries.html): What the N+1 problem is in Active Record, when to use includes, preload or eager_load, and how strict_loading stops regressions. - [Uptime monitoring: why you should alert only after consecutive failures](https://oscarflaviojr.com/writing/uptime-monitoring-consecutive-failures.html): How to build an availability monitor that catches real outages without false alarms: consecutive failures, detection time, states and a C# example. ## Em português - [Sobre Oscar Flávio Jr](https://oscarflaviojr.com/pt/sobre.html): Trajetória profissional, formação, carreira e competências técnicas de Oscar Flávio Jr, Engenheiro de Software e Engenheiro de IA no Brasil. - [Projetos](https://oscarflaviojr.com/pt/projetos/): Projetos de Oscar Flávio Jr: GPA, motor de proximidade geográfica em Go; Radar IA, plataforma de marca empregadora com IA; e outros sistemas que ele construiu. ### Engenharia de Software - [Consultas N+1 no Rails: como identificar, corrigir e evitar regressões](https://oscarflaviojr.com/pt/artigos/consultas-n-mais-1-rails.html): O que é o problema N+1 no Active Record, quando usar includes, preload ou eager_load e como strict_loading impede que ele volte a aparecer. - [Índices no PostgreSQL: B-tree, GIN e índices parciais validados com EXPLAIN ANALYZE](https://oscarflaviojr.com/pt/artigos/indices-postgresql-explain-analyze.html): Como escolher entre índices B-tree, GIN, compostos e parciais no PostgreSQL, ler o plano de execução com EXPLAIN ANALYZE e criar índices sem travar produção. - [Monitoramento de sites offline: por que alertar só após falhas consecutivas](https://oscarflaviojr.com/pt/artigos/monitoramento-sites-offline-alertas.html): Como montar um monitor de disponibilidade que detecta quedas reais sem alertas falsos: falhas consecutivas, tempo de detecção, estados e exemplo em C#. ### Engenharia de IA - [RAG local com Ollama: como funciona a geração aumentada por recuperação](https://oscarflaviojr.com/pt/artigos/rag-local-com-ollama.html): O que é RAG, como funciona cada etapa (chunking, embeddings, recuperação e geração) e como montar uma versão local e privada com Ollama e Python. ## Optional - [Writing index](https://oscarflaviojr.com/writing/): all articles with search and filters - [RSS feed](https://oscarflaviojr.com/feed.xml): full text of English articles - [Feed RSS em português](https://oscarflaviojr.com/pt/feed.xml): texto completo dos artigos em português - [Sitemap](https://oscarflaviojr.com/sitemap.xml): every indexable page with language alternates