Uploaded November 2026 | Updated December 2026, 1 day ago
Attendees will leave with a clear mental model for when standard prompting breaks, what RLMs change technically, and how to prototype this pattern in practice.
Many LLM systems work well on the first version of a task and then degrade as the problem grows. A prompt that succeeds on one file struggles on ten; a workflow that works for a short sequence becomes brittle when it must track more state, revisit earlier decisions, or reason over larger context. In practice, the limitation is often not model capability, but the assumption that all relevant context must fit into a single prompt or prompt loop.
This talk introduces Recursive Language Models (RLMs) through that failure mode first. RLMs treat context not as input to be consumed, but as data that can be programmatically explored, decomposed, and revisited. Instead of relying on a single prompt, the model interacts with context through code, recursively breaking problems into smaller parts and selectively accessing only what is needed.
Using DSPy's `dspy.RLM` as a concrete Python implementation, I will demonstrate this shift with a compact example. We start with a task that works under a standard approach and then fails as the context grows. I then show how an RLM-style solution changes the structure of the problem: from brittle prompt orchestration to a program that explores context step by step, maintains explicit state, and revisits intermediate results when needed.
While the underlying idea is general, DSPy provides a clean way to prototype this pattern in Python, using a sandboxed REPL and recursive calls to interact with context. For many practitioners still writing prompts by hand, DSPy offers a structured path from prompt engineering to programmatic LLM systems.
Attendees will leave with:
* a concrete understanding of why prompt-based and agent-style approaches become brittle as context grows
* a practical mental model for treating context as something to operate on, not just consume
* a clear starting point for implementing this pattern in Python using DSPy
This is a technical talk for Python practitioners building LLM systems who want a more robust abstraction for long-context reasoning than "add more context" or "add another agent step.
Proposed structure (30 minutes)
* Introduction: where current LLM workflows break as context grows (5 min)
* A concrete example: a task that works at small scale and fails with larger context (5 min)
* Why this happens: limits of prompt-based and agent-style approaches (5 min)
* The shift: treating context as something to explore rather than consume (5 min)
* Recursive Language Models (RLMs): core idea and intuition (5 min)
* DSPy example: implementing the pattern in Python (5 min)
Optional extension (45 minutes)
* Additional time for a deeper implementation walkthrough and discussion of trade-offs, limitations, and real-world applications
pydata.org
PyData is an educational program of NumFOCUS, a 501(c)3 non-profit organization in the United States. PyData provides a forum for the international community of users and developers of data analysis tools to share ideas and learn from each other. The global PyData network promotes discussion of best practices, new approaches, and emerging technologies for data management, processing, analytics, and visualization. PyData communities approach data science using many languages, including (but not limited to) Python, Julia, and R.
PyData conferences aim to be accessible and community-driven, with novice to advanced level presentations. PyData tutorials and talks bring attendees the latest project features along with cutting-edge use cases.
00:00 Welcome!
00:10 Help us add time stamps or captions to this video! See the description for details.
Want to help add timestamps to our YouTube videos to help with discoverability? Find out more here: github.com/numfocus/YouTubeVideoTimestamps
Attendees will leave with a clear mental model for when standard prompting breaks, what RLMs change technically, and how to prototype this pattern in practice.
Many LLM systems work well on the first version of a task and then degrade as the problem grows. A prompt that succeeds on one file struggles on ten; a workflow that works for a short sequence becomes brittle when it must track more state, revisit earlier decisions, or reason over larger context. In practice, the limitation is often not model capability, but the assumption that all relevant context must fit into a single prompt or prompt loop.
This talk introduces Recursive Language Models (RLMs) through that failure mode first. RLMs treat context not as input to be consumed, but as data that can be programmatically explored, decomposed, and revisited. Instead of relying on a single prompt, the model interacts with context through code, recursively breaking problems into smaller parts and selectively accessing only what is needed.
Using DSPy's `dspy.RLM` as a concrete Python implementation, I will demonstrate this shift with a compact example. We start with a task that works under a standard approach and then fails as the context grows. I then show how an RLM-style solution changes the structure of the problem: from brittle prompt orchestration to a program that explores context step by step, maintains explicit state, and revisits intermediate results when needed.
While the underlying idea is general, DSPy provides a clean way to prototype this pattern in Python, using a sandboxed REPL and recursive calls to interact with context. For many practitioners still writing prompts by hand, DSPy offers a structured path from prompt engineering to programmatic LLM systems.
Attendees will leave with:
* a concrete understanding of why prompt-based and agent-style approaches become brittle as context grows
* a practical mental model for treating context as something to operate on, not just consume
* a clear starting point for implementing this pattern in Python using DSPy
This is a technical talk for Python practitioners building LLM systems who want a more robust abstraction for long-context reasoning than "add more context" or "add another agent step.
Proposed structure (30 minutes)
* Introduction: where current LLM workflows break as context grows (5 min)
* A concrete example: a task that works at small scale and fails with larger context (5 min)
* Why this happens: limits of prompt-based and agent-style approaches (5 min)
* The shift: treating context as something to explore rather than consume (5 min)
* Recursive Language Models (RLMs): core idea and intuition (5 min)
* DSPy example: implementing the pattern in Python (5 min)
Optional extension (45 minutes)
* Additional time for a deeper implementation walkthrough and discussion of trade-offs, limitations, and real-world applications
pydata.org
PyData is an educational program of NumFOCUS, a 501(c)3 non-profit organization in the United States. PyData provides a forum for the international community of users and developers of data analysis tools to share ideas and learn from each other. The global PyData network promotes discussion of best practices, new approaches, and emerging technologies for data management, processing, analytics, and visualization. PyData communities approach data science using many languages, including (but not limited to) Python, Julia, and R.
PyData conferences aim to be accessible and community-driven, with novice to advanced level presentations. PyData tutorials and talks bring attendees the latest project features along with cutting-edge use cases.
00:00 Welcome!
00:10 Help us add time stamps or captions to this video! See the description for details.
Want to help add timestamps to our YouTube videos to help with discoverability? Find out more here: github.com/numfocus/YouTubeVideoTimestamps
![Demystifying Agentic AI Using Small Language Models [PyCon DE & PyData 2026]
đ Recorded at PyCon DE & PyData 2026, 15.04.2026
https://2026.pycon.de/talks/YZM8TA/
đ Watch Serhii Sokolenko demystify agentic AI as he reveals how to build powerful, scalable data agents using Small Language Models and Iceberg tablesâwithout the need for a GPU farm.
Speakers:
Serhii Sokolenko
Description:
Agentic AI utilizes language models as decisioning engines to perceive environments, make decisions, and execute actions to achieve specific goals. While large language models (LLMs) are often used for these reasoning loops, they are computationally expensive and contain redundant data. Small language models (SLMs), defined as models with 10 to 30 billion parameters that fit within 16 to 32 gigabytes of consumer RAM, provide a cost-effective, private alternative for agentic workflows.
Effective agents require four core capabilities: task decomposition, tool calling, glue code generation, and instruction following. The Salesforce xLAM-2 model, a 32-billion parameter open-source SLM created via supervised fine-tuning on synthetic function-calling data, demonstrates accuracy comparable to much larger proprietary models on the Berkeley function calling leaderboard.
A practical implementation stack for local experimentation includes xLAM-2 with 4-bit quantization, the Llama.cpp inference server for GPU acceleration on Apple silicon, and the LangChain framework for orchestrating agent logic. To prevent hallucinations and ensure data integrity, agents can be integrated with Apache Iceberg lakehouses to access verified business data. This approach allows developers to replace rigid directed acyclic graphs (DAGs) with flexible business rules and guardrails.
âď¸ About PyCon DE:
PyCon DE is the leading conference on open-source Python applications in AI and data science. It brings together industry professionals, researchers, AI and data science practitioners, and software engineering communities, providing a unique platform for collaboration, knowledge sharing, and innovation.
The PyCon DE & PyData 2026 conference delivered an exceptional experience, fostering stronger connections within the Python community while showcasing the latest advancements in artificial intelligence and data science. Attendees enjoyed a diverse and engaging program of talks, workshops, and networking opportunities, further establishing the conference as a premier event for Python, AI, and data science enthusiasts across Germany.
PyCon DE 2027 will take place in Heidelberg from 19 to 23 April 2027.
Follow us:
⢠Newsletter: https://2027.pycon.de/newsletter/
⢠LinkedIn: https://www.linkedin.com/company/pyconde
⢠X: https://www.x.com/pyconde
Links:
⢠Conference website: http://pycon.de
⢠Other sessions: https://2026.pycon.de/talks/
The conference was organized by
⢠Python Softwareverband e.V.: http://pysv.org
⢠Pioneers Hub gemeinnßtzige GmbH: http://pioneershub.org
in collaboration with NumFOCUS Inc.: http://numfocus.org
If you enjoyed this session, please like, and subscribe to our channel for more insightful talks and discussions.
Share this video with your network to spread the knowledge!
Hashtags:
#Python #PyConDE #PyData #OpenSource #AI #DataScience #MachineLearning #SoftwareEngineering #LLMs #Community #Sovereignty
Acknowledgements:
Special thanks to all the volunteers and sponsors who made this event possible.
About:
Python Softwareverband e.V.:
PySV is a non-profit that promotes the use and development of Python in Germany through events, education, and advocacy, fostering an open Python community.
Pioneers Hub gemeinnĂźtzige GmbH:
is a non-profit fostering innovation in AI and tech by connecting experts and promoting knowledge exchange through events and collaborative initiatives.
NumFOCUS Inc.
supports open-source scientific computing by providing financial and logistical support to key projects like NumPy and Jupyter, promoting sustainable development and collaboration.
www.pydata.org
PyData is an educational program of NumFOCUS, a 501(c)3 non-profit organization in the United States. PyData provides a forum for the international community of users and developers of data analysis tools to share ideas and learn from each other. The global PyData network promotes discussion of best practices, new approaches, and emerging technologies for data management, processing, analytics, and visualization. PyData communities approach data science using many languages, including (but not limited to) Python, Julia, and R. Demystifying Agentic AI Using Small Language Models [PyCon DE & PyData 2026]](https://i.ytimg.com/vi/nk5BNz8v_9E/mqdefault.jpg)









![On Interventional Generalisation [PyCon DE & PyData 2026]
đ Recorded at PyCon DE & PyData 2026, 16.04.2026
https://2026.pycon.de/talks/BRRHGY/
đ Watch Andy Kitchen explore interventional generalisation to learn how to move beyond simple predictions and master the art of evaluating hypothetical choices in unseen situations.
Speakers:
Andy Kitchen
Description:
Interventional generalization addresses the challenge of determining whether a specific action will improve a desired outcome in novel, unseen situations. Standard machine learning validation sets are insufficient for this problem because predicting an observation differs fundamentally from intervening in a system. A primary difficulty is that counterfactual outcomes are unobservable; once an action is taken, the alternative reality where a different action was chosen cannot be seen.
The proposed approach integrates structural causal models (SCMs), Bayesian hierarchical modeling, and decision theory. SCMs use Directed Acyclic Graphs (DAGs) to distinguish between conditioning and intervention, employing do-notation to break links from parents to the intervened variable. To handle known unknowns and transferability across different groups or regions, Bayesian hierarchical models estimate between-group and between-sample variances. This allows uncertainty regarding how an effect generalizes to a new environment to be internalized within the model.
Key takeaways include the use of KL divergence to measure interventional detectabilityâthe ability to perceive the consequences of an action. Decision-making is further refined by splitting uncertainty into epistemic (reducible through experimentation) and aleatoric (inherent randomness). By calculating the expected value of an intervention both with and without perfect information, practitioners can determine if further data collection is necessary. Finally, the methodology suggests incorporating safety margins to account for unknown unknowns, acknowledging that unmodeled confounders typically cause interventions to perform worse than predicted.
âď¸ About PyCon DE:
PyCon DE is the leading conference on open-source Python applications in AI and data science. It brings together industry professionals, researchers, AI and data science practitioners, and software engineering communities, providing a unique platform for collaboration, knowledge sharing, and innovation.
The PyCon DE & PyData 2026 conference delivered an exceptional experience, fostering stronger connections within the Python community while showcasing the latest advancements in artificial intelligence and data science. Attendees enjoyed a diverse and engaging program of talks, workshops, and networking opportunities, further establishing the conference as a premier event for Python, AI, and data science enthusiasts across Germany.
PyCon DE 2027 will take place in Heidelberg from 19 to 23 April 2027.
Follow us:
⢠Newsletter: https://2027.pycon.de/newsletter/
⢠LinkedIn: https://www.linkedin.com/company/pyconde
⢠X: https://www.x.com/pyconde
Links:
⢠Conference website: http://pycon.de
⢠Other sessions: https://2026.pycon.de/talks/
The conference was organized by
⢠Python Softwareverband e.V.: http://pysv.org
⢠Pioneers Hub gemeinnßtzige GmbH: http://pioneershub.org
in collaboration with NumFOCUS Inc.: http://numfocus.org
If you enjoyed this session, please like, and subscribe to our channel for more insightful talks and discussions.
Share this video with your network to spread the knowledge!
Hashtags:
#Python #PyConDE #PyData #OpenSource #AI #DataScience #MachineLearning #SoftwareEngineering #LLMs #Community #Sovereignty
Acknowledgements:
Special thanks to all the volunteers and sponsors who made this event possible.
About:
Python Softwareverband e.V.:
PySV is a non-profit that promotes the use and development of Python in Germany through events, education, and advocacy, fostering an open Python community.
Pioneers Hub gemeinnĂźtzige GmbH:
is a non-profit fostering innovation in AI and tech by connecting experts and promoting knowledge exchange through events and collaborative initiatives.
NumFOCUS Inc.
supports open-source scientific computing by providing financial and logistical support to key projects like NumPy and Jupyter, promoting sustainable development and collaboration.
www.pydata.org
PyData is an educational program of NumFOCUS, a 501(c)3 non-profit organization in the United States. PyData provides a forum for the international community of users and developers of data analysis tools to share ideas and learn from each other. The global PyData network promotes discussion of best practices, new approaches, and emerging technologies for data management, processing, analytics, and visualization. PyData communities approach data science using many languages, including (but not limited to) Python, Julia, and R. On Interventional Generalisation [PyCon DE & PyData 2026]](https://i.ytimg.com/vi/qpRzSPGeHkE/mqdefault.jpg)