DeepLearning.AI
AI is the new electricity and will transform and improve nearly all areas of human lives.

๐Ÿ’ป ย  Accessing Utils File and Helper Functions

In each notebook on the top menu:

1: ย  Click on "File"

2: ย  Then, click on "Open"

You will be able to see all the notebook files for the lesson, including any helper functions used in the notebook on the left sidebar. See the following image for the steps above.


๐Ÿ’ป ย  Downloading Notebooks

In each notebook on the top menu:

1: ย  Click on "File"

2: ย  Then, click on "Download as"

3: ย  Then, click on "Notebook (.ipynb)"


๐Ÿ’ป ย  Uploading Your Files

After following the steps shown in the previous section ("File" => "Open"), then click on "Upload" button to upload your files.


๐Ÿ“— ย  See Your Progress

Once you enroll in this courseโ€”or any other short course on the DeepLearning.AI platformโ€”and open it, you can click on 'My Learning' at the top right corner of the desktop view. There, you will be able to see all the short courses you have enrolled in and your progress in each one.

Additionally, your progress in each short course is displayed at the bottom-left corner of the learning page for each course (desktop view).


๐Ÿ“ฑ ย  Features to Use

๐ŸŽž ย  Adjust Video Speed: Click on the gear icon (โš™) on the video and then from the Speed option, choose your desired video speed.

๐Ÿ—ฃ ย  Captions (English and Spanish): Click on the gear icon (โš™) on the video and then from the Captions option, choose to see the captions either in English or Spanish.

๐Ÿ”… ย  Video Quality: If you do not have access to high-speed internet, click on the gear icon (โš™) on the video and then from Quality, choose the quality that works the best for your Internet speed.

๐Ÿ–ฅ ย  Picture in Picture (PiP): This feature allows you to continue watching the video when you switch to another browser tab or window. Click on the small rectangle shape on the video to go to PiP mode.

โˆš ย  Hide and Unhide Lesson Navigation Menu: If you do not have a large screen, you may click on the small hamburger icon beside the title of the course to hide the left-side navigation menu. You can then unhide it by clicking on the same icon again.


๐Ÿง‘ ย  Efficient Learning Tips

The following tips can help you have an efficient learning experience with this short course and other courses.

๐Ÿง‘ ย  Create a Dedicated Study Space: Establish a quiet, organized workspace free from distractions. A dedicated learning environment can significantly improve concentration and overall learning efficiency.

๐Ÿ“… ย  Develop a Consistent Learning Schedule: Consistency is key to learning. Set out specific times in your day for study and make it a routine. Consistent study times help build a habit and improve information retention.

Tip: Set a recurring event and reminder in your calendar, with clear action items, to get regular notifications about your study plans and goals.

โ˜• ย  Take Regular Breaks: Include short breaks in your study sessions. The Pomodoro Technique, which involves studying for 25 minutes followed by a 5-minute break, can be particularly effective.

๐Ÿ’ฌ ย  Engage with the Community: Participate in forums, discussions, and group activities. Engaging with peers can provide additional insights, create a sense of community, and make learning more enjoyable.

โœ ย  Practice Active Learning: Don't just read or run notebooks or watch the material. Engage actively by taking notes, summarizing what you learn, teaching the concept to someone else, or applying the knowledge in your practical projects.


๐Ÿ“š ย  Enroll in Other Short Courses

Keep learning by enrolling in other short courses. We add new short courses regularly. Visit DeepLearning.AI Short Courses page to see our latest courses and begin learning new topics. ๐Ÿ‘‡

๐Ÿ‘‰๐Ÿ‘‰ ๐Ÿ”— DeepLearning.AI โ€“ All Short Courses [+]


๐Ÿ™‚ ย  Let Us Know What You Think

Your feedback helps us know what you liked and didn't like about the course. We read all your feedback and use them to improve this course and future courses. Please submit your feedback by clicking on "Course Feedback" option at the bottom of the lessons list menu (desktop view).

Also, you are more than welcome to join our community ๐Ÿ‘‰๐Ÿ‘‰ ๐Ÿ”— DeepLearning.AI Forum


Sign in

Create Your Account

Or, sign up with your email
Email Address

Already have an account? Sign in here!

By signing up, you agree to our Terms Of Use and Privacy Policy

Choose Your Learning Path

Enjoy 30% Off Now. Cancel Anytime!

MonthlyYearly

Change Your Plan

Your subscription plan will change at the end of your current billing period. Youโ€™ll continue to have access to your current plan until then.

View All Plans and Features

Welcome back!

Hi ,

We'd like to know you better so we can create more relevant courses. What do you do for work?

