August 2024 Summaries
2 posts from CircleCI
Filter
Month:
Year:
Post Summaries
Back to Blog
LlamaIndex is a framework designed to enhance large language model (LLM) applications by incorporating domain-specific data, allowing users to create customized tools such as question-answering chatbots and document-understanding applications. This tutorial guides users through building a retrieval-augmented generation (RAG) question-answering system using LlamaIndex, with the system's functionality exposed as a REST API via Flask. It includes steps for setting up a Python development environment, configuring continuous integration with CircleCI, and writing unit tests using pytest. The tutorial uses a Paul Graham essay as input data but allows for customization with other data sources, and it provides a comprehensive guide to automating testing processes to ensure efficient development. The complete source code is available on GitHub for further exploration and implementation.
Aug 09, 2024
1,651 words in the original blog post.
As software systems mature, their complexity increases, leading to higher costs in changing and scaling them, making scalability a crucial aspect of enterprise software. This tutorial introduces contract testing with Pact as a solution to make integration testing more scalable and manageable by verifying contracts between dependent API endpoints. Unlike end-to-end testing, which involves multiple systems, contract testing isolates integration points, ensuring messages conform to an agreed-upon contract between consumer and provider services. The tutorial covers setting up Pact for testing HTTP integrations using Node.js and CircleCI to automate tests in a continuous integration pipeline. It details the configuration of consumer and provider tests, illustrating how Pact's contract testing improves maintainability and detects changes in expected responses, thus facilitating seamless communication between microservices. The tutorial emphasizes the ease of integrating automated contract tests into a CI/CD pipeline, enhancing the reliability and efficiency of the development workflow, and concludes with practical steps to set up and run these tests using CircleCI.
Aug 05, 2024
1,908 words in the original blog post.