Skip to content
Back home

Technical Notes

Bite-sized things I learned building real systems.

Hybrid Retrieval in RAG

Run a metadata-filtered search (e.g. content_type + technology) and an unfiltered similarity search in parallel. Merge filtered-first, dedup by chunk ID. Filtered results give precision; unfiltered results fill context gaps the filters miss.

RAGQdrant

Query Rewriting Before Vector Search

Rewrite conversational messages into standalone search queries using an LLM + chat history before hitting the vector store. "Yeah what about that?" becomes "What mobile development services are available?" Single biggest retrieval quality improvement I've made.

RAGLLM

HPSS for Harmonic-to-Noise Ratio

Instead of autocorrelation-based HNR, split the STFT into harmonic and percussive components via librosa's HPSS (median filtering on the spectrogram), then compute 10·log₁₀(E_harmonic / E_percussive). Different from Praat's HNR but captures voice quality well.

Audiolibrosa