Navigate Select ESC Close

Meet KAG: Supercharging RAG Systems with Advanced Reasoning

2024-12-31 Science & Technology
63.5k
1.6k
69
Prompt Engineering
Prompt Engineering
241.0k subscribers

Unlock all features

FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.

Description

This video explains Knowledge Augmented Generation (KAG), a framework that enhances RAG by using knowledge graphs to maintain entity relationships and enable advanced reasoning capabilities. The presenter covers both KAG's architecture and provides a hands-on setup guide using Docker, making complex AI retrieval more accessible. 🔗 Explore KAG on GitHub: KAG GitHub(https://github.com/OpenSPG/KAG) 📄 Read the full paper on KAG: KAG Paper(https://arxiv.org/pdf/2409.13731) #KAG #OpenSPG 💻 RAG Beyond Basics Course: https://prompt-s-site.thinkific.com/courses/rag Let's Connect: 🦾 Discord: https://discord.com/invite/t4eYQRUcXB ☕ Buy me a Coffee: https://ko-fi.com/promptengineering |🔴 Patreon: https://www.patreon.com/PromptEngineering 💼Consulting: https://calendly.com/engineerprompt/consulting-call 📧 Business Contact: [email protected] Become Member: http://tinyurl.com/y5h28s6h 💻 Pre-configured localGPT VM: https://bit.ly/localGPT (use Code: PromptEngineering for 50% off). Signup for Newsletter, localgpt: https://tally.so/r/3y9bb0 00:00 Introduction to Knowledge Augmented Generation (KAG) 02:25 Query Retrieval Process 03:20 Performance and Benefits of KAG 03:57 Setting Up KAG on Your Local Machine 06:09 Creating and Managing Knowledge Bases 11:19 Querying the Knowledge Base All Interesting Videos: Everything LangChain: https://www.youtube.com/playlist?list=PLVEEucA9MYhOu89CX8H3MBZqayTbcCTMr Everything LLM: https://youtube.com/playlist?list=PLVEEucA9MYhNF5-zeb4Iw2Nl1OKTH-Txw Everything Midjourney: https://youtube.com/playlist?list=PLVEEucA9MYhMdrdHZtFeEebl20LPkaSmw AI Image Generation: https://youtube.com/playlist?list=PLVEEucA9MYhPVgYazU5hx6emMXtargd4z

Top Comments (10)

@NevilHulspas 2024-12-31

Tried it. It's quite slow for answering simple queries. Also indexing about 20 pages in a PDF took about 300k tokens, which is still quite cheap with DeepSeek, but it seems a lot. Indexing also took like an hour or something. User interface is partly chinese, quite a bit of bugs. Seems unfinished. Answers that we're outputted were mostly correct though

35 6 replies
@donb5521 2025-01-01

The premise of Knowledge Augmented Generation is promising, but the current KAG code bases failed to deliver today. The TLDR version is that ultimately I saw no notes or edges created in Neo4j. Even weirder is that in spite of there being no graph it was still giving me results in the UI. (the UI is not open source and appears to be locked down) Ultimately the config needs to become more solid and consistent -- and there needs to be agreement between the OpenSPG/openspg and OpenSPG/KAG development teams on whether Ollama is supported. An odd mix of Java and Python. Hopefully this gets straightened up soon. Prompt Engineering... Normally love your stuff. What would be helpful as a starting point is a Jupyter Notebook from OpenSPG that walks through (and validates) the pipeline step by step. A follow-up would be a reproducible and well documented evaluation against other solutions - LazyGraphRAG, LightRAG / nanorag, etc.

21 2 replies
@patruff 2024-12-31

Not to be confused with CAG

12 1 replies
@engineerprompt 2024-12-31

If you are interested in learning more about Advanced RAG systems, checkout my RAG Beyond Basics Course: https://prompt-s-site.thinkific.com/courses/rag

8 1 replies
@craftwithcodewiz 2024-12-31

Another day, another -ag 😂

3
@kai_s1985 2025-01-03

nice. wondering if we can use this on groq platform to speed things up?

2
@craftwithcodewiz 2024-12-31

It is the ReAct prompting with graph backend

1
@ai_handbook 2024-12-31

Very nicely explained, congrats mate! 👏👏👏

0
@beppemerlino 2024-12-31

amazing!

0
@zhalberd 2025-01-03

Thank you for this video. Please make a follow up on how to build this. 🙏🏻

0

Unlock the Data Inside
Turn Videos into Knowledge

  • Get FREE 10/day: transcripts, summaries, chats
  • Chat with videos, export text & PDF
  • $1 free API credit for RAG, chatbots & research

Free forever plan • All features unlocked

App screenshot