11. OpenAI and Llama Index - Financial News Analysis

Поделиться
HTML-код
  • Опубликовано: 21 июн 2024
  • In this video, we use OpenAI and Llama Index to analyze financial news. Like the video? Support my content by checking out Interactive Brokers using the link below:
    www.interactivebrokers.com/mk...
    Source Code:
    github.com/hackingthemarkets/...
    Note: I have updated the source code to reflect recent changes to Llama Index 0.6 that happened after I recorded this video at the end of April. I have made notes on the changes in Github and how they differ from a few lines in the video.
    0:00 What is Llama Index?
    1:06 What We’re Building - News Fetching and Indexing
    2:26 News Querying and Reporting Interface
    4:39 Code Walkthrough
    6:13 Fetching News with Interactive Brokers API
    10:23 Vector Index with Llama Index
    16:45 Querying the Index
    19:58 Wrapping Up
    ---
    This content is provided by a paid Influencer of Interactive Brokers. Influencer is not employed by, partnered with, or otherwise affiliated with Interactive Brokers in any additional fashion. This content represents the opinions of Influencer, which are not necessarily shared by Interactive Brokers. The experiences of the Influencer may not be representative of other customers, and nothing within this content is a guarantee of future performance or success. None of the information contained herein constitutes a recommendation, promotion, offer, or solicitation of an offer by Interactive Brokers to buy, sell or hold any security, financial product or instrument or to engage in any specific investment strategy. Investment involves risks. Investors should obtain their own independent financial advice and understand the risks associated with investment products and services before making investment decisions. Risk disclosure statements can be found on the Interactive Brokers website.
    Interactive Brokers is a FINRA registered broker and SIPC member, as well as a National Futures Association registered Futures Commission Merchant. Interactive Brokers provides execution and clearing services to its customers. For more information regarding Interactive Brokers or any Interactive Brokers products or services referred to in this video, please visit www.interactivebrokers.com.

