@techwith_ram: Watching this talk about Agentic Search for Context Engineering by @helloiamleonie Watched half of this talk. Really we…
Summary
A workshop/tutorial on agentic search techniques for context engineering, teaching how AI agents decide what context to retrieve from files, databases, memory, and the web using langchain and Elasticsearch.
View Cached Full Text
Cached at: 05/09/26, 01:41 AM
Watching this talk about Agentic Search for Context Engineering by @helloiamleonie Watched half of this talk. Really well put together. It’s about how agents actually decide what to pull from files, databases, memory, and the web & why that choice often matters more than the model itself. You can get the slides here from her talk: https://github.com/iamleonie/workshop-agentic-search.git…
iamleonie/workshop-agentic-search
Source: https://github.com/iamleonie/workshop-agentic-search
Workshop: Agentic Search for Context Engineering
This workshop discusses different agentic search techniques for context engineering.

Learning outcomes: By the end of this workshop you will have
- experimented with a few different ways to search for context across different context sources
- learned how you can expand the capabilities of search tools with Agent Skills and additional CLIs
- gained an intuition on the trade-offs for different search tool
Set up
1. Create and activate a Python virtual environment
python3 -m venv .venv
source .venv/bin/activate
2. Install depencendies
This notebook uses langchain v1.2.12 and langchain-openai v1.1.11.
pip install -r requirements.txt
3. Set up Elasticsearch
This workshop uses a local Elasticsearch instance as one of the out-of-context sources.
The easiest way to run Elasticsearch locally is using the start-local script, which sets up Elasticsearch (and optionally Kibana) using Docker with a simple one-line command:
curl -fsSL https://elastic.co/start-local | sh
This creates an elastic-start-local folder containing configuration files and startup scripts. To start Elasticsearch:
cd elastic-start-local
./start.sh
Expected output:
✔ Container es-local-dev Healthy
✔ Container kibana-local-dev Healthy
4. Environment variables and API Keys
This workshop requires three categories of environment variables, which need to be added to the .env file (see .env.example)
- LLM API key: These notebooks use OpenAI models through LiteLLM. Alternatively, you can use any LLM of your choice that is capable of tool use.
- Jina API key: You can obtain a free Jina API key on from the official Jina page without registration.
- Elasticsearch credentials: During the set up of your local Elasticsearch instance, you will find the Password (username and url stay the same).
5. Data preparation
The workshop’s examples are based on the AI Engineer Europe Conference schedule, which is available in the data folder under session.json (Downloaded from: https://www.ai.engineer/europe/schedule).
This workshop discusses data store and filesystem as context sources. To prepare the Elasticsearch data store and the local filesystem, run the data preparation notebook.
Course Outline
| Topic | Context source | Retrieval tool | Notebook |
|---|---|---|---|
| Vanilla Agentic Search | Local Elasticsearch cluster | Semantic search tool | 01_vanilla_agentic_search.ipynb |
| Agentic Search with DB query tool | Local Elasticsearch cluster | ESQL Query execution tool (+ Agent Skills) | 02_advanced_agentic_search.ipynb |
| Agentic Search with Shell tool | Local Filesystem | Shell tool (+ jina-grep-cli) | 03_agentic_search_with_bash_tool.ipynb |
Additional Resources
Similar Articles
@helloiamleonie: Took some inspiration from @vboykis and converted my first ever talk into a blog post. I talk about the role of agentic…
The article by Leonie Monigatti discusses the role of agentic search in context engineering for AI agents, tracing the evolution from fixed RAG pipelines to agentic RAG and context curation. It provides intuition on the strengths and weaknesses of various search tools used in agentic systems.
@jerryjliu0: Agentic search has moved from fixed RAG pipelines into flexible agent harnesses with access to a set of search tools: k…
LlamaIndex introduces agentic retrieval with LlamaParse Index, combining semantic search and grep for flexible agent harnesses. A webinar on June 30th will demonstrate these tools.
Effective context engineering for AI agents
Anthropic publishes a guide defining context engineering as the evolution of prompt engineering, focusing on curating optimal context tokens for AI agents to maintain performance and focus during multi-turn inference.
@eng_khairallah1: https://x.com/eng_khairallah1/status/2053405155630936297
The article argues that context engineering, which involves structuring the information and memory available to an AI, is more critical for performance than prompt engineering alone. It provides a structured overview of a course designed to teach how to build reliable AI systems by managing context layers like session history and persistent memory.
@jerryjliu0: A full tour through RAG, document context, and AI agents - from 2023 to 2026 @hexapode gave a comprehensive 90-min work…
Comprehensive workshop slides tracing the evolution of RAG, document context, and AI agents from 2023 to 2026, covering pain points, reranking, agent loops, and document parsing challenges.