{"@attributes":{"version":"2.0"},"channel":{"title":"OneRuby.dev","description":"An engineering notebook by Alex Kholodniak. Ruby, search, and machine learning through small experiments, working examples, and the details behind a decision.","link":"https:\/\/oneruby.dev\/","language":"en","lastBuildDate":"Sat, 19 Sep 2026 00:00:00 GMT","item":[{"title":"PostgreSQL Full-Text Search: Test the Search You Actually Need","link":"https:\/\/oneruby.dev\/postgresql-full-text-search-when-you-dont-need-elasticsearch\/","guid":"https:\/\/oneruby.dev\/postgresql-full-text-search-when-you-dont-need-elasticsearch\/","pubDate":"Wed, 14 Jan 2026 00:00:00 GMT","description":"Test PostgreSQL full-text search with a disposable database: phrases, field weights, zero-price filters, updates and the limits of a tiny fixture.","author":"alex@oneruby.dev (Alex Kholodniak)","category":["python","databases","postgresql","ai"]},{"title":"FAISS, Pinecone and Weaviate: Compare the Search Contract First","link":"https:\/\/oneruby.dev\/vector-databases-python-pinecone-weaviate-faiss-compared\/","guid":"https:\/\/oneruby.dev\/vector-databases-python-pinecone-weaviate-faiss-compared\/","pubDate":"Sat, 10 Jan 2026 00:00:00 GMT","description":"Compare FAISS, Pinecone and Weaviate search contracts through a runnable FAISS cosine, filtering and persistence experiment.","author":"alex@oneruby.dev (Alex Kholodniak)","category":["ai","python","databases"]},{"title":"Inside Elasticsearch: Terms, Positions and the Search You Asked For","link":"https:\/\/oneruby.dev\/how-elasticsearch-really-works-under-the-hood\/","guid":"https:\/\/oneruby.dev\/how-elasticsearch-really-works-under-the-hood\/","pubDate":"Thu, 08 Jan 2026 00:00:00 GMT","description":"Trace terms, positions and BM25 with a tested Python model, then separate those mechanics from Elasticsearch analysis, refresh and shard behavior.","author":"alex@oneruby.dev (Alex Kholodniak)","category":["ai","elasticsearch","databases"]},{"title":"Build RAG From Scratch in Python: Test Retrieval With LangChain","link":"https:\/\/oneruby.dev\/building-rag-from-scratch-python-langchain-guide\/","guid":"https:\/\/oneruby.dev\/building-rag-from-scratch-python-langchain-guide\/","pubDate":"Sun, 04 Jan 2026 00:00:00 GMT","description":"Build a tested LangChain retrieval-to-prompt pipeline with source IDs, access scopes and repeatable indexing, before adding model generation.","author":"alex@oneruby.dev (Alex Kholodniak)","category":["ai","python","llm","machine-learning"]},{"title":"Your first Ruby gem: test the package, not just the source file","link":"https:\/\/oneruby.dev\/building-your-first-ruby-gem-complete-guide\/","guid":"https:\/\/oneruby.dev\/building-your-first-ruby-gem-complete-guide\/","pubDate":"Fri, 02 Jan 2026 00:00:00 GMT","description":"Build a small slug gem with a precise Unicode policy, Minitest checks and an isolated build-install-load test. No publishing account required.","author":"alex@oneruby.dev (Alex Kholodniak)","category":["ruby","gems","bundler","open-source"]},{"title":"ngrok With Local LLMs: Test Authentication Before Sharing Ollama","link":"https:\/\/oneruby.dev\/how-i-use-ngrok-with-local-llms-and-why-you-should-too\/","guid":"https:\/\/oneruby.dev\/how-i-use-ngrok-with-local-llms-and-why-you-should-too\/","pubDate":"Sat, 02 Aug 2025 00:00:00 GMT","description":"Test the HTTP authentication boundary before sharing Ollama or LM Studio through ngrok, with a runnable local preflight and explicit integration limits.","author":"alex@oneruby.dev (Alex Kholodniak)","category":["ai","llm","ngrok"]},{"title":"Ruby design patterns: make undo and redo survive a new branch","link":"https:\/\/oneruby.dev\/ruby-design-patterns-that-matter\/","guid":"https:\/\/oneruby.dev\/ruby-design-patterns-that-matter\/","pubDate":"Thu, 31 Jul 2025 00:00:00 GMT","description":"Implement the Command pattern with a tested history cursor. Handle undo-all, branching, failed commands and external edits without negative-index surprises.","author":"alex@oneruby.dev (Alex Kholodniak)","category":["ruby","design-patterns","advanced"]},{"title":"Ruby metaprogramming: generate a small API without hiding its rules","link":"https:\/\/oneruby.dev\/ruby-metaprogramming-writing-code-that-writes-code-with-examples\/","guid":"https:\/\/oneruby.dev\/ruby-metaprogramming-writing-code-that-writes-code-with-examples\/","pubDate":"Sat, 26 Jul 2025 00:00:00 GMT","description":"Build a typed settings DSL with define_method, then test reflection, validation, inheritance and shared defaults. No eval or method_missing required.","author":"alex@oneruby.dev (Alex Kholodniak)","category":["ruby","metaprogramming","advanced"]},{"title":"Sinatra, Rails and Roda: Compare One HTTP Contract","link":"https:\/\/oneruby.dev\/ruby-api-frameworks-comparison-2025\/","guid":"https:\/\/oneruby.dev\/ruby-api-frameworks-comparison-2025\/","pubDate":"Wed, 15 Jan 2025 00:00:00 GMT","description":"Compare Sinatra, Roda and Rails API controller routing against one JSON request contract, with 33 passing Rack tests and locked Ruby dependencies.","author":"alex@oneruby.dev (Alex Kholodniak)","category":["ruby","api","frameworks"]},{"title":"Predicting Exam Outcomes in Ruby: Split Before You Scale","link":"https:\/\/oneruby.dev\/predicting-student-exam-outcomes-with-machine-learning-in-ruby\/","guid":"https:\/\/oneruby.dev\/predicting-student-exam-outcomes-with-machine-learning-in-ruby\/","pubDate":"Tue, 30 Apr 2024 00:00:00 GMT","description":"Use Rumale to fit preprocessing on training rows only, evaluate a synthetic exam-outcome fixture and inspect threshold errors against a baseline.","author":"alex@oneruby.dev (Alex Kholodniak)","category":["ruby","machine-learning","education"]},{"title":"Implementing the Rasch Model in Python: Fix the Scale Before Fitting","link":"https:\/\/oneruby.dev\/understanding-and-implementing-the-rasch-model-with-python\/","guid":"https:\/\/oneruby.dev\/understanding-and-implementing-the-rasch-model-with-python\/","pubDate":"Wed, 10 Apr 2024 00:00:00 GMT","description":"Build and test a penalized Rasch estimator in Python, with a zero-mean difficulty constraint, checked gradients and extreme response cases.","author":"alex@oneruby.dev (Alex Kholodniak)","category":["python","machine-learning","data-science"]},{"title":"Ruby functional pipelines: make failure a value that stops the next step","link":"https:\/\/oneruby.dev\/exploring-advanced-functional-programming-techniques-in-ruby\/","guid":"https:\/\/oneruby.dev\/exploring-advanced-functional-programming-techniques-in-ruby\/","pubDate":"Sun, 24 Mar 2024 00:00:00 GMT","description":"Implement a small Ok\/Err pipeline in Ruby. Test short-circuiting, map versus bind, false and nil values, and errors that should still raise.","author":"alex@oneruby.dev (Alex Kholodniak)","category":["ruby","functional-programming","advanced"]},{"title":"Grok-1's Mixture of Experts: Active Parameters Are Not Stored Parameters","link":"https:\/\/oneruby.dev\/unveiling-grok-1-the-frontier-of-ai-modeling\/","guid":"https:\/\/oneruby.dev\/unveiling-grok-1-the-frontier-of-ai-modeling\/","pubDate":"Sun, 24 Mar 2024 00:00:00 GMT","description":"Understand Grok-1 sparse routing with an executable eight-expert NumPy experiment that separates active computation from stored weights.","author":"alex@oneruby.dev (Alex Kholodniak)","category":["ai","llm","grok"]},{"title":"Timing LLM inference in Python without inventing a CUDA speedup","link":"https:\/\/oneruby.dev\/accelerating-large-language-models-with-cuda-and-python\/","guid":"https:\/\/oneruby.dev\/accelerating-large-language-models-with-cuda-and-python\/","pubDate":"Thu, 29 Feb 2024 00:00:00 GMT","description":"Build a tested inference timer around an offline GPT-2 fixture, count generated tokens correctly and state exactly what a CUDA measurement would include.","author":"alex@oneruby.dev (Alex Kholodniak)","category":["ai","python","cuda"]},{"title":"LeetCode in Ruby: test the invariant behind three useful patterns","link":"https:\/\/oneruby.dev\/mastering-leetcode-challenges-with-ruby\/","guid":"https:\/\/oneruby.dev\/mastering-leetcode-challenges-with-ruby\/","pubDate":"Wed, 28 Feb 2024 00:00:00 GMT","description":"Implement lower-bound search, a unique-character window and a min-heap in Ruby. Check duplicates, empty input and seeded comparisons with simple oracles.","author":"alex@oneruby.dev (Alex Kholodniak)","category":["ruby","algorithms","leetcode"]},{"title":"How to Train an LLM: Verify the Training Step Before Scaling It","link":"https:\/\/oneruby.dev\/how-to-train-a-language-learning-model-llm\/","guid":"https:\/\/oneruby.dev\/how-to-train-a-language-learning-model-llm\/","pubDate":"Mon, 26 Feb 2024 00:00:00 GMT","description":"Run a tiny Hugging Face language model on CPU and test label alignment, padding and saved weights while training and holdout losses diverge.","author":"alex@oneruby.dev (Alex Kholodniak)","category":["ai","python","llm"]},{"title":"Ruby to PyTorch: test the process boundary before CUDA","link":"https:\/\/oneruby.dev\/harnessing-nvidias-cuda-power-with-ruby-for-enhanced-computing-performance\/","guid":"https:\/\/oneruby.dev\/harnessing-nvidias-cuda-power-with-ruby-for-enhanced-computing-performance\/","pubDate":"Sun, 25 Feb 2024 00:00:00 GMT","description":"Call a real PyTorch worker from Ruby with an explicit JSON contract, tested error paths and a clear boundary between CPU checks and CUDA execution.","author":"alex@oneruby.dev (Alex Kholodniak)","category":["ruby","cuda","gpu"]},{"title":"A Zilliqa allowance contract needs a withdrawal clock","link":"https:\/\/oneruby.dev\/harnessing-the-power-of-zilliqa-for-app-development-a-guide-with-a-practical-example\/","guid":"https:\/\/oneruby.dev\/harnessing-the-power-of-zilliqa-for-app-development-a-guide-with-a-practical-example\/","pubDate":"Thu, 07 Dec 2023 00:00:00 GMT","description":"Test the missing withdrawal interval in a Zilliqa allowance design with a JavaScript state model covering repeated calls, exact balances and integer limits.","author":"alex@oneruby.dev (Alex Kholodniak)","category":["blockchain","zilliqa","smart-contracts"]},{"title":"Build a Bayesian text classifier in Ruby, then check the arithmetic","link":"https:\/\/oneruby.dev\/building-a-bayesian-text-classifier-in-ruby-from-scratch\/","guid":"https:\/\/oneruby.dev\/building-a-bayesian-text-classifier-in-ruby-from-scratch\/","pubDate":"Tue, 05 Dec 2023 00:00:00 GMT","description":"Implement multinomial Naive Bayes with word counts, smoothing and log scores. Test unknown words, empty input and a small held-out fixture.","author":"alex@oneruby.dev (Alex Kholodniak)","category":["ruby","machine-learning","nlp"]},{"title":"Amazon Transcribe in Ruby: Separate Starting, Waiting and Reading","link":"https:\/\/oneruby.dev\/automate-audio-transcription-with-ruby-and-amazon-transcribe\/","guid":"https:\/\/oneruby.dev\/automate-audio-transcription-with-ruby-and-amazon-transcribe\/","pubDate":"Wed, 15 Nov 2023 00:00:00 GMT","description":"Separate Amazon Transcribe submission, bounded polling and authenticated S3 output reading in Ruby, with tested SDK stubs for failures and empty results.","author":"alex@oneruby.dev (Alex Kholodniak)","category":["ruby","aws","transcription"]}]}}