Contextual AI (@ContextualAI) header
Contextual AI (@ContextualAI) profile picture

Expert AI for advanced industries

Bay Area
Joined March 2023
Photo by Contextual AI (@ContextualAI)Photo by Contextual AI (@ContextualAI)Photo by Contextual AI (@ContextualAI)Photo by Contextual AI (@ContextualAI)Photo by Contextual AI (@ContextualAI)Photo by Contextual AI (@ContextualAI)Photo by Contextual AI (@ContextualAI)Photo by Contextual AI (@ContextualAI)Photo by Contextual AI (@ContextualAI)Photo by Contextual AI (@ContextualAI)
Contextual AI retweeted
Search agents, whether they're powering deep research, or multi-step QA over a private corpus, spend most of their time and compute in the research loop: query, search, reason, repeat. We wanted to make that loop faster and more accurate. So we optimized two things jointly: the retrieval stack itself, and the planner that decides when and how to search. A trained planner on our fastest retrieval config matches an untrained planner on the most expensive one, at half the latency. Every arrow in this plot points up and to the left. [1/n]
3
9
3
57
76,240
Contextual AI retweeted
**New research: Introducing ⚡BlitzRank** Current LLM rerankers waste tokens on information they already have. If A > B and B > C, you already know A > C, existing methods don’t track this. BlitzRank fixes this. It uses tournament graphs to extract maximal information from each LLM call. 📊 Pareto-optimal across 14 benchmarks × 5 LLMs ⚡ 25–40% fewer tokens than comparable methods ⚡ 7× cheaper than pairwise at near-identical quality
5
20
8
77
20,029
Contextual AI retweeted
Contextual AI just killed n8n.
8
7
1
134
13,686
Contextual AI retweeted
Last month, I dove deep with @swyx on @latentspacepod about the state of context engineering, and scaling it as a full-stack discipline with benchmarks, tooling, and enterprise deployments. Hosted by @LaudeInstitute on the rooftop of the Hard Rock Cafe during @NeurIPSConf (my 5th!), and my first interview in sunglasses! Catch the full video from sunny San Diego here: youtube.com/watch?v=tSRqTerZ…. We unpacked the rapid evolution of context engineering, how agentic RAG became the baseline, why context rot is cited in every blog but industry benchmarks at real scale (100k+ documents, billions of tokens) are still rare, sub-agents with turn limits and other explicit constraints, instruction-following re-rankers for precision at scale, KV cache strategies for multi-turn agents, and why 2026 will shift to end-to-end system designs over component tweaks. For more details on the blogs, papers, and events that shaped Context Engineering in 2025 (as we referenced in our chat), join @ContextualAI's webinar next week on 1/13! Sign up here: linkedin.com/events/contexte…
4
5
2
28
13,664
🛠️ @ContextualAI is proving what’s possible when you combine open models with highly scalable infrastructure. By fine-tuning Llama 3.1 70B on Google Cloud, they’ve built a "grounded" language model that reduces hallucinations and automates complex workflows. See how they did it → goo.gle/3Y0zZnN
3
12
1,530
“Garbage in, information out, is what we really want from AI” @douwekiela of @ContextualAI #FortuneBrainstormAI
3
4
1,387
Agents can do GraphRAG with the right set of tools.
An agentic alternative to GraphRAG. We built a Metadata Search Tool to solve reference traversal without the rigid complexity of static graphs. The result? Agents resolve complex queries in fewer steps with higher accuracy. 🧵 1/4
1
1
7
1,083
Contextual AI retweeted
An agentic alternative to GraphRAG. We built a Metadata Search Tool to solve reference traversal without the rigid complexity of static graphs. The result? Agents resolve complex queries in fewer steps with higher accuracy. 🧵 1/4
1
5
1
12
2,431
Contextual AI retweeted
An ideal evaluation system should surface failure modes and usage patterns, provide actionable insights, adapt to your product -- and continuously improve over time. Nothing out there met our eval needs. So we built AgentLens: a multi-agent system which surfaces deeper insights and continuously learns what matters for your product. Check out our 📜blog post📜 and✨demos✨below
2
6
1
17
2,995
Contextual AI retweeted
LLM-as-a-Judge doesn't scale. After 100+ test cases, you're stuck with: → Binary scoring that treats 95% correct the same as 5%. → Judge prompts that drift every update. → Zero insight into WHY something failed. So we built something better. 🧵
1
6
1
15
3,969
Contextual AI retweeted
I just came back from an amazing trip to Europe, where I had the privilege of attending and speaking at @WebSummit in Lisbon. The event was great as always, and this year a big focus for speakers and attendees was about making AI real for enterprises. Here are a few of my observations from my conversations there: 📊 Context engineering is the new frontier - Enterprises have millions of documents with a wide range of complex layouts and formats. A robust context layer that understands and optimizes the information that is made available to models is what separates AI prototypes from AI products. 🎯 Specialization is critical - Off-the-shelf AI apps don’t cut it anymore. Companies are looking to gain competitive advantage by building AI that is highly specialized to their business. And it’s not just one or two AI agents. They have thousands of use cases to address, and need a secure way to customize and scale across orgs. ✨ The future is multi-LLM - Foundation models are getting better every day, but at slightly different things. Most large orgs will adopt different models for different use cases (e.g. ChatGPT for research, Claude for coding). In this multi-model future with data spread across the entire enterprise, a unified context layer becomes even more critical for ensuring the right context reaches the right models. It's an exciting time to be working on enterprise AI infrastructure. The gap between prototype and production is real, but so is the path forward. If these observations resonate with challenges you're seeing in your organization, drop a comment. I'd love to hear what you're working on.
1
4
13
1,477
Contextual AI retweeted
Stop model shopping. Start learning from users. Feedback & Annotation now in @ContextualAI • Real-time capture • Intelligent categorization • Dashboards for faster fixes Blog post for details: contextual.ai/blog/user-feed… Try it live: app.contextual.ai/
1
4
380
Contextual AI retweeted
This is great validation of CodeGen-specific context engineering insights we shared in August! Like Cursor's combination of semantic + grep search, we found hybrid search (semantic + lexical) essential for large codebases. But for enterprise technical documentation, code alone wasn't enough. We also parsed multimodal technical documents, like specs & diagrams, because the full context matters. And after hybrid search, adding a reranking step was also key. The game-changer for us was LMUnit, our natural language evaluation model, enabling both quality measurement AND optimization at scale. [Re-sharing our stack & results below 👇]
Semantic search improves our agent's accuracy across all frontier models, especially in large codebases where grep alone falls short. Learn more about our results and how we trained an embedding model for retrieving code.
1
7
749
Contextual AI retweeted
Your metadata IS your graph. Giving our agents access to a metadata search tool boosted our evals by 11%, providing the flexibility of GraphRAG while avoiding all the complexity. It unlocks new capabilities, including reference traversal. Example: 1. Agent finds a doc with references. 2. Agent decides which references to traverse and searches over metadata to fetch them.
3
4
4
16
3,041
I had a great time sharing what we're building at @ContextualAI at @elastic{on} yesterday. And of course presenting our latest demo, McConaughAI, at an in person event for the first time. Thanks to @SidraMiconi for grabbing some photos and videos!
#ElasticOn @Elastic Context Engineering at Scale: Building Trustworthy Agents with Contextual AI @ContextualAI By Nina Lopatina @NinaLopatina #SanFrancisco #AI
3
2
7
933
RAG was just the beginning – now, AI agents can search, reason, and adapt on their own. At ODSC AI West 2025, @NinaLopatina, @ContextualAI, will chart the next step in the evolution of information retrieval in her talk. 🔗Register now → hubs.li/Q03Q0jNc0
1
1
6
1,114
Contextual AI retweeted
Replying to @simonw
Qualcomm is one of our best success stories here. We fine-tuned the most grounded language model (GLM) in the world, built a first-of-its-kind instruction-following reranker, and specialized our system specifically for semiconductor knowledge. Case study: contextual.ai/case-study/qua…
2
5
511
Contextual AI retweeted
Strong +1 on another comment from @Karpathy on Dwarkesh: look for companies building "sliding scales of automation": not AI replacing workers, but making them 2x, 5x, 10x more productive until full automation becomes viable. This is exactly right. The winning AI products don't promise full automation today (which fails, and leaves potential customers skeptical of AI after overpromising and underdelivering). They augment current workflows with prompt optimization, learning from feedback, human-in-the-loop for high-leverage decisions, and enabling multi-agent paradigms. The companies that understand this, building products that gracefully scale from 10% to 90% automation based on user confidence will actually transform knowledge work.
My pleasure to come on Dwarkesh last week, I thought the questions and conversation were really good. I re-watched the pod just now too. First of all, yes I know, and I'm sorry that I speak so fast :). It's to my detriment because sometimes my speaking thread out-executes my thinking thread, so I think I botched a few explanations due to that, and sometimes I was also nervous that I'm going too much on a tangent or too deep into something relatively spurious. Anyway, a few notes/pointers: AGI timelines. My comments on AGI timelines looks to be the most trending part of the early response. This is the "decade of agents" is a reference to this earlier tweet teapawt.net/karpathy/status/188254… Basically my AI timelines are about 5-10X pessimistic w.r.t. what you'll find in your neighborhood SF AI house party or on your twitter timeline, but still quite optimistic w.r.t. a rising tide of AI deniers and skeptics. The apparent conflict is not: imo we simultaneously 1) saw a huge amount of progress in recent years with LLMs while 2) there is still a lot of work remaining (grunt work, integration work, sensors and actuators to the physical world, societal work, safety and security work (jailbreaks, poisoning, etc.)) and also research to get done before we have an entity that you'd prefer to hire over a person for an arbitrary job in the world. I think that overall, 10 years should otherwise be a very bullish timeline for AGI, it's only in contrast to present hype that it doesn't feel that way. Animals vs Ghosts. My earlier writeup on Sutton's podcast teapawt.net/karpathy/status/197343… . I am suspicious that there is a single simple algorithm you can let loose on the world and it learns everything from scratch. If someone builds such a thing, I will be wrong and it will be the most incredible breakthrough in AI. In my mind, animals are not an example of this at all - they are prepackaged with a ton of intelligence by evolution and the learning they do is quite minimal overall (example: Zebra at birth). Putting our engineering hats on, we're not going to redo evolution. But with LLMs we have stumbled by an alternative approach to "prepackage" a ton of intelligence in a neural network - not by evolution, but by predicting the next token over the internet. This approach leads to a different kind of entity in the intelligence space. Distinct from animals, more like ghosts or spirits. But we can (and should) make them more animal like over time and in some ways that's what a lot of frontier work is about. On RL. I've critiqued RL a few times already, e.g. teapawt.net/karpathy/status/194443… . First, you're "sucking supervision through a straw", so I think the signal/flop is very bad. RL is also very noisy because a completion might have lots of errors that might get encourages (if you happen to stumble to the right answer), and conversely brilliant insight tokens that might get discouraged (if you happen to screw up later). Process supervision and LLM judges have issues too. I think we'll see alternative learning paradigms. I am long "agentic interaction" but short "reinforcement learning" teapawt.net/karpathy/status/196080…. I've seen a number of papers pop up recently that are imo barking up the right tree along the lines of what I called "system prompt learning" teapawt.net/karpathy/status/192136… , but I think there is also a gap between ideas on arxiv and actual, at scale implementation at an LLM frontier lab that works in a general way. I am overall quite optimistic that we'll see good progress on this dimension of remaining work quite soon, and e.g. I'd even say ChatGPT memory and so on are primordial deployed examples of new learning paradigms. Cognitive core. My earlier post on "cognitive core": teapawt.net/karpathy/status/193862… , the idea of stripping down LLMs, of making it harder for them to memorize, or actively stripping away their memory, to make them better at generalization. Otherwise they lean too hard on what they've memorized. Humans can't memorize so easily, which now looks more like a feature than a bug by contrast. Maybe the inability to memorize is a kind of regularization. Also my post from a while back on how the trend in model size is "backwards" and why "the models have to first get larger before they can get smaller" teapawt.net/karpathy/status/181403… Time travel to Yann LeCun 1989. This is the post that I did a very hasty/bad job of describing on the pod: teapawt.net/karpathy/status/150339… . Basically - how much could you improve Yann LeCun's results with the knowledge of 33 years of algorithmic progress? How constrained were the results by each of algorithms, data, and compute? Case study there of. nanochat. My end-to-end implementation of the ChatGPT training/inference pipeline (the bare essentials) teapawt.net/karpathy/status/197775… On LLM agents. My critique of the industry is more in overshooting the tooling w.r.t. present capability. I live in what I view as an intermediate world where I want to collaborate with LLMs and where our pros/cons are matched up. The industry lives in a future where fully autonomous entities collaborate in parallel to write all the code and humans are useless. For example, I don't want an Agent that goes off for 20 minutes and comes back with 1,000 lines of code. I certainly don't feel ready to supervise a team of 10 of them. I'd like to go in chunks that I can keep in my head, where an LLM explains the code that it is writing. I'd like it to prove to me that what it did is correct, I want it to pull the API docs and show me that it used things correctly. I want it to make fewer assumptions and ask/collaborate with me when not sure about something. I want to learn along the way and become better as a programmer, not just get served mountains of code that I'm told works. I just think the tools should be more realistic w.r.t. their capability and how they fit into the industry today, and I fear that if this isn't done well we might end up with mountains of slop accumulating across software, and an increase in vulnerabilities, security breaches and etc. teapawt.net/karpathy/status/191558… Job automation. How the radiologists are doing great teapawt.net/karpathy/status/197122… and what jobs are more susceptible to automation and why. Physics. Children should learn physics in early education not because they go on to do physics, but because it is the subject that best boots up a brain. Physicists are the intellectual embryonic stem cell teapawt.net/karpathy/status/192969… I have a longer post that has been half-written in my drafts for ~year, which I hope to finish soon. Thanks again Dwarkesh for having me over!
1
14
4,430
Contextual AI retweeted
#ElasticOn @Elastic Context Engineering at Scale: Building Trustworthy Agents with Contextual AI @ContextualAI By Nina Lopatina @NinaLopatina #SanFrancisco #AI
1
1
6
1,372
Contextual AI retweeted
One concept that @karpathy explored on the @dwarkesh_sp podcast was the "cognitive core" - the idea of decoupling reasoning from knowledge in AI systems, creating lean models that retrieve information rather than storing it parametrically. This was an interesting discussion of the evolution of what the vision for RAG was (h/t to @olapiktus for doing cool work back then on seeing how far we could take that decoupling). In fact, one of the first research projects at @ContextualAI was about that, and it turned out to be extremely challenging. The landscape has fundamentally changed in ways that make it increasingly possible now. Previous challenges: The infrastructure wasn't ready; training models with many moving parts was an engineering nightmare, OSS tooling was primitive, and token limits imposed real constraints. More critically, retrieval quality was too coarse. When your retrieval is weak, the model still needs substantial parametric knowledge to compensate. Worst case, it learns to ignore the retrievals entirely. Why it could work now: The retrieval revolution has arrived. We've gone from basic embedding similarity to sophisticated agentic search, and optimized and updated the pipeline with several innovations that work together to achieve top retrieval accuracy. When retrieval becomes truly reliable and performant, you can finally decouple knowledge from reasoning. And, paradoxically, it’s the emergence of long context that is one of the factors that makes retrieval-based techniques as a replacement for parametric memory increasingly possible. Karpathy's intuition about model size is compelling - you don't need zero knowledge, but you likely need far less than we currently use. We already see challenges with the current prevailing paradigm, where an agent can decide to ignore retrievals from a subagent if it thinks its own knowledge is superior. This isn’t usually the right call, and it’s not even a decision an LLM should be making, given how compressed its knowledge is. The implications are profound: instead of retraining massive models to update knowledge, you update your retrieval corpus. Instead of hoping the model "knows" something, you ensure it can find it. Instead of black-box parametric storage, you have transparent, auditable knowledge sources. And instead of model size largely reflecting memorized information, it can go toward increasing reasoning capabilities and other factors that would take agents beyond Karpathy’s assessment of "kindergarten savant level” The companies that crack this, building truly effective cognitive cores with state-of-the-art retrieval, will unlock a new generation of AI systems that are more efficient, updateable, and trustworthy.
My pleasure to come on Dwarkesh last week, I thought the questions and conversation were really good. I re-watched the pod just now too. First of all, yes I know, and I'm sorry that I speak so fast :). It's to my detriment because sometimes my speaking thread out-executes my thinking thread, so I think I botched a few explanations due to that, and sometimes I was also nervous that I'm going too much on a tangent or too deep into something relatively spurious. Anyway, a few notes/pointers: AGI timelines. My comments on AGI timelines looks to be the most trending part of the early response. This is the "decade of agents" is a reference to this earlier tweet teapawt.net/karpathy/status/188254… Basically my AI timelines are about 5-10X pessimistic w.r.t. what you'll find in your neighborhood SF AI house party or on your twitter timeline, but still quite optimistic w.r.t. a rising tide of AI deniers and skeptics. The apparent conflict is not: imo we simultaneously 1) saw a huge amount of progress in recent years with LLMs while 2) there is still a lot of work remaining (grunt work, integration work, sensors and actuators to the physical world, societal work, safety and security work (jailbreaks, poisoning, etc.)) and also research to get done before we have an entity that you'd prefer to hire over a person for an arbitrary job in the world. I think that overall, 10 years should otherwise be a very bullish timeline for AGI, it's only in contrast to present hype that it doesn't feel that way. Animals vs Ghosts. My earlier writeup on Sutton's podcast teapawt.net/karpathy/status/197343… . I am suspicious that there is a single simple algorithm you can let loose on the world and it learns everything from scratch. If someone builds such a thing, I will be wrong and it will be the most incredible breakthrough in AI. In my mind, animals are not an example of this at all - they are prepackaged with a ton of intelligence by evolution and the learning they do is quite minimal overall (example: Zebra at birth). Putting our engineering hats on, we're not going to redo evolution. But with LLMs we have stumbled by an alternative approach to "prepackage" a ton of intelligence in a neural network - not by evolution, but by predicting the next token over the internet. This approach leads to a different kind of entity in the intelligence space. Distinct from animals, more like ghosts or spirits. But we can (and should) make them more animal like over time and in some ways that's what a lot of frontier work is about. On RL. I've critiqued RL a few times already, e.g. teapawt.net/karpathy/status/194443… . First, you're "sucking supervision through a straw", so I think the signal/flop is very bad. RL is also very noisy because a completion might have lots of errors that might get encourages (if you happen to stumble to the right answer), and conversely brilliant insight tokens that might get discouraged (if you happen to screw up later). Process supervision and LLM judges have issues too. I think we'll see alternative learning paradigms. I am long "agentic interaction" but short "reinforcement learning" teapawt.net/karpathy/status/196080…. I've seen a number of papers pop up recently that are imo barking up the right tree along the lines of what I called "system prompt learning" teapawt.net/karpathy/status/192136… , but I think there is also a gap between ideas on arxiv and actual, at scale implementation at an LLM frontier lab that works in a general way. I am overall quite optimistic that we'll see good progress on this dimension of remaining work quite soon, and e.g. I'd even say ChatGPT memory and so on are primordial deployed examples of new learning paradigms. Cognitive core. My earlier post on "cognitive core": teapawt.net/karpathy/status/193862… , the idea of stripping down LLMs, of making it harder for them to memorize, or actively stripping away their memory, to make them better at generalization. Otherwise they lean too hard on what they've memorized. Humans can't memorize so easily, which now looks more like a feature than a bug by contrast. Maybe the inability to memorize is a kind of regularization. Also my post from a while back on how the trend in model size is "backwards" and why "the models have to first get larger before they can get smaller" teapawt.net/karpathy/status/181403… Time travel to Yann LeCun 1989. This is the post that I did a very hasty/bad job of describing on the pod: teapawt.net/karpathy/status/150339… . Basically - how much could you improve Yann LeCun's results with the knowledge of 33 years of algorithmic progress? How constrained were the results by each of algorithms, data, and compute? Case study there of. nanochat. My end-to-end implementation of the ChatGPT training/inference pipeline (the bare essentials) teapawt.net/karpathy/status/197775… On LLM agents. My critique of the industry is more in overshooting the tooling w.r.t. present capability. I live in what I view as an intermediate world where I want to collaborate with LLMs and where our pros/cons are matched up. The industry lives in a future where fully autonomous entities collaborate in parallel to write all the code and humans are useless. For example, I don't want an Agent that goes off for 20 minutes and comes back with 1,000 lines of code. I certainly don't feel ready to supervise a team of 10 of them. I'd like to go in chunks that I can keep in my head, where an LLM explains the code that it is writing. I'd like it to prove to me that what it did is correct, I want it to pull the API docs and show me that it used things correctly. I want it to make fewer assumptions and ask/collaborate with me when not sure about something. I want to learn along the way and become better as a programmer, not just get served mountains of code that I'm told works. I just think the tools should be more realistic w.r.t. their capability and how they fit into the industry today, and I fear that if this isn't done well we might end up with mountains of slop accumulating across software, and an increase in vulnerabilities, security breaches and etc. teapawt.net/karpathy/status/191558… Job automation. How the radiologists are doing great teapawt.net/karpathy/status/197122… and what jobs are more susceptible to automation and why. Physics. Children should learn physics in early education not because they go on to do physics, but because it is the subject that best boots up a brain. Physicists are the intellectual embryonic stem cell teapawt.net/karpathy/status/192969… I have a longer post that has been half-written in my drafts for ~year, which I hope to finish soon. Thanks again Dwarkesh for having me over!
6
3
1
35
7,960