<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Faizan Altaf</title>
    <description>The latest articles on DEV Community by Faizan Altaf (@faizan_altaf_f4f490979fcd).</description>
    <link>https://dev.to/faizan_altaf_f4f490979fcd</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4222052%2Fbca9f918-ce63-45ad-947c-ceffb5505b27.png</url>
      <title>DEV Community: Faizan Altaf</title>
      <link>https://dev.to/faizan_altaf_f4f490979fcd</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/faizan_altaf_f4f490979fcd"/>
    <language>en</language>
    <item>
      <title>How the rupee works: what sets the dollar rate in Pakistan</title>
      <dc:creator>Faizan Altaf</dc:creator>
      <pubDate>Tue, 03 Nov 2026 07:21:24 +0000</pubDate>
      <link>https://dev.to/faizan_altaf_f4f490979fcd/how-the-rupee-works-what-sets-the-dollar-rate-in-pakistan-4hfh</link>
      <guid>https://dev.to/faizan_altaf_f4f490979fcd/how-the-rupee-works-what-sets-the-dollar-rate-in-pakistan-4hfh</guid>
      <description>&lt;p&gt;Every morning in Pakistan, someone checks the dollar rate. Shopkeepers, importers, families waiting on money from abroad, students paying foreign university fees — the number matters to all of them. But few people know what actually sets it.&lt;/p&gt;

&lt;p&gt;This is the plain-English version: how the rupee's price is decided, who decides it, and what moves it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The rupee has a price, like anything else
&lt;/h2&gt;

&lt;p&gt;The exchange rate is simply the price of one currency in terms of another. When the rate is Rs276.75 to the dollar, it means you need Rs276.75 to buy one US dollar. Like any price, it moves with supply and demand: when more people want dollars than rupees, the dollar gets more expensive and the rupee falls. When dollars flow in, the rupee steadies.&lt;/p&gt;

&lt;p&gt;Most of that buying and selling happens in the interbank market, where banks trade dollars with each other and with the State Bank of Pakistan. The rate you see on the news is usually the interbank closing rate — the rate at the end of the trading day. The rate at your local exchange company is close to it, but not identical: exchange companies add their own margin, and cash dollars can cost a little more than bank transfers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who actually sets the rate?
&lt;/h2&gt;

&lt;p&gt;Nobody sets the rate by decree. Pakistan has a market-based exchange rate, which means the rate moves with trading. But the State Bank is not a bystander. It watches the market every day, and it can buy or sell dollars to smooth sharp swings — selling dollars when the rupee is falling fast, buying them when it wants to build reserves. It does this quietly, and it does not announce every intervention.&lt;/p&gt;

&lt;p&gt;The State Bank publishes the official closing rate each trading day. That is the number that counts for banks, businesses and the news. On the last published close before this piece was written, the rate was Rs276.75 to the dollar. The live market rate on the morning of Monday 2 November 2026 was trading a little higher, around Rs277.44 — a reminder that the published close is a snapshot of yesterday, and the market keeps moving.&lt;/p&gt;

&lt;h2&gt;
  
  
  What pushes the rupee down
&lt;/h2&gt;

&lt;p&gt;Four things matter most.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Imports.&lt;/strong&gt; Pakistan buys far more than it sells. It imports oil, gas, machinery, food and medicine, and pays for them in dollars. In the first three months of the current financial year, the gap between what Pakistan bought and sold — the current account deficit — was $874 million, according to State Bank balance-of-payments data. Every dollar of that gap is demand for foreign currency, and it pushes the rupee down.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Debt payments.&lt;/strong&gt; Pakistan owes money abroad, and those loans are repaid in dollars. When a big repayment falls due, the demand for dollars jumps.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Confidence.&lt;/strong&gt; If people expect the rupee to fall, they buy dollars now — importers pay early, savers convert rupees, businesses hold dollars. That expectation alone can move the rate. It is why rumours and political uncertainty show up in the exchange rate so quickly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The street rate.&lt;/strong&gt; If the gap between the official rate and the rate on the informal market widens, some money moves off the books. That weakens the official market and makes the published figures look worse than the money actually moving.&lt;/p&gt;

&lt;h2&gt;
  
  
  What holds the rupee up
&lt;/h2&gt;

&lt;p&gt;The strongest support comes from overseas Pakistanis. They sent home a record $41.6 billion in the 2025–26 financial year, according to the State Bank — more than Pakistan earned from everything it sold abroad. The first three months of the new financial year brought in $10.87 billion. That flow supplies the dollars Pakistan needs to pay its import bills, supports the central bank's foreign exchange reserves, and goes straight into family budgets. I explained the full picture — where the money comes from and why it matters — in this Findivoza piece: &lt;a href="https://findivoza.com/pakistans-economy-remittances-hit-10-9bn-as-imports-outpace-exports-in-first-quarter/" rel="noopener noreferrer"&gt;Pakistan's economy: remittances hit $10.9bn as imports outpace exports&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Two other supports matter. IT exports crossed $3 billion in the first ten months of 2025–26, and IT freelancers earned $959 million in the full year, up 49 per cent. And foreign loans and IMF support, when they arrive, add dollars to the central bank's reserves — which is why an IMF programme announcement often steadies the rupee before a single dollar is spent.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the rate matters to ordinary people
&lt;/h2&gt;

