# Ransaka Ravihara

I am an AI & Machine Learning Engineer and Data Scientist with over four years of industry experience, and a Computer Science graduate from the [University of Colombo School of Computing](https://ucsc.cmb.ac.lk/).

Here I share notes from building production AI systems, agent evaluation harnesses, natural language processing models, and open-source machine learning tools. Opinions and code shared here are my own and do not reflect the views of any organization I am affiliated with.

## Featured Writing

[!card layout="vert" kicker="AI Agents & LLMs"](<./writing/AI Agents & LLMs/Why Enterprise AI Agents Need an Ontology.md>)
[!card layout="vert" kicker="AI Agents & LLMs"](<./writing/AI Agents & LLMs/Why Multi-Tool AI Agents Become Inconsistent.md>)
[!card layout="vert" kicker="AI Agents & LLMs"](<./writing/AI Agents & LLMs/Building a Multi-Agent Application to Interact with Google Products.md>)
[!card layout="vert" kicker="AI Agents & LLMs"](<./writing/AI Agents & LLMs/Building LLM-Powered Coding Assistant for GitHub.md>)
[!card layout="vert" kicker="Deep Learning & NLP"](<./writing/Deep Learning & NLP/Building CRNN model for Sinhala OCR.md>)
[!card layout="vert" kicker="Deep Learning & NLP"](<./writing/Deep Learning & NLP/Demystifying LoRA Fine Tuning.md>)
[!card layout="vert" kicker="Data Science & ML"](<./writing/Data Science & ML/GMM from Scratch.md>)

Browse the full archive in [Writing](./writing/index.md).

## Open Source & Research

- **[Daily Llama](https://github.com/Ransaka/daily-llama)**: Retrieval-augmented generation pipeline over news content using FAISS and Llama 2.
- **[Sinhala Sentence Transformer](https://huggingface.co/spaces/Ransaka/sinhala-embedding-space)** & **[BERT MLM](https://github.com/Ransaka/Train-BERT-for-Masked-Language-Modeling-Tasks)**: Custom WordPiece tokenizer, Sinhala-400M pretraining, and semantic similarity embeddings.
- **[Sinhala CRNN OCR](https://github.com/Ransaka/rnn-playground/tree/main/rnn-for-sinhala-ocr)**: End-to-end scene text OCR trained on `Ransaka/SSOCR-V.1`.
- **[Code Assistant & Sourcegraph](https://github.com/Ransaka/code_assistant)**: Dependency-aware codebase RAG with Gemini and Redis.

See demos and repositories on [Projects](./projects.md).

## Elsewhere

- GitHub: [github.com/ransaka](https://github.com/ransaka)
- LinkedIn: [linkedin.com/in/ransaka](https://www.linkedin.com/in/ransaka/)
- Hugging Face: [huggingface.co/Ransaka](https://huggingface.co/Ransaka)
- Medium: [medium.com/@ransakaravihara](https://medium.com/@ransakaravihara)
- Direct: [Contact](./contact.md)
