-
Book Overview & Buying
-
Table Of Contents
Building Natural Language and LLM Pipelines
By :
In this chapter, we have idx_57ef6c64transitioned from being a user of the Haystack framework to an idx_a429740earchitect capable of extending it. A critical part of this transition, moving RAG development from “an art to a mature engineering practice,” is the ability to write robust, predictable, and debuggable code.
Practice implementing tests for custom components
A series of tests for the components explored in this chapter can be found here: https://github.com/PacktPublishing/Building-Natural-Language-and-LLM-Pipelines/tree/main/ch5/tests.
Our custom components, especially in a complex, multi-stage pipeline, are no different from any other piece of production software: they must be rigorously tested.
The test scripts provided are as follows:
test_warmup_components.py: https://github.com/PacktPublishing/Building-Natural-Language-and-LLM-Pipelines/blob/main/ch5/tests/test_warmup_components.pytest_synthetic_test_components.py...