&lt;p&gt;If your family receives money from abroad, the rate decides how many rupees arrive for each dollar sent. If you buy petrol, cooking oil or imported medicine, the rate is baked into the price — a weaker rupee means dearer imports, and that feeds straight into inflation. If you are a student paying fees abroad, or a business importing stock, the rate is a direct cost.&lt;/p&gt;

&lt;p&gt;That is also why the rate is political. A falling rupee feels like the country getting poorer, because in rupee terms, everything imported costs more. A steady rupee feels like stability, even when the underlying pressures have not gone away.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to watch
&lt;/h2&gt;

&lt;p&gt;If you want to understand where the rupee is heading, watch five numbers: monthly remittances (about $3.5 billion a month on average in 2026 — if they hold, the rupee has a floor); the current account deficit (the monthly gap between imports and exports); the State Bank's reserves (how many dollars it holds to defend the rate); the gap between the official rate and the street rate (a widening gap means trouble); and oil prices (Pakistan imports almost all its oil, so a dearer barrel means more dollars going out).&lt;/p&gt;

&lt;p&gt;None of these predicts the rate tomorrow. But together they tell you whether the pressure is building or easing — and that is more useful than any single morning's number.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bottom line
&lt;/h2&gt;

&lt;p&gt;The rupee's price is not set by one person or one decision. It is the result of millions of transactions: a nurse in Manchester sending money home, an importer in Karachi paying for oil, a student in Lahore paying a university in London, the State Bank buying or selling to steady the market. The rate you see each morning is the sum of all of that.&lt;/p&gt;

&lt;p&gt;Understanding it does not make the rupee stronger. But it does mean the number on the screen stops being a mystery — and you can tell the difference between a normal wobble and a real warning sign.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Faizan Altaf is the author of &lt;a href="https://findivoza.com" rel="noopener noreferrer"&gt;Findivoza&lt;/a&gt;, a plain-English news blog explaining Pakistan and the world simply.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sources&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;State Bank of Pakistan, workers' remittances data (FY2025–26: $41.6bn; July–September 2026: $10.87bn); balance of payments data (current account deficit $874m, Q1 FY27); IT freelancer earnings $959m, +49% (FY2025–26).&lt;/li&gt;
&lt;li&gt;State Bank of Pakistan, interbank closing rate (last published close Rs276.75 per US dollar, before 2 Nov 2026); live market rate ~Rs277.44 on the morning of 2 Nov 2026 (market rate, indicative only).&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>pakistan</category>
      <category>economy</category>
      <category>finance</category>
      <category>explainers</category>
    </item>
    <item>
      <title>How AI search answers work — and why they sometimes invent facts</title>
      <dc:creator>Faizan Altaf</dc:creator>
      <pubDate>Mon, 02 Nov 2026 10:03:02 +0000</pubDate>
      <link>https://dev.to/faizan_altaf_f4f490979fcd/how-ai-search-answers-work-and-why-they-sometimes-invent-facts-56do</link>
      <guid>https://dev.to/faizan_altaf_f4f490979fcd/how-ai-search-answers-work-and-why-they-sometimes-invent-facts-56do</guid>
      <description>&lt;p&gt;You ask an AI search tool a question. It answers in a second, in clean paragraphs, with confidence. Sometimes the answer is excellent. Sometimes it invents a date, a name or a reference that never existed — and says it with the same confidence.&lt;/p&gt;

&lt;p&gt;If you build with these tools, or you just use them every day, it helps to know what is actually happening inside. This is the plain-English version, with enough of the mechanics to be useful.&lt;/p&gt;

&lt;h2&gt;
  
  
  It predicts words, it does not look things up
&lt;/h2&gt;

&lt;p&gt;A large language model does not "know" facts the way a database does. It was trained on a huge amount of text, and what it learned is a statistical pattern: given these words, what words are most likely to come next?&lt;/p&gt;

&lt;p&gt;When you ask a question, the model generates the most likely continuation, one token at a time. A token is roughly a word or part of a word. Each step, it scores every possible next token and picks one — usually the most likely, sometimes a slightly random one to keep the text natural.&lt;/p&gt;

&lt;p&gt;That is why the output reads so fluently. It is also why the output can be wrong. The model is optimising for plausible text, not for truth. A made-up citation looks exactly like a real one to a system that only cares about what words usually follow other words.&lt;/p&gt;

&lt;h2&gt;
  
  
  AI search adds retrieval — but the model still writes the answer
&lt;/h2&gt;