DeepLearning.AI
  • Explore Courses
  • Community
    • Forum
    • Events
    • Ambassadors
    • Ambassador Spotlight
  • My Learnings
  • daily streak fire

    You've achieved today's streak!

    Complete one lesson every day to keep the streak going.

    Su

    Mo

    Tu

    We

    Th

    Fr

    Sa

    free pass got

    You earned a Free Pass!

    Free Passes help protect your daily streak. Complete more lessons to earn up to 3 Free Passes.

    Free PassFree PassFree Pass
Welcome to this short course. Built in partnership with Nexusflow and taught by Jiantao Jiao, who is the co-founder and CEO of Nexusflow, as well as assistant professor of ESS stats at UC Berkeley. And Venkat Srinivasan, who is a founding engineer at Nexusflow. Large language models are trained on text, which is a form of unstructured data, but our computing infrastructure is largely built on structured data with virtually defined interfaces like APIs that expect data in a certain format. Function-calling bridges this gap. Here's how LLMs and function-calling works. In the prompt sent to a function-calling capable LLM, will include descriptions of functions that are available to the LLM to use. These descriptions include texts describing what a function might do so the LLM knows when they should use that function, as well as additionally information needed to call that function, such as that function's name and a description of its arguments. When the LLM has a query that it determines is best served by calling a function, the LLM will then generate the needed parameters from the query and return a string that could be used to call that function. Notice that the LLM doesn't call the function directly, it just returns a string that could be used to call that function. These functions are often referred to as tools, and can be used to extend the capabilities of a chatbot, or to build agents, for example, such as a research agent whose tools might include web search or Wikipedia lookups. But function-calling has proven useful in many applications that goes even beyond chat. For example, DeepLearning.AI uses simple AI agents that we build internally to analyze learner feedback to keep on improving our courses. Of course, our core team does read your feedback, and we appreciate you taking the time to provide it. And to gather statistics, we provide an LLM with a prompt that includes a description of a function called "record learner feedback". They can record the sentiment and rating as well as report any technical problems described. The LLM that we used for this is actually a special purpose LLM called NexusRavenV2-13B fine-tuned for function- calling by Nexusflow. Andrew, I'm glad to hear that. NexusRavenV2-13B is an open-source model you can download from HuggingFace. You can also use a hosted version available on our sites. It is a model you'll be using in this course. Many applications do not require a full capability of a general-purpose foundation model. Next, NexusRavenV2-13B has only a certain billion parameters, but can output Chat GPT-4 in some function calling benchmarks. This NexusRavenV2-13B and other fine-tuning smaller models, are small enough to be locally hosted. This eliminates the latency and cost barriers that might prevent you from adding a natural language interface to your applications. There are many instances where you may want to convert natural language inputs, into structured outputs, like a function call. Your business may have a library of functions that perform dashboard operations, and you would like to add a natural language interface. Or you might have applications that need to process transcripts, notes, or proceedings and store them in a database. Every business has its own unique applications. In this course, Venkat will be showing you how you can add a function-calling capability to your applications. We'll start by taking a deeper dive into what function-calling is and how you can use it. You will form prompts with function definitions, as Andrew described, and then you'll use the LLM response to call those functions. Once you have mastered that, we'll kick things up a notch, by defining and calling multiple functions, you will call nested functions, where arguments to one function are themselves functions. Many services on the web have APIs defined using an open API description. You'll also learn to convert these specifications into functions callable by your LLM. You will finish the course with a practical application which takes a customer's service, transcripts and builds SQL calls to store selected data to a database. Many people have worked to create this course. I'd like to thank from Nexusflow, Jian Zhang and Banghua Zhu. From DeepLearning.AI Geoff Ladwig and Esmaeil Gargari, have also contributed to this course. Lots of exciting things with function-calling in this course. Let's go on to the next video to get started, and I hope this course will help you make your applications highly functional.
course detail
Next Lesson
Function-calling and data extraction with LLMs
  • Introduction
    Video
    ใƒป
    5 mins
  • What is function calling
    Video with Code Example
    ใƒป
    9 mins
  • Function calling variations
    Video with Code Example
    ใƒป
    12 mins
  • Interfacing with external tools
    Video with Code Example
    ใƒป
    5 mins
  • Structured Extraction
    Video with Code Example
    ใƒป
    7 mins
  • Applications
    Video with Code Example
    ใƒป
    10 mins
  • Course project dialog processing
    Video with Code Example
    ใƒป
    9 mins
  • Conclusion
    Video
    ใƒป
    1 min
  • Course Feedback
  • Community