Комментарии • 51

  • @parttimelarry
    @parttimelarry  Год назад +3

    Like the video? Support my content by checking out Interactive Brokers: www.interactivebrokers.com/mkt/?src=ptlPY1&url=%2Fen%2Findex.php%3Ff%3D1338
    Source Code: github.com/hackingthemarkets/financial-news-llama-index
    Note: I have updated the source code to reflect recent changes to Llama Index 0.6 that happened after I recorded this video at the end of April. I have made notes on the changes in Github and how they differ from a few lines in the video.
    Timestamps
    0:00 What is Llama Index?
    1:06 What We’re Building - News Fetching and Indexing
    2:26 News Querying and Reporting Interface
    4:39 Code Walkthrough
    6:13 Fetching News with Interactive Brokers API
    10:23 Vector Index with Llama Index
    16:45 Querying the Index
    19:58 Wrapping Up

  • @mclovin6537
    @mclovin6537 Год назад +12

    Who’s ready for a next round of chants? “Larry Larry Larry Larry” 💪🏻

  • @benjaminkaarst
    @benjaminkaarst Год назад +2

    Mind blowing demos delivered casually. Great content.

  • @xntumrfo9ivrnwf
    @xntumrfo9ivrnwf Год назад +3

    I had heard about llama index but haven't looked into it yet. It's mind blowing how it effectively increases the context size to... whatever you want? Magic!

  • @chrisschmidt7947
    @chrisschmidt7947 Год назад +3

    This is wild! Amazing potential for heaps of entertaining projects!

  • @stevebim000
    @stevebim000 Год назад +4

    Awesome works Larry! Exactly what I need. Building one personal financial analyst. Currently work on the Twitter side. Plus this one is perfect!

  • @eervin123
    @eervin123 Год назад +3

    Great stuff as always! ❤

  • @jayhu6075
    @jayhu6075 Год назад +3

    Great job. My respect.

  • @micbab-vg2mu
    @micbab-vg2mu Год назад +3

    Thank you great video!!!

  • @Technomic-o
    @Technomic-o Год назад +3

    Thanks man you are the best

  • @igorgumush2298
    @igorgumush2298 11 месяцев назад +1

    tnx man great videos

  • @krissn8111
    @krissn8111 Год назад +1

    Good stuff Larry

  • @kingtrippy5006
    @kingtrippy5006 Год назад +3

    Boom.

  • @xntumrfo9ivrnwf
    @xntumrfo9ivrnwf Год назад +2

    lol, I like how one of the risks is "reckless short sellers" - baggy alert!

  • @tanyongsheng4561
    @tanyongsheng4561 11 месяцев назад +1

    Nice work. I am wondering if we could make it for return graph (e.g., bar chart or line chart) if we feed in data like historical revenue and earnings, etc similar to finchat

  • @tak68tak
    @tak68tak Год назад

    Awesome. Is there a way to dump an actual prompt that is sent to OpenAI API behind the scene for debug purpose?

  • @yellowboat8773
    @yellowboat8773 Год назад +1

    What would be a sufficient temperature for the openai model to work properly with this? I feel if your closer to one it will start making stuff up but closer to zero will give you nothing back. What are you using here?

  • @dreamz52
    @dreamz52 9 месяцев назад

    Great video! How does Llama Index differ from Open AI Embeddings?

  • @RedShipsofSpainAgain
    @RedShipsofSpainAgain Год назад +1

    Great vid, Larry. The OpenAI API key: it charges based on the number of tokens and queries made to the LLM, right? How much does it cost to build and use this financial news analysis app (with average usage)?

    • @sandiegoman
      @sandiegoman 8 месяцев назад

      They give you enough that the cost is very minor if at all. Of course this depends on how many queries you make but its very reasonable (ie, its probably in the pennies for most users)

  • @ControlTheGuh
    @ControlTheGuh Год назад +2

    My man!!! Exactly what i was looking into

  • @ballmain5623
    @ballmain5623 9 месяцев назад

    Hi Larry, thanks a lot for the sharing. I tried and changed to use GPTVectorStoreIndex as LLama-Index has probably changed things around and I kept getting this error: AttributeError: 'VectorStoreIndex' object has no attribute 'save_to_disk'. Can you pls help?

  • @boba9610
    @boba9610 Год назад

    hey Larry, did you mention in one of your videos about connecting tot Slack and loading messages into a model? I binged watched a bunch of yours and now i can't remember where you mentioned it. What's your recollection?
    Thanks

    • @parttimelarry
      @parttimelarry  Год назад +1

      I thought I mentioned it in this one? Would need to look in a bit. I mentioned llama index has various data connectors for Google Docs, discord, etc

    • @boba9610
      @boba9610 Год назад

      @@parttimelarry found it and the widget! thanks! BTW - way back when you did the WhisperAi video with the Fed speech, you remember a ball park cost for the api portion? I want to do a live streaming version.

  • @guitartom01
    @guitartom01 Год назад +3

    Fantastic content as always, thanks Larry.
    I'm actually a C# developer - does anybody know of a youtube channel, blog, or ??
    that has the same (or close to) the high quality of Larry's content?
    Thanks and keep up the great work!!
    Thomas

  • @user-wr4yl7tx3w
    @user-wr4yl7tx3w Год назад +3

    Is LlamaIndex preferred over LangChain?

  • @picklerick3482
    @picklerick3482 Год назад +1

    apache flink has a version for python can you make a tutorial how setting up?

  • @klammer75
    @klammer75 Год назад +2

    Amazing! Just looking to do exactly this! Great timing!🥳🦾😎

  • @Ray-dw2wf
    @Ray-dw2wf Год назад +1

    awesome work! and hope you didn't sell your $NVDA lol

  • @dservais1
    @dservais1 Год назад +2

    Larry, when is the next one to complete this one ?

    • @parttimelarry
      @parttimelarry  Год назад +1

      A little later today need to go somewhere for a bit but will be back

  • @jayshay7416
    @jayshay7416 Год назад +1

    you should really integrate the db's (vector db's.. maybe nuclia or milvus or something.. one of the open-source ones?) I'm actually incorporating all this stuff into deephaven and it's working nicely.. while doing all of id, having an instance of the ChatCompletion/MarketsHacking buddy to answer questions, see/hear the inputs.. etc..

  • @kg6itc
    @kg6itc Год назад +1

    Glad you shaved 🪒

  • @asiddiqi123
    @asiddiqi123 4 месяца назад +1

    Dude where did you go? Miss your tuts

  • @thehunter7021
    @thehunter7021 9 месяцев назад

    Which IDE u r using to execute Python code? Any idea

  • @mostafamoustaghni6980
    @mostafamoustaghni6980 Год назад

    You have access to GPT-4-32K Token?

  • @ceejay1353
    @ceejay1353 11 месяцев назад

    Can you suggest a good free alterantive for news feeds to Interactive Brokers?

    • @parttimelarry
      @parttimelarry  11 месяцев назад +2

      I believe Polygon has a free tier, but they limit the amount of API requests

    • @ceejay1353
      @ceejay1353 11 месяцев назад +1

      @@parttimelarry Thank you !

  • @amitshewale1594
    @amitshewale1594 Год назад +1

    Larry can you use in jupyter notebook?

    • @parttimelarry
      @parttimelarry  Год назад +1

      Yes, you can use Llama Index in Jupyter. The method I used for programmatically fetching real-time financial news wouldn't work in Jupyter, but I provided the text of the articles I used in the Github repository so you could use that text to try out. Or you can just save a bunch of articles or text to the articles directory.

    • @Technomic-o
      @Technomic-o Год назад

      @@parttimelarry Hey man, Articles provided were html would that works too or has to be json ?

  • @alqods80
    @alqods80 Год назад

    Why not use free models for embedding like all-mpnet-base-v2 ?

    • @parttimelarry
      @parttimelarry  Год назад +1

      This video is on the OpenAI for Finance playlist, so I have been using OpenAI tools. Will probably do a different series on free open source models in the future.

  • @user-wr4yl7tx3w
    @user-wr4yl7tx3w Год назад +1

    Why LlamaIndex instead of LangChain?

    • @parttimelarry
      @parttimelarry  Год назад +1

      I have another one on LangChain coming, I thought this one was a little simpler for what I was doing here. I will do a project that interacts with additional tools that uses LangChain.

  • @dservais1
    @dservais1 Год назад +3

    1st this time 😂

  • @jayshay7416
    @jayshay7416 Год назад

    man the code is so much harder to read and understand (so white and zoomed in) :(

  • @jayshay7416
    @jayshay7416 Год назад

    this series has been hard to follow along with due to that.. probably just me I guess..