Getting Started with RAG in DSPy!

Поділитися
Вставка

КОМЕНТАРІ • 51

  • @kevon217
    @kevon217 9 місяців тому +3

    DSPartY is bumpin’
    Love your tutorials and the engagement you’ve been putting in within the DSPy community.

  • @donb5521
    @donb5521 9 місяців тому +17

    Connor - you can pan in and out as much as you want IMO, shows your excitement about the subject. The quality of the content is awesome. Also appreciate the shoutouts to the broader community. Thanks for sharing!

    • @connor-shorten
      @connor-shorten  9 місяців тому +1

      Thank you so much!! Haha, appreciated! Although I see far less negative comments this time around without the zooming haha! Thank you so much! Beyond grateful for all the help the DSPy community has given me in learning about this!

  • @saivamsi441
    @saivamsi441 9 місяців тому +5

    Thanks for the detailed video Connor, This is a great help. I am working on the lang graph and multi agent models. I had to optimise some of my prompts manually to reduce the number of agent hops to llm model. With BaysianSignature optimizer, I believe every prompt can be optimised and it'll reduce the hops made by agents

    • @connor-shorten
      @connor-shorten  9 місяців тому +3

      Ah, I need to learn a little more about LangGraph and I think Crew AI as the latest Multi-Agent framework before I can really comment on this!

  • @joser100
    @joser100 9 місяців тому +3

    Great one Connor! good to see your progress that, naturally, help us all...

    • @connor-shorten
      @connor-shorten  9 місяців тому

      Thank you so much Jose, really happy to hear that! Learning a new tool is certainly quite the journey haha!

  • @simingzhao6449
    @simingzhao6449 9 місяців тому +4

    great tutorial Connor, looking forward to more advanced stuff like Agent application!

  • @BradJonesus
    @BradJonesus 9 місяців тому +2

    Brilliant Connor, thanks so much for this video and looking forward to more about this subject!

    • @connor-shorten
      @connor-shorten  9 місяців тому

      Thank you so much Brad! Really happy to hear it! DSPy!

  • @ClintSearchEngineer
    @ClintSearchEngineer 9 місяців тому +2

    Thank you Connor. This is exactly what the world needed.

    • @connor-shorten
      @connor-shorten  9 місяців тому

      Thank you so much Clint, appreciate it as always!

  • @dshorten1766
    @dshorten1766 9 місяців тому +3

    Very exciting stuff, thanks Connor!

  • @robro612
    @robro612 9 місяців тому +3

    Nice video, Connor. Could you do a more in-depth video on the optimization process? In particular, looking at the series of prompts/examples selected throughout the optimization (analogous to doing a small lin. regression/backprop example by hand for intuition) and the overall token cost of these optimizations.

    • @connor-shorten
      @connor-shorten  9 місяців тому +2

      Ah indeed this is quite the test of my comprehension! Thank you so much, this is a fantastic idea! Give me a little bit of time to work through this though -- I will send this message through to the DSPy discord, I'm sure Omar, Michael, or Krista would be happy to walk us through this!

  • @ricardocosta9336
    @ricardocosta9336 9 місяців тому +3

    looking fresh my dude

  • @gumshoe9496
    @gumshoe9496 9 місяців тому

    Great tutorial! I'm looking forward to building on this! Thank you

  • @jakobkristensen2390
    @jakobkristensen2390 9 місяців тому +1

    Great walkthrough, thanks so much!

  • @andrewdang3401
    @andrewdang3401 8 місяців тому

    So many haters wtf. Great video !! I been lazy in python bc of copy paste and langchain and llama-index. This video makes python more fun !

  • @davidtindell950
    @davidtindell950 9 місяців тому +1

    Thank You. This particular vid motivated me to SUBSCRIBE !

  • @HelenProkonina
    @HelenProkonina Місяць тому

    Amazing video! Thank you so much! Could you please make a video about how to optimize DSPy with structured output?

  • @knoxfromthebunker2770
    @knoxfromthebunker2770 9 місяців тому +1

    Conner - Thanks for the shoutout!! ❤

    • @connor-shorten
      @connor-shorten  9 місяців тому

      No thank *you*! Ollama in DSPy!! Amazing!

  • @YA-yr8tq
    @YA-yr8tq 9 місяців тому +1

    Thank you, Connor! Keep it up!

  • @mysticaltech
    @mysticaltech 8 місяців тому +1

    Awesome, super inspiring!

  • @jakobkristensen2390
    @jakobkristensen2390 9 місяців тому

    This was a fantastic walkthrough! Would love some insight into extracting structured data - I find this extremely useful, and being able to do this with a 7B/13B model (instead of GPT-4, for instance) would greatly decrease the cost of running my application. Thanks so much!

  • @robboerman9378
    @robboerman9378 7 місяців тому

    Thanks for the great content. One of the things I am missing is how to save the optimized program so I can use it after that without constantly re-training.

  • @SaiNikhileshReddy-c6c
    @SaiNikhileshReddy-c6c 9 місяців тому +2

    You should also make a video on each GPT call cost. I believe there are hundreds (if not thousands) of calls happening every execution. DSPy is best paired with local model like mistral 7b. Otherwise, it will be impossible to scale such a tool on hundreds of docs.

    • @neoxelox
      @neoxelox 9 місяців тому +3

      If you are not compiling the program there aren't that many calls happening... Just one call per module (ChainOfThough/Predict/ReAct..) actually. You can check every step in the pipeline with dspy-inspector for example

    • @connor-shorten
      @connor-shorten  9 місяців тому +2

      Yes this is exactly where my thinking is going after getting the bill for the video hahah, but more generally yeah my suspicion is that llamas connected in DSPy programs is where the value is -- need to test more to say for sure!

    • @connor-shorten
      @connor-shorten  9 місяців тому +2

      @@neoxelox Ah thank you! A new DSPy tool to try out haha `dspy-inspector`!

    • @SaiNikhileshReddy-c6c
      @SaiNikhileshReddy-c6c 9 місяців тому

      @@connor-shorten Can you make a video about it? and also another video on some of the pros & cons of using DSPy in production (if any - wrt cost, latency, scalability, & flexibility)?

  • @runsenliu4704
    @runsenliu4704 8 місяців тому

    Hay man, great video! I have a few questions tho. Can you use other vector DB as retriever like Milvus? Also, is it possible to use LLM that are less known like Baichuan, Kimi etc? Thank you!

  • @SaiNikhileshReddy-c6c
    @SaiNikhileshReddy-c6c 9 місяців тому +1

    Thank you for fixing the zooming!

    • @connor-shorten
      @connor-shorten  9 місяців тому

      Haha you got it! Apologies for last time! The zooming has been fired!

  • @3MandMatt
    @3MandMatt 7 місяців тому

    could we cover the creation of the schema from an empty database such that the notebook flow actually runs through

  • @ricardocosta9336
    @ricardocosta9336 9 місяців тому +1

    lets gooo

  • @vitalybulgakov7181
    @vitalybulgakov7181 8 місяців тому

    Is it possible to run DSPY on local windows environment, say with Mistral 7b model? It fails to for me because of default value of url param, which I do know how to avoid.

  • @fox_trot
    @fox_trot 9 місяців тому

    How can I load and use my own data to Weaviate and start implementing DSpy's implementation of RAG?

  • @stat_life
    @stat_life 7 місяців тому

    You tried with weaviem is there any way you could do with pinecone ?

  • @codea1273
    @codea1273 8 місяців тому

    Any idea why the bootstrap with random search performed worse on the eval set? @ 29:00

  • @edmald1978
    @edmald1978 5 місяців тому

    What we can do to have bigger answers? I want it to generate code, but after executing it gives me 4 lines of code
    Someone have some idea?

  • @kaziahmedasiffuadpollen2727
    @kaziahmedasiffuadpollen2727 7 місяців тому

    Can you apply DSPy RAG on PDF files?

  • @explorer945
    @explorer945 9 місяців тому +5

    No offense but you took 4 min to get to the point. Time is the most valuable resource. And it is even more important with the plethora of information in the fast moving generative AI space. So please be ruthless in cutting down non-value add content. I'm not criticizing but I'm just voicing an opinion on great videos like this where you can be even more due diligent on our audience time

    • @edwardgao5388
      @edwardgao5388 9 місяців тому +3

      This comment took you longer than 4

    • @explorer945
      @explorer945 9 місяців тому

      @@edwardgao5388 true. I did that to see if the OP can save me some time in the future

    • @ahmadzaimhilmi
      @ahmadzaimhilmi 8 місяців тому +1

      Thanks. Saved my 4 minutes 😅

  • @redflipper992
    @redflipper992 7 місяців тому

    so for production, we'd just copy paste the optimized signature and few-shots into the system prompt? I'm a bit confused on how to wield this tool in production.