How to Chat With Knowledge Graphs (python tutorial)

  Рет қаралды 10,117

Johannes Jolkkonen | Funktio AI

Johannes Jolkkonen | Funktio AI

Күн бұрын

Пікірлер: 39
@maximilianstaebler4288
@maximilianstaebler4288 9 ай бұрын
Thanks for sharing your experience and knowledge on classic coding problems beginners run into!
@123unhooked
@123unhooked 9 ай бұрын
An absolute treat! Thank you again!
@mrrohitjadhav470
@mrrohitjadhav470 9 ай бұрын
Awesome tutorial would love to see "How to Build Knowledge Graphs With open source LLMs "
@johannesjolkkonen
@johannesjolkkonen 9 ай бұрын
Thank you! I'm definitely planning to make more content with open source LLMs, like how to fine tune and deploy them to an API you can use just like you would use the OpenAI or Azure APIs 🙂
@mrrohitjadhav470
@mrrohitjadhav470 9 ай бұрын
@@johannesjolkkonen Awesome 😍
@thanartchamnanyantarakij9950
@thanartchamnanyantarakij9950 6 ай бұрын
waiting for this
@mrrohitjadhav470
@mrrohitjadhav470 6 ай бұрын
​@@johannesjolkkonen thanks, looking forward to building custom Knowledge Graphs from our own data using open source llm.
@ScottzPlaylists
@ScottzPlaylists 4 ай бұрын
I'm gung ho for Open Source❗ What about Neo4J -- can you replace it too❓
@mwdcodeninja
@mwdcodeninja 4 ай бұрын
Love the solution. I would really appreciate a larger font size though.
@8eck
@8eck 7 ай бұрын
Thank you for sharing.
@noduslabs
@noduslabs 9 ай бұрын
Really enjoy your tutorials! We should once do a session together, will be fun!
@johannesjolkkonen
@johannesjolkkonen 8 ай бұрын
Hey Dmitry, glad to hear it! Let's make it happen. Sent you a connect-invite on LinkedIn 🙂
@AnilDhimanSvg
@AnilDhimanSvg 9 ай бұрын
Challenge is coming up with domain specific schema when dealing with unstructured data i.e. mostly text. Any pointers about that ?
@johannesjolkkonen
@johannesjolkkonen 9 ай бұрын
The main pointer is to make the graph objects as easily distinguishable as possible, i.e name your node-types, relationship-types and their attributes in a way where the names are descriptive and do not get easily mixed. Really this applies for schema design in general, but is especially helpful to reduce the chances that the LLM will mix any of the objects when generating Cypher. Good luck!
@fourhourlife8594
@fourhourlife8594 9 ай бұрын
brah what happens when u use random stream of text. imagine u have a k. graph already, and u continiously stream new data to it. how do u make sure that the entities stay the same, if in round 1 entity was John Mayer, and in round 2, the text used John M. or Johnny Mayer how can u sync this up?
@johannesjolkkonen
@johannesjolkkonen 8 ай бұрын
Hey, great question. This problem of "syncing" similar entities is a key challenge in making this work in real-life. There are some promising methods, which you can learn more about in these two links: margin.re/2023/06/entity-resolution-in-reagent/ (in the second part) kzbin.info/www/bejne/mn-qh2epgdCCmaM I'm not sure how soon I'll manage it, but I definitely want to make a video on this as well, hopefully before too long
@jdutchak67
@jdutchak67 8 ай бұрын
Good but can you do these with just ChatOpenAI not Microsoft stuff Azure etc ? that way its more open source?
@MohammedQuazi-m9k
@MohammedQuazi-m9k 9 ай бұрын
NameError: name 'cypher_query' is not defined
@AlexD_20
@AlexD_20 9 ай бұрын
same here I get the following error: ValidationError: 3 validation errors for GraphCypherQAChain cypher_generation_chain field required (type=value_error.missing) qa_chain field required (type=value_error.missing) graph_schema field required (type=value_error.missing would also like to know how to solve this issue
@D1zZit
@D1zZit 8 ай бұрын
Late to the party, but it's because of your connection string to your neo4j database. Check that you have configured it correctly.
@setop123
@setop123 5 ай бұрын
Problem is the code isn't parsed properly and any error will end up showing 'cypher_query' not defined. Mine was OPENAI_API_BASE in env without value that i left there and made the whole thing bug because it was overwritting the openai API URL in my from langchain_community.chat_models import ChatOpenAI
@RedCloudServices
@RedCloudServices 9 ай бұрын
We use all of these resources except we are not allowed to send anything to openai can this be accomplished with a local llm?
@johannesjolkkonen
@johannesjolkkonen 9 ай бұрын
Hey, sure! Performance generating the cypher will of course vary with open-source models but otherwise the principles are exactly same (: You might also consider running OpenAI's models on Azure if privacy is a concern. That way you will have Azure's enterprise-grade data privacy guarantees, and you can also choose the region where the model is hosted
@kingsleykelechionwuchekwa7508
@kingsleykelechionwuchekwa7508 4 ай бұрын
Is there any way to apply this to the HTML Tree?
@solidkundi
@solidkundi 5 ай бұрын
is SurrealDB any good for these ?
@johannesjolkkonen
@johannesjolkkonen 5 ай бұрын
Actually wasn't aware of SurrealDB before now, looks interesting! I think it should work with the same principles, but with the caveat that SurrealQL being a new dialect of SQL, I think LLMs will struggle to generate it reliably. This is already a significant challenge for Cypher (as I mention in the video) and even standard SQL, so for SurrealQL I think you'd definitely need to fine-tune a model for it.
@zz-dy7bz
@zz-dy7bz 3 күн бұрын
You look like Homelander. lol
@maxizon3631
@maxizon3631 9 ай бұрын
a shame is has music
@johannesjolkkonen
@johannesjolkkonen 9 ай бұрын
Thanks for the feedback! I'm still figuring out how to best edit these videos, and here I tried to balance it by only having music in the intro and outro. Do you think the music is too loud, or would you prefer no music at all?
@maxizon3631
@maxizon3631 9 ай бұрын
@johannesjolkkonen I thought the reason was to avoid your audio being scrapped by skynet! I personally cannot understand well when there is any music on the background and is distracting, but others might disagree. I only watch channels without music as I want the hear clearly.
@ScriptureFirst
@ScriptureFirst 4 ай бұрын
Second for no music 🙏🏼
@ScottzPlaylists
@ScottzPlaylists 4 ай бұрын
@@johannesjolkkonen I'm not here for no stinking music❗ 😏 I need info as efficient as possible - No fluff. Good Job overall 👍
@carthagely122
@carthagely122 8 ай бұрын
I have to really thank you ، how i can contact you
KGC23 Keynote: The Future of Knowledge Graphs in a World of LLMs - Denny Vrandečić, Wikimedia
31:39
LIFEHACK😳 Rate our backpacks 1-10 😜🔥🎒
00:13
Diana Belitskay
Рет қаралды 3,3 МЛН
BYTE task 2 WEB DEV 2024
0:42
Tushar Singla
Рет қаралды 1
How to Build Knowledge Graphs With LLMs (python tutorial)
41:05
Johannes Jolkkonen | Funktio AI
Рет қаралды 72 М.
Chat and RAG with Tabular Databases Using Knowledge Graph and LLM Agents
1:23:34
Contextual and Semantic Information Retrieval using LLMs and Knowledge Graphs
28:41
Local GraphRAG with LLaMa 3.1 - LangChain, Ollama & Neo4j
15:01
Coding Crash Courses
Рет қаралды 18 М.
QLoRA-How to Fine-tune an LLM on a Single GPU (w/ Python Code)
36:58
Chat with SQL and Tabular Databases using LLM Agents (DON'T USE RAG!)
58:54
Fusing Knowledge Graphs and Large Language Models
1:23:24
Rudy's AI Corner
Рет қаралды 10 М.
How To Create a Python API With FastAPI - Full Tutorial
25:39
Tech With Tim
Рет қаралды 45 М.
GraphRAG: LLM-Derived Knowledge Graphs for RAG
15:40
Alex Chao
Рет қаралды 113 М.