Тёмный

Build an Advanced RAG Chatbot with Neo4j Knowledge Graph 

Leann Chen
Подписаться 2,6 тыс.
Просмотров 14 тыс.
50% 1

Наука

Опубликовано:

 

6 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 56   
@mandraketupi5
@mandraketupi5 3 месяца назад
Hi Leann Thank you! Your videos are an amazing source of inspiration! keep up the good work!
@johnhelewa
@johnhelewa 7 месяцев назад
Very good walkthrough. I like how you integrated NER, GraphDB, and LLM together.
@444firm
@444firm 9 месяцев назад
I’m new to knowledge graph and you make it simple to understand
@lckgllm
@lckgllm 9 месяцев назад
Thank you! 😊
@bparlan
@bparlan 8 месяцев назад
what an awesome explanation. not sure if I can follow all the steps, but great overview of the process and logic.
@tayyabchadhar3876
@tayyabchadhar3876 8 месяцев назад
Thanks Leann. This is sure a lot of help for me to get into RAG. Thanks Again.
@davidtindell950
@davidtindell950 9 месяцев назад
A good start. Thank You. We look forward to your next video in January 2024!
@thezwave5950
@thezwave5950 8 месяцев назад
Incredible video! Can’t thank you enough for your tutorial. I’ve been trying to decide whether a vector database or knowledge graph would be the most interesting/most efficient way to scale complexity. Answer: BOTH!! Research complete. ❤🎉
@douglasdrumond
@douglasdrumond 9 месяцев назад
Easy to understand. Thank you for posting this video. I'm rooting for your channel; you got a new sub.
@lckgllm
@lckgllm 9 месяцев назад
Thank you! It means a lot to me. I'll strive to make better content. ☺
@Jeganbaskaran
@Jeganbaskaran 7 месяцев назад
Really awesome, Thank you for this video
@jtran
@jtran 9 месяцев назад
this is great content! thanks much for sharing!
@lckgllm
@lckgllm 9 месяцев назад
Glad it was helpful! 😊
@niikhiilbankar9667
@niikhiilbankar9667 7 месяцев назад
This is really great, can you please create another video with another LLM using hugging face? Great stuff!!
@lckgllm
@lckgllm 7 месяцев назад
Sounds like a great idea! Thanks for the advice 😊
@enkhbatenkhjargal9447
@enkhbatenkhjargal9447 4 месяца назад
Thanks for this video, subscribed! :)
@cristhiamtovar9003
@cristhiamtovar9003 5 месяцев назад
Thanks for this video
@rawsteaksauce
@rawsteaksauce 8 месяцев назад
Amazing Ai video
@tomwawer5714
@tomwawer5714 8 месяцев назад
Great content. Please hang some pics on the wall to suppress echo it will be easier to listen:)
@lckgllm
@lckgllm 8 месяцев назад
Appreciate the suggestion! Will be improving on voice quality, thank you ☺
@tomwawer5714
@tomwawer5714 8 месяцев назад
Keep going you are fantastic!
@krisograbek
@krisograbek 6 месяцев назад
This is so good, Leann! I'm just jumping into the field of Knowledge Graphs! This will be huge for RAG applications! Why did you stop publishing videos?
@lckgllm
@lckgllm 6 месяцев назад
Hi Kris! Thanks for the encouragement :) I didn't stop posting. Instead, I'm posting videos on another channel I work for (e.g. ru-vid.comoJVRWGfqfjQ) I will try hard to post more videos about knowledge graphs and LLMs.
@krisograbek
@krisograbek 6 месяцев назад
@@lckgllm I didn't know about the other channels. Thanks for letting me know!
@mohajeramir
@mohajeramir 9 месяцев назад
Subscribed! Thanks
@AIGOAT-z4m
@AIGOAT-z4m 2 месяца назад
I feel like a Noob in the field of AI, after seeing your video. But the video is great
@alexandreturlier5464
@alexandreturlier5464 6 месяцев назад
Great content! I am a complete beginner: I have a Neo4j db already populated, I want to "only" do the chatbot portion connected with GPT4. Would you mind guiding me on which .py I should use in this usecase? In the meantime, I am getting a "UnboundLocalError: local variable 'nodes' referenced before assignment". Not sure what to do... Thanks!!
@lavamonkeymc
@lavamonkeymc 8 месяцев назад
Great video! A question I had: Are knowledge graphs good at taking a user query, such as “What happened to Sam Altman, and also when was the OpenAI board created”? Because I’ve been working with RAG and vector db for last 5 months, and when you run that query with similarity search, it sometimes doesn’t give you both topics in your retrieved documents. Is thr knowledge graph good for this or also suffers some issues, I know there’s some step back prompting ideas to cover this but wanted to know your thoughts.
@lckgllm
@lckgllm 8 месяцев назад
Awesome question! Yes I believe so. Though it's essential to test to confirm, why I'm leaning that way: Knowledge graphs store information with paths easy to navigate. Think about this: if "date of OpenAI board created' is a property nested under the "OpenAI Board" node, which is connected to "Sam Altman" through relationships like "Fired as CEO" and "Returned as CEO". So, when LLM understands the connections between OpenAI board and Sam Altman, it's also picking up that property info, like the board's creation date. You're spot on about vector search sometimes missing the context, especially with lots of documents. That's why mixing knowledge graphs with vector search helps keep things balanced-vector search for the granular view and knowledge graphs for the big picture. I've seen the small-to-big retrieval method too but haven't tried it yet. Let me know if you experimented something similar. I hope this is clear enough to you. Was hoping to attach a screenshot with a more visual way to illustrate. However, RU-vid doesn't allow me to do so. If you'd like to further discuss on this, feel free to add me on LinkedIn (Leann Chen) or shoot an email to: leannchen86@gmail.com.
@lavamonkeymc
@lavamonkeymc 7 месяцев назад
@@lckgllm Great thank you! I’m hopeful for these semi-related queries that knowledge graphs will work out. My team is currently researching them. My only concern is for non-related queries such as “who is Sam Altman, also I was wondering if I can make an appointment for the Apple Store” - in this case, the graph between Apple Store and Sam Altman won’t be connected, and the vector embedding of the entire sentence will likely miss 1 of the 2 contexts. Using an agent could be the solution, but increases latency, I’ve had some success with stepback prompting the single queue into 2 separate queries to retieve documents from vector db.
@kingmouli
@kingmouli 7 месяцев назад
thank you for the crisp view on KG+RAG, can we create KG on multiple csv files , currently csv agents were lacking behind to answer questions based on content, they only search for matching column for the question rather content passed.
@lckgllm
@lckgllm 7 месяцев назад
Love your idea! It’s totally possible to create KG based on multiple csv files, but can you say more about what “content” means in your case?
@kingmouli
@kingmouli 4 месяца назад
@@lckgllm What I mean by content is csv data here
@MachineLearningZuu
@MachineLearningZuu 9 месяцев назад
Hi Thank you for this amazing video. I have a question about KG creation on Neo4J. May I know the prompt you used to refine and cypher query generation for the results generated of openaiKG.ipynb at 5:56
@lckgllm
@lckgllm 9 месяцев назад
Thanks for the question! The original prompt for ChatGPT-4 was: "Please convert the entities/relationships results from spacy-llm into cypher queries for neo4j knowledge graph." Let me know if you have other questions :)
@riyashah1161
@riyashah1161 3 месяца назад
you're so pretty
@ramdeeproy6853
@ramdeeproy6853 5 месяцев назад
Can we implement the azure open ai creds like api key, model name, endpoint, type and version in the ipynb file and run it? Also please mention the dependency libraries of the functions.py file as visual, Node, Edge, Cypher_graph are not getting initialised in VSC while running the file....
@dianadata3626
@dianadata3626 9 месяцев назад
Thanks for sharing! I'm encountering this error: Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details"} Any ideas on how to handle/workaround rate limits for people on the free tier? Thanks!
@lckgllm
@lckgllm 9 месяцев назад
Are you using gpt-4 under the free tier? gpt-4 isn't available in the free tier, but gpt-3.5 is supported and you can probably use that instead. Hope this helps!
@CK.23.
@CK.23. 7 месяцев назад
I just had to be the 1,000th.. Congrats..
@lckgllm
@lckgllm 7 месяцев назад
Thanks! 🥳
@allthingsai8166
@allthingsai8166 7 месяцев назад
where do i get the zeroshot.cfg file? and i want to replace the @llm_models = spacy.GPT-4.v2 with mistral. How do i do that?
@lckgllm
@lckgllm 7 месяцев назад
Hi! Thanks for pointing that out. I just added the zeroshot.cfg to github.com/leannchen86/openai-knowledge-graph-streamlit-app You can also find the document here: spacy.io/usage/large-language-models#zero-shot-prompts
@technologygoldenretriever8933
@technologygoldenretriever8933 8 месяцев назад
可以加LinkedIn 嗎🤣
@lckgllm
@lckgllm 8 месяцев назад
Why not? but plz do include a msg :)
@technologygoldenretriever8933
@technologygoldenretriever8933 8 месяцев назад
Hi Leann, I'm Eric. I've sent you the invitation, but for some reason, I couldn't include a note lol.
@swetharangaraj4521
@swetharangaraj4521 9 месяцев назад
what is the process if i what to query chat from cloud mangoDB using llm and RAG
@lckgllm
@lckgllm 9 месяцев назад
Thanks for the question! Querying from MongoDB would be an entire different video 😂, since Langchain has different wrappers around the indexing compared to Neo4j.
@swetharangaraj4521
@swetharangaraj4521 9 месяцев назад
please kindly give idea or some architecture please mam I am suppose to do on that based on that my job is going to confirm please @@lckgllm
@swetharangaraj4521
@swetharangaraj4521 8 месяцев назад
Mam please reply me
@lckgllm
@lckgllm 8 месяцев назад
It heavily depends on what your MongoDB graph database looks like,@@swetharangaraj4521. I would need more information to give constructive feedback to your question. Looking into Langchain's documentation to get some ideas is highly recommended: python.langchain.com/docs/integrations/vectorstores/mongodb_atlas
@swetharangaraj4521
@swetharangaraj4521 8 месяцев назад
@@lckgllm MangoDB is an unstructured database
Далее
🍎 Apple Pie Cinnamon Roll Donut #Shorts
00:21
Просмотров 1,9 млн
Little kitten 💓💜❤️🥰
00:17
Просмотров 16 тыс.
How I Made AI Assistants Do My Work For Me: CrewAI
19:21
Mind-maps and Flowcharts in ChatGPT! (Insane Results)
13:05
Chat With Knowledge Graph Data | Improved RAG
13:00
Просмотров 5 тыс.
The force of electromagnetic eddy currents
0:31
Просмотров 24 млн
Самый дорогой iPHONE 16 PRO MAX #shorts
0:58