RAG
docs-rag-assistant
Chat with your own PDFs and docs. Every answer cites the page it came from.
- upload pdf
- chunk + embed
- pgvector search
- answer with page cite
- Python
- FastAPI
- LlamaIndex
- pgvector
query
Full-stack developer in Salatiga, Indonesia. Lately I build AI apps. This page answers the question above the way a RAG app would.
tokens
The tokenizer of qwen3-embedding:0.6b cuts the question into 7 tokens. Neither of my names is in its vocabulary, so each one comes out in two pieces.
embed
Then the model itself, running on my laptop through Ollama, turns those tokens into 1,024 numbers. Here are the first 12.
[-0.0218, 0.0974, 0.0020, -0.0023, -0.0283, -0.0546, -0.0767, 0.0256, 0.0455, 0.0271, 0.0104, 0.0440, … 1,012 more]
retrieve
Those numbers get compared with 45 short notes I wrote about myself and my work. The five closest come back.
top 5 of 45 · cosine similarity
1about.mdsimilarity 0.514
I'm Rama Raihan, a full-stack developer from Salatiga, a small city in the hills of Central Java, Indonesia. I build and run web apps in Laravel and Next.js.
2ralaexsimilarity 0.439
ralaex is the household finance app my wife and I log our spending in. Budgets with alerts, receipt photos, charts and exports.
3now.mdsimilarity 0.431
Lately I've been building AI apps: RAG, agents, chatbots and workflow automation.
4stack/midtranssimilarity 0.408
Midtrans handles checkout and payments on the Indonesian projects.
5work.mdsimilarity 0.371
I work from Salatiga on UTC+7, and I'm happy to work remotely with a team anywhere.
tools
Client work runs on the web stack. My recent projects use the AI tools.
RAG, agents with tool calling, chatbots and workflow automation. Ollama when it should run locally and cost nothing.
Most of my apps run on Next.js. I write everything in TypeScript now.
Laravel for APIs, queues and auth. Python and FastAPI on the AI side. Midtrans for payments on Indonesian projects.
Postgres is my default, and pgvector keeps the embeddings in the same database as everything else.
Docker so the app behaves the same on my laptop as on the server. Coolify deploys it to my own VPS.
work
Most run on a local model through Ollama by default, so you can try them without an API key.
RAG
Chat with your own PDFs and docs. Every answer cites the page it came from.
Agent
A LangGraph agent that plans the research, waits for you to approve the plan, then searches the web and writes a cited report.
Chatbot
Support chatbot for a small coffee bean shop. It answers FAQ and checks orders through tool calls, on the web and in Telegram.
Gateway
One OpenAI-compatible endpoint in front of OpenAI, Gemini, Anthropic and Ollama, with fallback, retries, rate limits and cost logs.
Extraction
Laravel app that pulls invoice data out with an LLM, checks the math, and holds it for review and approval before export.
Text to SQL
Ask a sales database questions in English or Bahasa Indonesia, with guardrails on the generated SQL. Also ships an MCP server.
Automation
GitHub Action that labels new issues, flags likely duplicates (TF-IDF) and leaves one comment. Defaults to Gemini's free tier, and any OpenAI-compatible endpoint works too, Ollama included.
Local models
My fully local AI coding setup on a laptop with a 6 GB RTX 3060: a coding agent in the terminal and autocomplete in VS Code. No subscription and no API bill.
Everything else, including the commits, is on GitHub.
github.com/ramaraihan12Python pipeline I run for my own channel. It turns a long video into vertical 9:16 clips: faster-whisper transcribes, Gemini picks the highlights, OpenCV tracks faces for the crop and ffmpeg burns in subtitles. The code is private for now.
Household finance PWA my wife and I log our spending in from our phones. Budgets with alerts, receipt photos, charts, and PDF and Excel export.
Free Twitch chat overlay for OBS that shows chat as bubbles, with emotes and username colors. Connects to Twitch IRC anonymously, so no login or token.
Most of my client work lives in private repos, so it isn't listed here.
answer · from the 5 notes above

Rama Raihan is a full-stack developer from Salatiga, Central Java. He builds and runs web apps in Laravel and Next.js1. Lately he's been building AI apps: RAG, agents, chatbots and workflow automation3. He has built Midtrans payments into Indonesian projects4, and he made the finance app he and his wife track their spending in2. He works on UTC+7 and is happy to join a remote team anywhere5.
The tokens, numbers and scores up top are real, from a model on my laptop. This answer isn't generated. I wrote it from those five notes. All 45 notes
follow-up
Want to talk about a project, AI or plain web? Email is the best way to reach me.
ramaraihan97@gmail.com