Intermediate1h25m

Building AI Applications With Haystack

Instructor: Tuana Çelik

Haystack logo

Earn an accomplishment with PRO

  • Intermediate
  • 1h25m
  • 8 Video Lessons
  • 6 Code Examples
  • Earn an accomplishment with PRO
  • Instructor: Tuana Çelik
  • HaystackHaystack
  • Learn more aboutMembership PRO Plan

What you'll learn

  • Learn how Haystack components, pipelines, and document stores can be used to build custom AI applications.

  • Build a RAG pipeline and extend its ability by creating custom components.

  • Use conditional branching, self-reflecting agents, and function calling to build complex pipelines and apps.

Course recap

PRO

This course teaches how to build and customize AI applications using Haystack, an open-source framework for building pipelines that combine LLMs with retrieval, processing, and tool use. Students learn to create RAG pipelines, custom components, branching/looping pipelines, and chat agents with function calling.

Concept map

Concepts in Building AI Applications With Haystack and the courses that connect to themBuilding AI Applications with HaystackBuilding AI Applications…Haystack pipelinesComponentsCustom componentsRetrieval augmented generationRetrieval augmented gener…Chat agents with function callingChat agents with function…Branching and loopingBuilding Agentic RAG with LlamaIndexBuilding Agentic RAG with…Advanced Retrieval for AIBuild LLM Apps with LangChain.jsBuild LLM Apps with LangC…Agent Memory: Building Memory-Aware AgentsAgent Memory: Building Me…Concepts in Building AI Applications With Haystack and the courses that connect to themBuilding AI Applications with HaystackBuilding AI App…Haystack pipelinesHaystack pipeli…ComponentsCustom componentsCustom componen…Retrieval augmented generationRetrieval augme…Chat agents with function callingChat agents wit…Branching and loopingBranching and l…

Key concepts

  • Haystack pipelinesDirected graphs of components for processing data, retrieving information, and generating responses
  • ComponentsModular building blocks (generators, retrievers, prompt builders) that can be connected in pipelines
  • Custom componentsUser-defined components that extend Haystack's capabilities
  • Retrieval augmented generationCore pattern combining document retrieval with LLM generation
  • Chat agents with function callingUsing OpenAI function calling to let chat models invoke Haystack pipelines as tools
  • Branching and loopingConditional routing and iterative refinement within pipelines

Lesson highlights

  1. 1.Introduction Haystack overview, component-based architecture
  2. 2.Building RAG Pipelines Document stores, retrievers, prompt builders, generators
  3. 3.Custom Components Extending Haystack with user-defined components
  4. 4.Branching Pipelines Conditional routing based on content or quality
  5. 5.Looping and Self Reflection - Iterative improvement patterns
  6. 6.Chat Agent with Function Calling OpenAI function calling with Haystack pipeline tools
  7. 7.Advanced Patterns Complex pipeline compositions
  8. 8.Conclusion

About this course

In Building AI Applications with Haystack you will learn a high-level orchestration framework that helps ensure your applications are flexible, extendible, and maintainable, even as the technology stack changes, user needs arise, and new features are added.

Using a framework can provide common features out of the box that significantly speeds up the development process. Haystack offers robust and flexible architecture and framework for building AI applications. It manages complexity and helps you focus more on developing your application at a higher level of abstraction.

Throughout the course, you will develop several projects, including a RAG app, a news summarization app, a chat agent with function calling, and a self-reflecting agent with loops.

What you’ll do:

  • Learn about the core abstractions and unique building blocks of the Haystack framework and see how these elements can be combined for various AI use cases.
  • Build a RAG pipeline by using Haystack components, pipelines, and document stores.
  • Create custom components in your pipeline by building a Hacker News summarizer that extends your app’s ability to access APIs.
  • Use conditional routing to create a branching pipeline with a fall back to web-search when the LLM does not have the context needed to fully respond to the user’s query.
  • Build a self-reflecting agent for named entity recognition with a Haystack pipeline that is able to loop using an output validator custom component.
  • Create a chat agent using OpenAI’s function-calling capabilities which allow you to provide Haystack pipelines as tools to the LLM, enhancing that agent’s capabilities.

Start building exciting LLM applications and optimizing your development workflow using Haystack.

Who should join?

Anyone who has basic Python knowledge and wants to learn to build and customize complex apps using Haystack!

Course Outline

8 Lessons・6 Code Examples
Unlock certificates

Elevate your learning experience with Pro

Upgrade to Pro and gain unlimited accomplishments on your resume

Learn More

Instructor

Tuana Çelik

Tuana Çelik

Course access is free for a limited time during the DeepLearning.AI learning platform beta!

Want to learn more about Generative AI?

Keep learning with updates on curated AI news, courses, and events, as well as Andrew’s thoughts from DeepLearning.AI!