Unlocking ChatGPT's Potential: LangChain Tutorial with DuckDB

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

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

  • @ecopony
    @ecopony 9 หลายเดือนก่อน

    Great demo. While following along, I noticed the issue with your initial question about the NBA data was an issue with capitalization. Typing 'Lebron' was causing no results to be returned. The season info in the prompt looked like it was actually doing the right thing. For anyone following along, these additions to the prompt seemed to help:
    "If you are asked about something having to do with a year, treat years as starting in October and ending in June."
    "Look up player names in a case insensitive manner."
    Also, in that initial question, the query was summing distance because there is no concept of points in the database. Adding a points column helped with this:
    connection.query('alter table nba_short add column points int');
    connection.query('''
    UPDATE nba_short
    SET points = CASE
    WHEN made = true AND shot_type = '2-pointer' THEN 2
    WHEN made = true AND shot_type = '3-pointer' THEN 3
    ELSE 0
    END;
    ''')
    And to the prompt:
    "The column name points with the data type INTEGER contains the following information: The number of points the shot was worth"

    • @MattForrest
      @MattForrest  7 หลายเดือนก่อน

      Yes good call I want to do more on this topic and still figuring out the best way to structure the prompts.

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

    Cool demo, thanks a lot for sharing.

  • @oncedidactic
    @oncedidactic 9 หลายเดือนก่อน

    Thanks nice demos!

    • @MattForrest
      @MattForrest  7 หลายเดือนก่อน +1

      Thanks!

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

    Thank you very much, impressive

  • @roshanm8409
    @roshanm8409 6 หลายเดือนก่อน +1

    Can you please share the Jupyter notebook?

    • @MattForrest
      @MattForrest  2 หลายเดือนก่อน

      Link should be there I believe

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

    How you learn GIS can any way of learning tools... Is it worth it??

    • @MattForrest
      @MattForrest  7 หลายเดือนก่อน

      Depends on your career goals but there are tons of great free resources to get started. I have other videos on that topic.