Pere MartrainDataDrivenInvestorDecoding Risk: Transforming Banks with Customer Embeddings.In this article, we explore the transformative power of embeddings and large language models (LLMs) in customer risk assessment and product…Nov 20, 2023Nov 20, 2023
Pere MartrainTowards AIHow To Set up a NL2SQL System With Azure OpenAI StudioWe’ll see how to use Azure OpenAI Studio to set up an inference endpoint we can call to generate SQL commands.Nov 9, 2023Nov 9, 2023
Pere MartrainTowards AICreate a SuperPrompt for Natural Language to SQL Conversion for OpenAI.One of the things that has changed more in recent months, since the ChatGPT boom, is the emergence of massive large language models able to…Nov 3, 20231Nov 3, 20231
Pere MartrainTowards AIQLoRA: Training a Large Language Model on a 16GB GPU.Let’s explore how Quantization works and provide an example of fine-tuning a Llama3-8-b model on a T4 16GB GPU in Google Colab.Oct 20, 2023Oct 20, 2023
Pere MartrainLevel Up CodingEfficient Fine-Tuning with LoRA. Optimal training for Large Language Models.LoRA is one of the most efficient and effective fine-tuning techniques applicable to Large Language Models. In the post we will take a…Oct 5, 2023Oct 5, 2023
Pere MartrainTowards AIFine-Tuning Models using Prompt-Tuning with Hugging Face’s PEFT LibraryPrompt Tuning is such a simple technique that it’s surprising how remarkably efficient it can be. It’s the form of fine-tuning that…Sep 29, 20231Sep 29, 20231
Pere MartrainTowards AIEvaluating LLM Summaries using Embedding Distance with LangSmith.LangSmith is the new tool from LangChain for tracing and evaluating models. In this article, we will explore how to use it to assist in…Feb 19Feb 19
Pere MartrainTowards AIROUGE Metrics: Evaluating Summaries in Large Language Models.The increment of business applications that are based on Large Language Models has brought the need to measure the quality of the solutions…Aug 21, 2023Aug 21, 2023
Pere MartrainTowards AICreate Your Own Data Analyst Assistant With Langchain AgentsAllow me to share my personal opinion on LLM Agents: They are going to revolutionize everything! If you’re already working with Large…Aug 5, 20232Aug 5, 20232
Pere MartrainLevel Up CodingCreate a Self-Moderated Comment System with LLAMA-2 and LangChainWe’re going to create a self-moderated comment response system, using two LLAMA models chained with LangChain. This way, we’ll prevent…Sep 14, 2023Sep 14, 2023
Pere MartrainTowards AICreate a Self-Moderated Commentary System with LangChain and OpenAILearn how to create a self-moderated comment response system, using two of the models available on OpenAI chained with LangChain…Sep 10, 20231Sep 10, 20231
Pere MartrainTowards AIQuery Your DataFrames with Powerful Large Language Models using LangChain.Get ready to use your own data with Large Language Models From Hugging Face Using a Vector Database and LangChain!Jul 28, 2023Jul 28, 2023
Pere MartrainTowards AIHarness the Power of Vector Databases: Influencing Language Models with Personalized Information.We are going to personalize the prompt with information stored in ChromaDB, a Vector Database. This is known as Retrieval Augmented…Jul 16, 20235Jul 16, 20235
Pere MartrainLevel Up CodingInfluencing a Large Language Model response with in-context learning.A simple introduction to prompt Engineering with OpenAI. Some differences between gpt-3.5 and gpt-4o.Aug 27Aug 27
Pere MartrainTowards AIFirst NL2SQL Chat with OpenAI and Gradio.You are going to create a simple Natural Language to SQL translator using models from OpenAI and create the interface with Gradio.Aug 14Aug 14
Pere MartrainTowards AIHow to Create a Natural Language to SQL Translator Using OpenAI APIIn this simple guide, we are going to see how to use the gpt-3.5-turbo model using the OpenAI API to create a SQL Generator.Jun 15, 20234Jun 15, 20234
Pere MartrainArtificial Intelligence in Plain EnglishCreate a simple Chatbot with OpenAI and Gradio.This is not about creating a chatbot. It is about understanding how roles work in OpenAI, how memory is maintained, and how to create a…Aug 8Aug 8
Pere MartrainTowards AICreate Your First Chatbot Using GPT gpt-3.5-turbo / gpt-4o-mini, OpenAI, Python and Panel.In this article, we’ll see how the OpenAI API works and how we can use one of its famous models to make our own Chatbot.May 3, 20232May 3, 20232