&lt;p&gt;Modern AI search tools bolt a second system onto the model: retrieval. The flow looks roughly like this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Your question is turned into a search query.&lt;/li&gt;
&lt;li&gt;The tool fetches real web pages — the same kind of results a search engine returns.&lt;/li&gt;
&lt;li&gt;Those pages are chopped into passages and handed to the model as context.&lt;/li&gt;
&lt;li&gt;The model writes an answer based on that context.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This is called retrieval-augmented generation, or RAG. It helps a lot: when the answer is in the retrieved passages, the model usually gets it right and can even cite the source. But notice step 4. The model is still writing. If the retrieved passages are thin, contradictory or missing the key fact, the model fills the gap the only way it knows how — by generating plausible text. That is where hallucinations come from in AI search: not from nowhere, but from the gap between what was retrieved and what the question needs.&lt;/p&gt;

&lt;p&gt;Three things make that gap bigger: questions about very recent events (the search index may not have the latest page yet), questions with no good source on the web (the model has nothing solid to stand on), and questions that mix two facts (the model stitches together passages that were never meant to be combined).&lt;/p&gt;

&lt;h2&gt;
  
  
  Why dates, numbers and names fail first
&lt;/h2&gt;

&lt;p&gt;If you watch AI answers fail, the failures cluster. Dates, numbers, names and references go wrong far more often than general explanations. There is a mechanical reason: these are the tokens with the least redundancy. In a sentence like "the meeting happened on 14 March", the date carries almost all the information, and there is no surrounding context that lets the model recover it if it guesses wrong. A general explanation has slack — many wordings are acceptable. A date has exactly one right answer, and the model has no way to check it unless the retrieved text contains it.&lt;/p&gt;

&lt;p&gt;That is also why a confident tone means nothing. Confidence in the output is a property of the text generation, not a measurement of accuracy. The model does not know when it is guessing.&lt;/p&gt;

&lt;h2&gt;
  
  
  What actually reduces hallucinations
&lt;/h2&gt;

&lt;p&gt;If you are building or evaluating these tools, four things matter most:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Better retrieval, not a bigger model.&lt;/strong&gt; The single biggest improvement in AI search has come from fetching better passages — more sources, fresher pages, passages ranked by relevance to the exact question. A modest model with good retrieval beats a large model with poor retrieval on factual questions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Grounding and citations.&lt;/strong&gt; When the tool shows its sources and ties each claim to a passage, two things happen: the model is constrained to what it can support, and the user can check. A citation that does not actually support the claim is worse than no citation, because it borrows trust it has not earned.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Asking the model to say "I don't know".&lt;/strong&gt; Models can be tuned to refuse when the retrieved evidence is weak. Most products resist this because users dislike refusals — but a refusal is more useful than a confident invention.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Verification passes.&lt;/strong&gt; A second, cheaper check — does the answer's key claim appear in the retrieved text? — catches a large share of inventions before the user sees them.&lt;/p&gt;

&lt;p&gt;None of these removes the problem entirely. They shrink it, and they make the remaining errors checkable.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to use AI search without being misled
&lt;/h2&gt;

&lt;p&gt;For everyday use, three habits cover most of the risk:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Treat numbers as unverified until you see the source.&lt;/strong&gt; If an answer gives you a figure, click through to the source and check the figure is actually there. This is the single most valuable habit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ask for the source, then read it.&lt;/strong&gt; "According to whom?" is the question that separates a good answer from a confident guess.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Never trust it for things that must be exact.&lt;/strong&gt; Dates, legal details, medical doses, financial figures — verify those against a primary source, every time.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;None of this means AI search is useless. For explaining a concept, summarising a long document you already have, or drafting a first version of something, it is genuinely good. It is a bad oracle and a good assistant — and the difference matters.&lt;/p&gt;

&lt;h2&gt;
  
  
  The same problem, in a classroom
&lt;/h2&gt;

&lt;p&gt;This is not abstract. In Pakistan, teachers are adopting AI tools faster than any policy: the share of surveyed teachers who had used generative AI rose from 64 per cent in 2024 to about 93 per cent in 2026. Students use the same tools for homework. The most valuable skill in that setting is not using AI — it is checking it. Only about a quarter of the teachers surveyed get their students to critique what AI produces.&lt;/p&gt;

&lt;p&gt;I wrote about what that looks like on the ground — the curriculum changes, the free subscriptions, the cheating problem and the access gap — in this explainer on Findivoza: &lt;a href="https://findivoza.com/ai-classrooms/" rel="noopener noreferrer"&gt;How AI tools are changing Pakistani classrooms&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The lesson is the same whether you are a developer building a RAG pipeline or a student doing homework: the model writes plausible text. Your job is to check whether it is true.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Faizan Altaf is the author of &lt;a href="https://findivoza.com" rel="noopener noreferrer"&gt;Findivoza&lt;/a&gt;, a plain-English news blog explaining Pakistan and the world simply. He writes about technology, AI and the economy for readers who want the facts without the jargon.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>beginners</category>
      <category>tutorial</category>
      <category>explainers</category>
    </item>
  </channel>
</rss>
