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, Large Language Models with Semantic Search, built in partnership with Cohere. In this course, you'll learn how to incorporate large language models, or LLMs, into information search in your own applications. For example, let's say you run a website with a lot of articles, picture Wikipedia for the sake of argument, or a website with a lot of e-commerce products. Even before LLMs, it was common to have keyword search to let people maybe search your site. But with LLMs, you can now do much more. First, you can let users ask questions that your system then searches your site or database to answer. Second, the LLM is also making the retrieve results more relevant to the meaning or the semantics of what the user is asking about. I'd like to introduce the instructors for this course, Jay Allamar and Luis Serrano. Both Jay and Luis are experienced machine learning engineers as well as educators. I've admired for a long time some highly referenced illustrations that Jay had created to explain transformer networks. He's also co-authoring a book, Hands-On Large Language Models. Luis is the author of the book, Grokking Machine Learning, and he also taught with DeepLearning.ai. Math for Machine Learning. At Cohere, Jay and Luis, together with Neil Amir, have also been working on a site called. LLMU, and have a lot of experience teaching developers to use LLMs. So I was thrilled when they agreed to teach semantic search with LLMs. Thanks, Andrew. What an incredible honor it is to be teaching this course with you. Your machine learning course introduced me to machine learning eight years ago, and continues to be an inspiration to continue sharing what I learn. As you mentioned, Luis and I work at Cohere, so we get to advise others in the industry on how to use and deploy large language models for various use cases. We are thrilled to be doing this course to give developers the tools they need to build robust LLM powered apps. We're excited to share what we learned from our experience in the field. Thank you, Jay and Luis. Great to have you with us. This course consists of the following topics. First, it shows you how to use basic keyword search, which is also called lexical search, which powered a lot of search systems before large language models. It consists of finding the documents that has the highest amount of matching words with the query. Then you learn how to enhance this type of keyword search with a method called re-rank. As the name suggests, this then ranks the responses by relevance with the query. After this, you learn a more advanced method of search, which has vastly improved the results of keyword search, as it tries to use the actual meaning or the actual semantic meaning of the text with which to carry out the search. This method is called dense retrieval. This uses a very powerful tool in natural language processing called embeddings, which is a way to associate a vector of numbers with every piece of text. Semantic search consists of finding the closest documents to the query in the space of embeddings. Similar to other models, search algorithms need to be properly evaluated. You also learn effective ways to do this. Finally, since LLMs can be used to generate answers, you also learn how to plug in the search results into an LLM and have it generate an answer based on them. Dense retrieval with embeddings vastly improves the question answering capabilities of an LLM as it first searches for and retrieves the relevant documents and it creates an answer from this retrieved information. Many people have contributed to this course. We're grateful for the hard work of Meor Amer, Patrick Lewis, Nils Reimer, and Sebastian Hofstatter from Cohere, as well as on the DeepLearning.ai side, Eddie Shyu and Diala Ezzedine. In the first lesson, you will see how search was done before large language models. From there, we will show you how to improve search using LLMs, including tools such as embeddings and re-rank. That sounds great. And with that, let's dive in and go on to the next video.
course detail
Next Lesson
Week 1: Large Language Models with Semantic Search
  • Introduction
    Video
    ใƒป
    4 mins
  • Keyword Search
    Video with Code Example
    ใƒป
    14 mins
  • Embeddings
    Video with Code Example
    ใƒป
    9 mins
  • Dense Retrieval
    Video with Code Example
    ใƒป
    20 mins
  • ReRank
    Video with Code Example
    ใƒป
    10 mins
  • Generating Answers
    Video with Code Example
    ใƒป
    12 mins
  • Conclusion
    Video
    ใƒป
    1 min
  • Course Feedback
  • Community