Make Your RAG Agents Actually Work! (No More Hallucinations)

Поділитися
Вставка
  • Опубліковано 11 січ 2025

КОМЕНТАРІ • 168

  • @leonvanzyl
    @leonvanzyl  2 місяці тому +62

    The plan was to release this video as part of a paid course on agentic agents, but I decided to release it for FREE. You can support my work by hitting the like button and subscribing to my channel 🙏.
    What Flowise topics should I cover next?

    • @BirdManPhil
      @BirdManPhil 2 місяці тому

      i need your help are you for hire?

    • @piero957
      @piero957 2 місяці тому +6

      Add SQL as an option other than vector and web. Also, add a "user prompt enhancer" option using llama3.2 again. Another interesting option for non-English users would be add input and output translation optional steps, so an user can query let's say in Italian, the agents and the llm then works better in English, and at the end the user can have the reply in his/her language, Italian in this example. Doing all this using a music/movie SQL IMO may grab great viewers attention, both for personal as well as business solutions.

    • @kreak100
      @kreak100 2 місяці тому +1

      Great work Leon, love your work up here in Joburg. An interesting use case would be to have agents go try solve a problem for a while and when they find an answer, return the answer. e.g search through a large data base sequentially and find a trend, say large abnormal increase in value, then report that.

    • @kelekcibo9172
      @kelekcibo9172 2 місяці тому

      HI Leon,
      we have many Tickets in our Jira Project. I wanted to use your template for having a "JiraAI", who answers questions to tickets, etc.
      I am using self-hosted qdrant. I have an agent , but it always says stuff like, I dont know where to find it, etc.
      I am inserting the tickets via n8n. With Flowise, I only want an agent-/chatflow who answers questions in regard to tickets.
      Which video do you suggest me to watch to implement my scenario?
      Is it possible to use qdrant in the document store?

    • @gianlucagilardi6200
      @gianlucagilardi6200 2 місяці тому

      When the feature comes, I cannot wait to see your take on Flowise, Ollama and Graphrag integration....

  • @gmcwhinney
    @gmcwhinney 2 місяці тому +10

    This is incredible Leon. Thanks for releasing this for free so that we can all learn from your obvious expertise here.

  • @sanjuburkule
    @sanjuburkule 2 місяці тому +5

    Subscribed! Your speed of explanation and not missing steps is important for someone like me. You could have said 'Do so on and so forth' after showing 3 to 2 LLM nodes getting added, but you went ahead and showed it. This is very valiable for my level of people. It allowed me to forward by 10s wherever needed, but that confidence in knowing each step is useful. Thanks for creating this video. Will watch the others you referred here.

    • @leonvanzyl
      @leonvanzyl  2 місяці тому

      Thank you for the feedback 🙏

  • @simfor
    @simfor 7 днів тому +1

    🤩Danke!

    • @leonvanzyl
      @leonvanzyl  7 днів тому +1

      Oh wow, thank you very much for the super! ❤️

  • @gianlucagilardi6200
    @gianlucagilardi6200 2 місяці тому +6

    I am definitely flabbergasted. I started fiddling with Flowise thanks to your videos but this, this is.... unbelievable. I dunno whether you have scraped your projects for paid course(s) but if you have not I am most definitely going to attend (if they have remote attendance, that is :) )

    • @leonvanzyl
      @leonvanzyl  2 місяці тому

      Wow, thank you for the feedback 🙏.

    • @cherrywong6827
      @cherrywong6827 24 дні тому

      @@leonvanzyl me too , I will joint

  • @simfor
    @simfor 7 днів тому

    Leon - thank you so much for this. I appreciate you made this available to us users. In case you ever plan to create a course, I'd be very interrested, btw.

  • @Belzrox
    @Belzrox 6 днів тому

    Kia Ora Leon, Love you work mate, been on a marathon watching all your videos over the last couple days and really appreciate the things you share, truly mind blowing. Happy New Year and keep it up, Champion (like your rugby team ;) )

    • @leonvanzyl
      @leonvanzyl  6 днів тому

      Awesome! You are the champion!

  • @MichaelHubbard
    @MichaelHubbard 2 місяці тому +1

    Thanks you!

    • @leonvanzyl
      @leonvanzyl  2 місяці тому

      Thank you very much for the super. Your support help a lot 🙏

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

    Super useful. Thank you so much for sharing this. it is indeed becoming more and more like "thinking process" or "logic flow" engineering rather than simple coding. Kudos

    • @leonvanzyl
      @leonvanzyl  29 днів тому

      Exactly!
      You'll hear the term "agentic agents" used all the time.

  • @Amr-Ibrahim-AI
    @Amr-Ibrahim-AI Місяць тому

    Leon! Thanks for putting this great tutorial together. High quality content indeed. Much appreciated.

  •  2 місяці тому +1

    Thanks

    • @leonvanzyl
      @leonvanzyl  2 місяці тому

      Thank you very much for the support 🙏

  • @plannedillusion
    @plannedillusion 2 місяці тому +3

    Leon for president 👍🏾

  • @DresElMagnifico
    @DresElMagnifico 2 місяці тому

    Great tutorial Leon. Thanks for all your work.
    Tutorials like this are great for people trying to build real-life applications. I feel the hardest thing to achieve is to go from a solution that works 75% of the time to one that can reliably perform 95% / 98% of cases against the Wild West of high-volume user inputs.
    It would be great to see more content like this with slightly more advanced techniques and complex scenarios.
    Thanks

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

    More videos like this one! Thanks Leon as always 👏🏼

  • @reserseAI
    @reserseAI Місяць тому +1

    i have try it, very good result for sure, the only problem right now is how do we integrate memory management, the only available option on this flow is AGENT MEMORY on state, but its sqlite based, the sqlite agent memory are not CPU friendly

  • @SoloJetMan
    @SoloJetMan 2 місяці тому

    Thanks for putting this together. I've been debating between several agent platforms. your videos helped me narrowed it to Flowise

    • @leonvanzyl
      @leonvanzyl  2 місяці тому

      Yeah, Flowise is super poweful

  • @teemunordman
    @teemunordman 2 місяці тому

    Your videos are professional quality. Thank you very much for all Flowise video content!

  • @carlosavelar1300
    @carlosavelar1300 2 місяці тому

    Fantastic! Leon, you are the best! Thanks a lot for sharing your knowledge with us!

  • @AlistairWalsh
    @AlistairWalsh 2 місяці тому

    Great stuff! This is exactly the information I needed right now.

  • @artur50
    @artur50 2 місяці тому

    wow, incredible that you share that stuff with us! GREAT!

  • @walberc
    @walberc 2 місяці тому

    Great video Leon. Thank you so much for this.

  • @photize
    @photize 2 місяці тому

    Excellent as always, opens so many advances thanks .

  • @fabio-y5q
    @fabio-y5q 2 місяці тому +1

    Hey Leon, really cool and interesting video!☺️
    I have a question:
    How would you implement an agentic workflow that answers questions about a document where the needed information is spread across the entire document? The retriever only gives a certain amount of related content, right? In an example, let's say we have a transcript of an interview, and I want the RAG system to tell me how many and which interview questions appear in this document. Here, the document would need to be completely searched and checked for this information. Would you integrate a loop that goes through all the chunks in the database and adds the information to a state value, or is there a more efficient way over self-reflection to implement this?
    Thank you for your absolutely amazing and interesting videos. It’s a lot of fun to recreate agentic workflows with these structured videos!🎉

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

    Fantastic video as usual. Well explained and useful. Although I love flowise, it would be great to do the router type agent workflow using the new PyDantic AI agent framework. Food for thought.

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

      Thanks for the feedback and 💡

  • @santiagoghione9177
    @santiagoghione9177 2 місяці тому

    Excelentes tus videos Leon! Muchas gracias

  • @MatichekYoutube
    @MatichekYoutube 2 місяці тому

    very good tutorial - thank you for hard work 💙

  • @OscarTheStrategist
    @OscarTheStrategist 2 місяці тому

    Super useful. Thanks for the video! 🔥

  • @megaledafrica1080
    @megaledafrica1080 2 місяці тому

    Awsome stuff Leon, thank you.

  • @syedfaizal5368
    @syedfaizal5368 20 днів тому

    hi leon ,learning a lot from you,can you please tell me ehat could be the reason for "" Error buildAgentGraph - TypeError: Cannot read properties of undefined (reading 'includes')"" when i tried your json

  • @Francotujk
    @Francotujk 2 місяці тому

    Leon, you are the best! It's incredible valuable all you are doing!!
    May be, it could be nice to create more tutorials not just focusing in the Flowise UI, but in creating apps (nextJS, Streamlit, etc) that use Flowise to power the AI-Backend. Because dealing with the API of flowise (for example to upsert files and the read them by filtering, while mantaining the files private is not easy). Also, I don't know if is it possible to use the Agenflows as backend, in that case it could be nice to see a full stack app.
    Obviously not focusing too much in the UI of the app, but in how to connect it to a flowise project.
    Again, thanks for everything you are doing!

    • @leonvanzyl
      @leonvanzyl  2 місяці тому +1

      Excellent suggestions.

  • @PyJu80
    @PyJu80 2 місяці тому +1

    Hey, im ngl, im a n8n fan, thank f. your code is in json format. One thing im trying to do is use the bolt.forked, or even the pimped version (not sure if i can qutoe, but its on here called ottodev) as an interface and have your workflow used as an http url ollama model. Whats the chances of you looking into this for me?

  • @Bu3askoorDXB
    @Bu3askoorDXB 2 місяці тому

    Thank you as always, i kept using flowise just because of you and your videos.
    I have noticed a video where potentially using flowise api, a user can create chat flows. It might an ok idea for a video

  • @szood
    @szood 2 місяці тому +1

    can you teach how to set up flowise with a database please?

  • @amroeser
    @amroeser 2 місяці тому

    Wow, thank you so much for your videos! It's great that you're sharing your knowledge. Thank you so much! Is it possible to analyze Excel data with tools like the calculator and write a summary in Word of the differences between two Excel files?

    • @leonvanzyl
      @leonvanzyl  2 місяці тому

      Absolutely!
      Sounds similar to this video:
      ua-cam.com/video/WRiVMiRI7iU/v-deo.html

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

    Can you explain flowise vs botpress? Which one is better for production ready? Thank a lot!

  • @choijungho1
    @choijungho1 2 місяці тому +1

    Very surprising and admirable!
    I loaded the json file to test it locally.
    "Failed to import: Error: exportImportService.importAll - Cannot read properties of undefined (reading 'length')"
    An error occurs. Is there a solution?

    • @changtimwu
      @changtimwu 2 місяці тому

      Hi! I got a similar error. My flowise version is flowise@2.1.3

    • @changtimwu
      @changtimwu 2 місяці тому +2

      The error occurs when importing the JSON file under Chatflow instead of using the "Load agent" option in Agentflows. BTW, Flowise should display a more user-friendly error message for this scenario.

    • @simonw7580
      @simonw7580 Місяць тому +1

      Thankyou @@changtimwu ! Load Agent is in Agentflows > Add new > Settings icon for anyone looking

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

    So basically be only need to fine tune a single model with multiple prompts and have multiple separated datasets it can access when we grant the access to and specifically prompt for it?

  • @LemurDrengene
    @LemurDrengene 2 місяці тому +1

    What is the drawing software you use in the beginning? And thanks for another great video :-)

    • @leonvanzyl
      @leonvanzyl  2 місяці тому +3

      You're welcome 🤗.
      It's called eraser.io

    • @LemurDrengene
      @LemurDrengene 2 місяці тому

      @@leonvanzylThx, appreciate it

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

    can you start doing VS Vector Shift tutorials?

  • @magmikefpv
    @magmikefpv 2 місяці тому

    Thank you Leon

  • @AllanBrazute
    @AllanBrazute 2 місяці тому

    Nice video, thank you.
    It is kind of working for me. There is one question, the first one I asked to test it, that it can't answer and I don´t understand why:
    - question: What time is it in Australia?
    - websearchLLM: 12:05 AM
    - generateAnswer: Australia is 15 hours ahead of UTC (Coordinated Universal Time) during standard time and 16 hours ahead during daylight saving time. Since you didn't specify which region, I'll - assume it's the Eastern Standard Time zone. In this case, it would be 9:05 AM on a typical day.
    - hallucinationCheck: noResponse
    - final: I'm sorry, but I couldn't find the answer to your question. You could try rephrasing the question and try again?

    • @leonvanzyl
      @leonvanzyl  2 місяці тому +1

      Double check that the documents state is correctly being set in the web search tool node.
      You can also try to adjust the system prompt of the generation LLM to guide it in the right direction.

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

    Does anyone know if it is possible that only the response appears in the chat, that is, that it does not appear how the information flows in each node? And if so, how can it be done?

  • @wortellemon2943
    @wortellemon2943 2 місяці тому

    after save the project, when i click chat button its automaticly give me a blank white screen

  • @T33KS
    @T33KS 2 місяці тому

    Thank you! Always the best content on agentic flows and automation. I just have one question that I still can't find a solution for. How would you approach deploying/orchestrating/monitoring these flows? What would be your approach for production once you have multiple flows and duplicates for different clients (also valid question for n8n). Would love your insights on this.

    • @leonvanzyl
      @leonvanzyl  2 місяці тому

      This is an excellent topic for a dedicated video.
      I'll try to put some thoughts down, but it's a bit toouch for a comment 😁.
      It all starts with the client's requirements. They might want to host and manage the flows themselves, so you're basically only responsible for setting things up for them.
      Alternatively they might want you to create, monitor and manage everything.
      Hosting: Flowise Cloud is a really solid option for many reasons. You don't have to worry about updating FW or scaling the platform. You can also collaborate with team members on flows.
      You could of course self host it on a VPS / Render, etc. This could be useful if there are some region restrictions.
      I would also recommend adding Langsmith to your flows. That way you can find failures and troubleshoot any issues.
      Health checks: I have an automation on n8n that calls the prediction API on a schedule that will inform me via email if the API is down or some other unwanted behaviour.

    • @T33KS
      @T33KS 2 місяці тому

      @leonvanzyl that will be a great video. Especially, in the case of managing multiple instances for different clients. Thanks for taking the time to reply.

  • @kelekcibo9172
    @kelekcibo9172 2 місяці тому

    HI Leon,
    we have many Tickets in our Jira Project. I wanted to use your template for having a "JiraAI", who answers questions to tickets, etc.
    I am using self-hosted qdrant. I have an agent , but it always says stuff like, I dont know where to find it, etc.
    I am inserting the tickets via n8n. With Flowise, I only want an agent-/chatflow who answers questions in regard to tickets.
    Which video do you suggest me to watch to implement my scenario?
    Is it possible to use qdrant in the document store?

  • @usiala
    @usiala 2 місяці тому

    great video. thanks.

  • @joseignaciodussaillant7031
    @joseignaciodussaillant7031 Місяць тому +1

    I keep getting "Error buildAgentGraph - Cannot read properties of undefined (reading 'name')" when trying to test the flow. Any tips? havent been able to find the solution anywhere

    • @syedfaizal5368
      @syedfaizal5368 20 днів тому

      where you able to solve the problem @joseigna could you please tell if **

  • @DataAI-k9x
    @DataAI-k9x Місяць тому

    thank you for this.

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

    hey, when i try to import the code, it says the following error: Status: 500
    Error: exportImportService.importAll - Cannot read properties of undefined (reading 'length') - how do i rectify this?

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

    Neat and super useful. You have a very good knowledge on this subject and following your contents closely.
    Unable to import the flow on the Flowise Cloud version 2.1.4. I am on trial period and trial started just a while ago.
    Status: 500
    Error: exportImportService.importAll - Cannot read properties of undefined (reading 'length')
    Any hint to make corrections to the json file would be useful.

    • @leonvanzyl
      @leonvanzyl  Місяць тому +1

      Thank you!
      It seems a lot of people are having issues with importing my flow. Investigating

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

      @leonvanzyl Thanks 🙏

  • @youtubeccia9276
    @youtubeccia9276 2 місяці тому

    excellent stuff

  • @tecnopadre
    @tecnopadre 2 місяці тому

    Hey Leon, thnks for sharing. When the last LLM that generates the last answer isn't this the way a second LLM generates the answer to the same question for second time? Why wouldn't you take the previous answer if you already validate it with the condition Agent?

    • @leonvanzyl
      @leonvanzyl  2 місяці тому +1

      There's no way to do a "pass through" of the generated answer.
      I guess you could change the last system prompt to "Repeat the following words" followed by the generated answer.
      I personally just like to summarise the answer. It won't add anything new,.
      Good question though. Either approach would be fine.

    • @tecnopadre
      @tecnopadre 2 місяці тому

      @@leonvanzyl I'm just trying to save inbound and outbound fees. 😅

  • @micbab-vg2mu
    @micbab-vg2mu 2 місяці тому

    Great - I will try it:)

    • @leonvanzyl
      @leonvanzyl  2 місяці тому

      Let me know how it went 💪

  • @prashantgaurav
    @prashantgaurav 6 днів тому

    As usual great vieo. I have one question though. With agentic flow I see big jump in latency , ~20 secs. Is it normal?

    • @leonvanzyl
      @leonvanzyl  6 днів тому

      Yeah. It feels longer than usual because the responses are not streamed in.
      Also, each agent in the flow needs to complete its task before you'll see a response.

  • @Chasingaxl
    @Chasingaxl 2 місяці тому

    Is this Miro that you using for the diagramming?

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

    I really like your videos and your explanation. I have one suggestion regarding your videos, you talk fast and continuously without stopping for a single second. this makes it very hard to focus after a few minutes so I suggest that you talk a bit slow with occasional gaps specially when you are showing steps visually. thanks

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

      Thank you for the constructive feedback 🙏

  • @EinfachJens-16
    @EinfachJens-16 2 місяці тому

    great video. workflow file is not working on my maschine

    • @leonvanzyl
      @leonvanzyl  2 місяці тому +1

      What seems to be the issue?

    • @EinfachJens-16
      @EinfachJens-16 2 місяці тому

      @@leonvanzyl my fault. load the workflow wrong

  • @Aaron7k
    @Aaron7k 2 місяці тому

    Thankss plz do in n8n

  • @revotech5980
    @revotech5980 2 місяці тому

    can flowise be used for production ready products? thankyou

    • @leonvanzyl
      @leonvanzyl  2 місяці тому

      Absolutely!
      I've got client apps running on Flowise in prod for over a year now. It's super stable

  • @sharankumar31
    @sharankumar31 2 місяці тому

    Very nice

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

    It's a very useful video but when I tried the workflow and updated the SERP API and Vectorstore knowledge base to my own I got this message: Error buildAgentGraph - Error initialize agent nodes - Cannot read properties of undefined (reading 'bindTools'). I tried finding the explanation on Flowsieai but the chatbot is not forthcoming with an answer or solution ;-) It probably needs a bit of heavy-tuning. Does anybody know what is the issue and solution?

    • @leonvanzyl
      @leonvanzyl  Місяць тому +1

      Yeah, it could be due to different FW versions. Not sure.
      Rather just recreate the flow instead of importing mine.

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

      @@leonvanzyl I updated the flow and it seems to be fixed. Thanks Leon, great video! It would be interesting to have a video on securing the chatbot to avoid malicious usage that can turn out to be a financial drain. All the best!🤩

    • @technodrome624
      @technodrome624 29 днів тому

      @@myworld342 how did you solve it?

  • @univer6979
    @univer6979 2 місяці тому

    If my app needs to work offline without internet connection, in that case can we further improve the response by asking it to search the vector again? I had tried creating a chatbot as per your earlier video ua-cam.com/video/lJOZiRoZNJw/v-deo.html but i could still see some hallucinations and non complete responses even though the answer was there in the vector store. Any thoughts on how to improve it?

  • @maniecronje
    @maniecronje 2 місяці тому

    Fantasties!

  • @김정률-i9n
    @김정률-i9n 2 місяці тому

    Can I request a course on vector database metadata processing?

  • @pushingpandas6479
    @pushingpandas6479 2 місяці тому

    How install Lama3.2 on a digital ocean server?

    • @leonvanzyl
      @leonvanzyl  2 місяці тому

      In that case I'd actually suggest you look at using Groq. It's an awesome platform for using Llama 3.2.
      I have a video on using Groq and Llama on my channel actually.

  • @tonyseno
    @tonyseno 2 місяці тому

    Like and subscribe !

  • @TeamsWorkAI
    @TeamsWorkAI 2 місяці тому

    Great !

  • @MariushAI
    @MariushAI 2 місяці тому

    Is it possible to create a similar workflow in n8n?

    • @leonvanzyl
      @leonvanzyl  2 місяці тому +3

      Well, the principles that I teach in this video is not specific to Flowise.
      It should be easy to implement in n8n. Maybe I should create an n8n tutorial on this?

    • @MariushAI
      @MariushAI 2 місяці тому +1

      ​@@leonvanzyl definitely yes

  • @orangtimur6812
    @orangtimur6812 2 місяці тому

    Why my flowise ui different 😢

    • @leonvanzyl
      @leonvanzyl  2 місяці тому

      You need to update your Flowise instance maybe 🤔

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

    Leon, forgive me if im wrong, but are you not for hire?

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

      Send me an email and I'll see if I have capacity 😁

  • @k1r0vsiii
    @k1r0vsiii 2 місяці тому

    you re a flowise gandalf leon

  • @김정률-i9n
    @김정률-i9n 2 місяці тому

    How to use flowise nowhere else in the world!!!!! COOL!!!

  • @danzreview
    @danzreview 2 місяці тому

    GG

  • @plannedillusion
    @plannedillusion 2 місяці тому

    🤣 I'm actually building a similar system.

    • @leonvanzyl
      @leonvanzyl  2 місяці тому +1

      Great minds think alike?? 🤣

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

    @leovanzyl, please what sketch program are you using?

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

    Thanks!

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

      Thank you very much for the support ❤️

  • @DresElMagnifico
    @DresElMagnifico 2 місяці тому

    Thanks

    • @leonvanzyl
      @leonvanzyl  2 місяці тому

      Thank you very much for the support 🙏

  • @harrykekgmail
    @harrykekgmail 2 місяці тому

    Thanks