LLM Learning Series 2. Function Calling

Introduction For typical LLM interactions, a single prompt or a few rounds of chat are sufficient to achieve the desired result. However, some tasks require the LLM to access information beyond its internal knowledge base. For example, retrieving today’s weather information for a specific city or searching for a particular anime necessitates calling external functions. What is Function Calling? Function calling in LLMs empowers the models to generate JSON objects that trigger external functions within your code. This capability enables LLMs to connect with external tools and APIs, expanding their ability to perform diverse tasks. ...

May 5, 2024 · zhoukuncheng

LLM Learning Series 1. Prompt Engineering

Mastering the Art of LLM Prompts Large Language Models (LLMs) like GPT-4 and Claude possess remarkable capabilities. However, unlocking their full potential requires effective communication through well-crafted prompts. This guide delves into the art of prompt engineering, offering a step-by-step approach – from fundamental principles to advanced techniques – to harness the true power of LLMs. Step 1: Choosing the Optimal Model Latest and Greatest: Newer models like GPT-4 Turbo offer significant advantages over predecessors like GPT-3.5 Turbo, including smoother natural language understanding. For simpler tasks, extensive prompt engineering may be less crucial. ...

April 27, 2024 · zhoukuncheng

Making Vocabulary Memorization Less Boring with LLMs and Telegram Bots

Always Abandoning English Vocabulary? Learning from Duolingo 🦉 to Let Words Remind You Memorizing vocabulary is inevitable in learning English. From primary school to graduate school, and even in some jobs, you need to remember words. But gnawing on vocabulary books or rigidly memorizing on a phone is extremely inefficient. Now that LLMs are so popular, why not use them? After all, the ‘L’ in LLM stands for Language. LLMs might lack precision in other rigorous tasks, but languages like English are their forte. If technology can solve a problem, don’t trouble yourself! This article shares how to use the Eudic Dictionary API, an LLM, and a Telegram Bot to create an English vocabulary learning assistant, making vocabulary memorization less painful. Of course, you might find it annoying after a few days, as the inspiration comes from the Duolingo App 🦉. ...

April 19, 2024 · zhoukuncheng