
Here are some of the latest updates from working on the book so far.
PHP and LLMs book - Local LLMs: Streamlining Your Development Workflow
You can read the full chapter at https://dev.to/alnutile/php-and-llms-book-local-llms-streamlining-your-development-workflow-3d9i
This chapter covers the basics of working with local Large Language Models (LLMs) in a PHP development environment. We'll go through setting up Ollama on your machine and creating a simple PHP client to interact with its API. The chapter demonstrates how to use both completion and chat modes, and includes a practical example of using LLMs for news summarization. Along the way, we'll cover important development practices like mocking API responses and writing effective tests. By the end of this chapter, you should have a foundational understanding of integrating local LLMs into your PHP applications, setting the stage for more advanced topics in later chapters.
PHP and LLMs β Web Scraping and Building an Events Database using Tools
Read about it at https://medium.com/@alnutile/php-and-llms-web-scraping-and-building-an-events-database-f2f8fe1b3f5d
Here, we explore how we can take data scraped from a website and use LLMs to process the content. The chapter includes examples of tools that can extract relevant information from web pages and convert it into Events in our database.
We donβt delve into scraping here, since itβs pretty common and there are many ways to do it. We focus on building a tool that can handle a complex array of objects (Events) for the LLM to pass into it.
Book Progress
The book so far will have the following chapters.
- [COMPLETE] Introduction
- [COMPLETE] Local LLMs
- [COMING OUT MONDAY 2024-09-02] Agnostic Driver
- Prompting Overview
- [COMPLETE] Parsing Opt Out Emails
- Tools Overview
- [COMPLETE] Web Scraping and Event Database
- Agnostic Tools
- Chaining
- Web Search
- Marketing Assistant
- Handwritten to Task
- RAG and Vector
- Sitemap Feed
- Agents
- [COMING OUT MONDAY 2024-09-09] Standards Checker
- Final Thoughts
- Terminology
Video Series and more
After the book is done I will release a series that will continue to walk PHP developers through using LLMs in their day to day solutions. In the meantime I will be releasing shorts and intro vidoes so please follow me in the various places
πΊ YouTube Channel - https://youtube.com/@alfrednutile?si=M6jhYvFWK1YI1hK9
π PHP and LLMs the book - https://bit.ly/php_llms
π OpenSource Laravel RAG - https://www.larallama.io
π¦ https://x.com/alnutile
π Dev.to https://dev.to/alnutile
π§π»βπ» The Code - https://github.com/LlmLaraHub/laralamma
π° The NewsLetter - https://sundance-solutions.mailcoach.app/php-and-llms
ποΈ Medium - https://medium.com/@alnutile
π€π» LinkedIn - https://www.linkedin.com/in/alfrednutile/
πΊ YouTube Playlist - https://www.youtube.com/watch?v=KM7AyRHx0jQ&list=PLL8JVuiFkO9IuomxxlMTiCvJ-8c-mbeZX
π¬ Discussions - https://github.com/orgs/LlmLaraHub/discussions
|