Discover LlamaIndex: Bottoms-Up Development With LLMs (Part 1, LLMs and Prompts)

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ธ.ค. 2024

ความคิดเห็น • 10

  • @umbertoarreghini9307
    @umbertoarreghini9307 ปีที่แล้ว +1

    The only place where I found a good explanation of llama prompts and how to supply chat history.

  • @benjohnson5897
    @benjohnson5897 7 หลายเดือนก่อน +4

    Appreciate the video, but I'm just a novice trying to learn something but those import statements just don't work any more. Here's what I've found so far:
    * "from llama_index.llms import OpenAI" is now "from llama_index.llms.openai import OpenAI"
    * if you're playing with the ChatMessage at 2:31, the import is "from llama_index.core.llms import ChatMessage", but the "print(response.text)" should simply be "print(response)"
    * the templates example around 3:16 "from llama_index import Prompt" should be "from llama_index.core import PromptTemplate"
    etc... etc... I strongly recommend if you're trying to follow this to look at the documentation for the correct import statements or this video will drive you insane. I'm susprised llamaindex links to these outdated tutorials in their beginners examples because I nearly gave up completely after all the issues I was having!

  • @kevon217
    @kevon217 ปีที่แล้ว +3

    Very straightforward, thanks.

  • @sdakjfa
    @sdakjfa 10 หลายเดือนก่อน +3

    Please correct if I'm wrong, but the chat example didn't actually use the "user own" data. The chat history prompt doesn't contain additional context ingested ("starter_example.md" content). That's why the generated response is very general.

    • @n.a.s1096
      @n.a.s1096 10 หลายเดือนก่อน

      Right, so how is this achieved though?

  • @ernesttan8090
    @ernesttan8090 ปีที่แล้ว

    The context is manually given to the LLM in this case. If it is a retriever, it will specify the context as relevant documents?

  • @tonyseno
    @tonyseno 8 หลายเดือนก่อน +3

    great content, unfortunately very poor resolution only 720p in 2024....

  • @imtanuki4106
    @imtanuki4106 6 หลายเดือนก่อน +2

    Sorry, but the repo for this lesson is hopelessly out of date. Spending more time than it's worth. chasing down new syntax for simple concepts like Prompt module imports. If you were just a third-party, OK nbd. But you're the vendor!