My ๐ข๐ฝ๐ฒ๐ป ๐ฆ๐ผ๐๐ฟ๐ฐ๐ฒ implementation of ๐๐ฒ๐ฒ๐ฝ ๐ฅ๐ฒ๐๐ฒ๐ฎ๐ฟ๐ฐ๐ต ๐๐ด๐ฒ๐ป๐ from scratch ๐
I have released the latest episode of my Newsletter and an update to my AI Engineers Handbook GitHub repository.
Walkthrough Blog: www.newsletter.swirlai.com/p/building-d...
Link to GitHub inside
#LLM #AI #MachineLearning
Posts by Aurimas Griciลซnas
My ๐ข๐ฝ๐ฒ๐ป ๐ฆ๐ผ๐๐ฟ๐ฐ๐ฒ implementation of ๐๐ฒ๐ฒ๐ฝ ๐ฅ๐ฒ๐๐ฒ๐ฎ๐ฟ๐ฐ๐ต ๐๐ด๐ฒ๐ป๐ from scratch ๐
I have released the latest episode of my Newsletter and an update to my AI Engineers Handbook GitHub repository.
Walkthrough Blog: www.newsletter.swirlai.com/p/building-d...
Link to GitHub inside
#LLM #AI #MachineLearning
This is just the first part of the series. The ipynb or python code, runs an agent class that when asked will decide if a regular non-augmented answer should be returned or a tool that we define in the code should be used to get the right answer.
Last week I released the first article in my hands-on ๐๐๐ถ๐น๐ฑ๐ถ๐ป๐ด ๐๐ ๐๐ด๐ฒ๐ป๐๐ ๐๐ฟ๐ผ๐บ ๐ฆ๐ฐ๐ฟ๐ฎ๐๐ฐ๐ต series. It covers the tool use element of an Agent.
I wanted to do this for quite some time now and finally the time has arrived!
The article: www.newsletter.swirlai.com/p/building-a...
#LLM #AI #ML
๐
You can also find a Jupyter notebook and python scripts that complement the article in a GitHub repo (links in the article).
Youtube videos coming soon!If youโre looking for something to dig your hands into between holidays be sure to take a look!
โก๏ธ How to think about constructing effective system prompts that can be used for Agents.
โก๏ธ How to build an Agent class that is able to plan and execute actions using provided Tools.
๐
After finishing the project you will learn:
โก๏ธ What AI Agents are.
โก๏ธ How the Tool usage in AI Agents actually works.
โก๏ธ How to build a decorator wrapper that extracts relevant details from a Python function to be passed to the LLM via system prompt.
๐
If you are using any orchestration frameworks for agentic applications, you might be abstracted away from what using a tool really means. I believe that understanding applications from the base building blocks is really important so we are implementing all of the abstractions from scratch.
๐
Last week I released the first article in my hands-on ๐๐๐ถ๐น๐ฑ๐ถ๐ป๐ด ๐๐ ๐๐ด๐ฒ๐ป๐๐ ๐๐ฟ๐ผ๐บ ๐ฆ๐ฐ๐ฟ๐ฎ๐๐ฐ๐ต series. It covers the tool use element of an Agent.
I wanted to do this for quite some time now and finally the time has arrived!
The article: www.newsletter.swirlai.com/p/building-a...
#LLM #AI #ML
๐
If you want to start learning Kubernetes, look no further ๐
Some time ago I created a 2 part series on the main concepts you should know when working with K8s. Examples and walkthroughs included!
Link to the article: www.newsletter.swirlai.com/p/a-guide-to...
#AI #MachineLearning #Kubernetes
Since I have resumed the newsletter, there will be many hands-on AI projects utilising Kubernetes for deployment. Be sure to sharpen your skills if you intend to follow! This resource is perfect for that.
In the two articles you will learn:
โก๏ธ Why Kubernetes for AI and Data Engineering.
โก๏ธ General Kubernetes Resources for application configuration.
โก๏ธ How to deploy applications.
โก๏ธ Different ways to deploy applications and when to use which.
โก๏ธ Visual explanation for all of the above.
๐
If you want to start learning Kubernetes, look no further ๐
Some time ago I created a 2 part series on the main concepts you should know when working with K8s. Examples and walkthroughs included!
Link to the article: www.newsletter.swirlai.com/p/a-guide-to...
#AI #MachineLearning #Kubernetes
What is ๐๐ผ๐ป๐๐ถ๐ป๐๐ผ๐๐ ๐ง๐ฟ๐ฎ๐ถ๐ป๐ถ๐ป๐ด (๐๐ง) in MLOps and what steps are needed to achieve it?
CT is the process of automated ML Model retraining in Production Environments on a specific trigger. Letโs look into some prerequisites for this:
๐
#LLM #MachineLearning #AI
- The need for Feature Store will wary on the types of Models you are deploying. I would prioritise it if you have Models that perform Online predictions as it will help with avoiding Training/Serving Skew.
- Donโt rush with Automated retraining. Ad-hoc and on-schedule will bring you a long way.
- Orchestration of ML Pipelines is always a good idea, there are many tools supporting this (Airflow, Kubeflow, VertexAI etc.). If you are not doing it yet - grab this next, also make the validation steps part of this goal.
๐
๐ ๐ ๐๐ต๐ผ๐๐ด๐ต๐๐ ๐ผ๐ป ๐๐ง:
โก๏ธ Introduction of CT is not straightforward and you should approach it iteratively. The following could be good Quarterly Goals to set:
- Experiment Tracking is extremely important at any level of ML Maturity and the least invasive in the process of ML Model training.
๐
5) Introduction of Feature Store (Optional).
- Avoid work duplication when defining features.
- Reduce risk of Training/Serving Skew.
๐
4) Different Pipeline triggers in production.
- Ad-hoc.
- Cron.
- Reactive to Metrics produced in Model Monitoring System.
- Arrival of New Data.
โ
This is where the Continuous Training is actually triggered.
๐
3) Introduction of ML Metadata Store.
- Any Metadata related to ML artifact creation is tracked here.
- We also track performance of the ML Model.
โ
Experiments become reproducible and comparable between each other.
โ
Model Registry acts as glue between training and deployment pipelines.
๐
โ
Short circuits of the Pipeline allow for safe CT in production.
๐
2) Introduction of strict Data and Model Validation steps in the ML Pipeline.
- Data is validated before training the Model. If inconsistencies are found - Pipeline is aborted.
- Model is validated after training. Only after it passes the validation is it handed over for deployment.
๐
โ
You deploy Pipelines instead of Model Artifacts allowing Continuous Training In production.
โ
Reuse of components allows for rapid experimentation.
๐
1) Automation of ML Pipelines.
- Pipelines are orchestrated.
- Each pipeline step is developed independently and is able to run on different technology stacks.
- Pipelines are treated as a code artifact.
๐
What is ๐๐ผ๐ป๐๐ถ๐ป๐๐ผ๐๐ ๐ง๐ฟ๐ฎ๐ถ๐ป๐ถ๐ป๐ด (๐๐ง) in MLOps and what steps are needed to achieve it?
CT is the process of automated ML Model retraining in Production Environments on a specific trigger. Letโs look into some prerequisites for this:
๐
#LLM #MachineLearning #AI
And letโs not forget the less popular part:
๐) Observing, Evaluating, Monitoring and Securing your application in production!
What other pieces of the system am I missing? Let me know in the comments ๐
#LLM #AI #MachineLearning
๐ ) Prompt Engineering - having context available for usage in your prompts does not free you from the hard work of engineering the prompts. You will still need to align the system to produce outputs that you desire and prevent jailbreak scenarios.
๐
๐๐ฒ๐ป๐ฒ๐ฟ๐ฎ๐๐ถ๐ผ๐ป:
๐ ) LLM - Choosing the right Large Language Model to power your application.
โ
It is becoming less of a headache the further we are into the LLM craze. The performance of available LLMs are converging, both open source and proprietary.
๐
๐ ) Heuristics - business rules applied to your retrieval procedure.
- Time importance.
- Reranking.
- Duplicate context (diversity ranking).
- Source retrieval.
- Conditional document preprocessing.
๐
๐ ) Vector Search
- Choice of similarity measure.
- Choosing the query path - metadata first vs. ANN first.
- Hybrid search.
๐