The takeaway?
Donβt choose embeddings from a leaderboard.
Choose them from an evaluation.
A benchmark tells you where to start.
Your data tells you where to stop.
#RAG#GenerativeAI#Embeddings#LLM#AIEngineering
Unpopular opinion: the #1 embedding model on MTEB is probably not the right choice for your RAG system.
Why?
Because benchmark performance β domain performance.
β System + privacy constraints
Public filings may not be sensitive. Your internal financial documents probably are.
That changes the equation.
Self-hosted models can offer stronger control over data residency, privacy, rate limits, and inference costs, depending on architecture
1. Detect markdown tables dynamically before splitting
2. Keep entire tables whole as single chunks
3. Run recursive text splitting only on prose
288 chunks later, all metrics are intact.
Lesson: Inspect document structure before deciding your chunking strategy.
#RAG#NLP
I almost split an SEC financial table in half today while building my RAG pipeline. "Total net sales | 416,161 | 391,035" landed in Chunk 1. "383,285" landed in Chunk 2.
Completely useless for financial Q&A. Here is how I fixed it: π§΅
The Hidden Cost of Agents Without Observability
I was building agents without any observability. Big mistake.
The Problem:
1. Agents failing randomly β No idea why
2. Token usage exploding β Couldn't find the culprit
Some requests cost $0.50, others cost $0.02 β No pattern
If you're shipping production LLM systems:
β Don't rely on logs and print statements
β Implement observability from day one
β Use LangSmith, Weights & Biases, or similar
β Track tokens, costs, latency per call
It was a good reminder that AI agent debugging isn't always about finding a bug in your code. Sometimes it's about understanding how different model features interact.
Small debugging session, useful lesson. π
#AIEngineering#DeepSeek#LangGraph#LLM#GenerativeAI#AIAgents
For my router, disabling reasoning fixed it:
'''ChatDeepSeek( model="deepseek-v4-flash", reasoning_effort="none" )''
The router worked perfectly after that.