11. OpenAI and Llama Index - Financial News Analysis

Поділитися
Вставка
  • Опубліковано 28 чер 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!

  • @eervin123
    @eervin123 Рік тому +3

    Great stuff as always! ❤

  • @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!

  • @micbab-vg2mu
    @micbab-vg2mu Рік тому +3

    Thank you great video!!!

  • @jayhu6075
    @jayhu6075 Рік тому +3

    Great job. My respect.

  • @Technomic-o
    @Technomic-o Рік тому +3

    Thanks man you are the best

  • @igorgumush2298
    @igorgumush2298 Рік тому +1

    tnx man great videos

  • @krissn8111
    @krissn8111 Рік тому +1

    Good stuff Larry

  • @xntumrfo9ivrnwf
    @xntumrfo9ivrnwf Рік тому +2

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

  • @kingtrippy5006
    @kingtrippy5006 Рік тому +3

    Boom.

  • @tanyongsheng4561
    @tanyongsheng4561 Рік тому +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

  • @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

  • @Ray-dw2wf
    @Ray-dw2wf Рік тому +1

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

  • @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?

  • @ControlTheGuh
    @ControlTheGuh Рік тому +2

    My man!!! Exactly what i was looking into

  • @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 9 місяців тому

      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)

  • @dreamz52
    @dreamz52 10 місяців тому

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

  • @kg6itc
    @kg6itc Рік тому +1

    Glad you shaved 🪒

  • @user-wr4yl7tx3w
    @user-wr4yl7tx3w Рік тому +3

    Is LlamaIndex preferred over LangChain?

  • @asiddiqi123
    @asiddiqi123 4 місяці тому +1

    Dude where did you go? Miss your tuts

  • @picklerick3482
    @picklerick3482 Рік тому +1

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

  • @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..

  • @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.

  • @ballmain5623
    @ballmain5623 10 місяців тому

    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?

  • @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

  • @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.

  • @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 ?

  • @ceejay1353
    @ceejay1353 Рік тому

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

    • @parttimelarry
      @parttimelarry  Рік тому +2

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

    • @ceejay1353
      @ceejay1353 Рік тому +1

      @@parttimelarry Thank you !

  • @mostafamoustaghni6980
    @mostafamoustaghni6980 Рік тому

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

  • @thehunter7021
    @thehunter7021 10 місяців тому

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

  • @dservais1
    @dservais1 Рік тому +3

    1st this time 😂

  • @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.

  • @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..

  • @klammer75
    @klammer75 Рік тому +2

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