Convert Any Text into a Knowledge Graph

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024
  • Medium Post: towardsdatasci...
    Code: github.com/rah...
    Schema method: • Graph ML: Build Knowl...
    #datascience #machinelearning #deeplearning #datanalytics #predictiveanalytics #artificialintelligence #generativeai #largelanguagemodels #computervision #naturallanguageprocessing #agents #transformers #embedding #graphml #graphdatascience #datavisualization #businessintelligence #optimization #montecarlosimulation #simulation #LLMs #python #aws #azure #gcp

ความคิดเห็น • 56

  • @SridharKumarKannam
    @SridharKumarKannam  หลายเดือนก่อน

    If you found this content useful, pleases consider sharing it with others who might benefit. Your support is greatly appreciated :)

  • @JavierHernandez-xo5nb
    @JavierHernandez-xo5nb 19 วันที่ผ่านมา

    Great video mate. You save me a lot of time......🚀🚀🚀🚀🚀🚀🚀

    • @SridharKumarKannam
      @SridharKumarKannam  17 วันที่ผ่านมา

      If you found this content helpful, please consider sharing it with others who might benefit. Your support is greatly appreciated :)

  • @AnjanaVMurthy
    @AnjanaVMurthy 20 ชั่วโมงที่ผ่านมา

    Thanks for the video! Can you share the exact source code you have used in the video, I'm not able to find the exact source code in the github link you have provided.

  • @Sriyaa-p8o
    @Sriyaa-p8o 2 หลายเดือนก่อน +1

    sir, i tried running the code in the way shown by you, but in google colab it's saying ollama.client is not being able to be imported error, i tried to use chatgpt but it is unable to rectify it. how can i modify this code using my own dataset and is it going to work in google colab

    • @SridharKumarKannam
      @SridharKumarKannam  2 หลายเดือนก่อน

      whats the error? Can you pls share your colab notebook?

    • @Sriyaa-p8o
      @Sriyaa-p8o 2 หลายเดือนก่อน

      @@SridharKumarKannam sure sir, could you send your gmail, ill forward it to you

    • @Sriyaa-p8o
      @Sriyaa-p8o 2 หลายเดือนก่อน

      @@SridharKumarKannam sure sir, can you please send your email, ill forward it to you

  • @chandrasekharsubramanyam9386
    @chandrasekharsubramanyam9386 21 วันที่ผ่านมา

    Great Video on Text to Knowledge Graph. Can you please tell me how to add context extracted from Knowledge Graph to Retrieval Augmented Generation to get a better response fromLLM

    • @SridharKumarKannam
      @SridharKumarKannam  19 วันที่ผ่านมา

      Pls look at GraphRAG or combining Graphs with RAG. I've a number of video on this topic.
      If you found this content helpful, please consider sharing it with others who might benefit. Your support is greatly appreciated :)

  • @writtenkannadalyrics
    @writtenkannadalyrics หลายเดือนก่อน

    Hey! What's the python package to use helpers library.

    • @SridharKumarKannam
      @SridharKumarKannam  หลายเดือนก่อน

      Those helper functions are in the same codebase - github.com/rahulnyk/knowledge_graph/tree/main/helpers
      If you found this content helpful, please consider sharing it with others who might benefit. Your support is greatly appreciated :)

  • @BlueDattebayo
    @BlueDattebayo 2 หลายเดือนก่อน

    Hi there! I'm having some troubles at the part before calculating contextual proximity:
    "ConnectError: [WinError 10061] No connection could be made because the target machine actively refused it"
    Do I have to open ollama client (on my local machine) before running the code?
    Also there were quite a number of tweaks I had to make to the code before it could run, is that typical from your experiences?
    Some examples of these changes are:
    helpers.df_helpers -> df_helpers
    .prompts -> prompts
    model_name -> model (mistral-openocra)
    etc.
    I'd imagine this might be due to my file management within Jupyter itself? But when I create a folder within the folder, it seems to not be able to find or extract the file. So I've positioned it into the same main folder.
    Looking forward to hearing from you! Thank you so much in advance for your time and informative video.

    • @SridharKumarKannam
      @SridharKumarKannam  2 หลายเดือนก่อน

      >> Do I have to open ollama client (on my local machine) before running the code?
      Yes
      >> Also there were quite a number of tweaks I had to make to the code before it could run, is that typical from your experiences?
      Yes, thats my experience too, these libraries are new and being developed actively by many. The APIs have been keep changing.
      It hard to say whats going on without running the code myself. I'm sure you will be able to fix all the issues one by one, it takes some time, but same with me too. All the best

  • @user-he1nx1rn4m
    @user-he1nx1rn4m 7 หลายเดือนก่อน

    Are you using neo4j for the graph? If so how can i access it from neo4j Database

    • @SridharKumarKannam
      @SridharKumarKannam  6 หลายเดือนก่อน

      In this video, I've used networkx not neo4j. Once you have the nodes and relationships exacted, you can load them any graph DB of your choice...

  • @killerdrama5521
    @killerdrama5521 6 หลายเดือนก่อน

    How can we do this for Wikipedia content. Where we need each every possible mode and relationship type between nodes.

    • @SridharKumarKannam
      @SridharKumarKannam  6 หลายเดือนก่อน +1

      As I mentioned, broadly we have 2 methods, one is open ended where by default LLM extract all nodes and relationship, if it misses any, you can guide the LLM using the prompt. In the 2nd method, you can explicitly define all types of nodes and relationships you want to extract.

    • @killerdrama5521
      @killerdrama5521 6 หลายเดือนก่อน

      @@SridharKumarKannam when can we have next part of the vedio. Actually we are trying to identify nodes relationships and then ontology or knowledge graph based on that. What approach can help us better here. Is there any other generative models which can identify entities and relationships and their properties

  • @suryaankam7856
    @suryaankam7856 6 หลายเดือนก่อน

    Thank you🙏

  • @adawiaananda7353
    @adawiaananda7353 3 วันที่ผ่านมา

    hello sir, is this completely free to use or is there any API key or anything else that I need to purchase? thanks for the video!

  • @andydataguy
    @andydataguy 5 หลายเดือนก่อน +2

    Great video! Thank you for patiently explaining this so deeply

  • @yazeedmohammed7715
    @yazeedmohammed7715 4 หลายเดือนก่อน +2

    first, thank you for the video, second, i tried to use the code but it seems i have problem with ollama, i installed it but i get no model named ollama.client, is there any way to fix it?

    • @SridharKumarKannam
      @SridharKumarKannam  4 หลายเดือนก่อน

      Are you able to fix the issue, otherwise, pls let me know, I'll help...

    • @sofiakindstrom
      @sofiakindstrom หลายเดือนก่อน

      @@SridharKumarKannam I have the same problem. Is there a way to fix it? Im working on a Mac. Btw, super useful video!:D

    • @sofiakindstrom
      @sofiakindstrom หลายเดือนก่อน +1

      @@SridharKumarKannam Nvm, Im stupid! Have a nice day:D

  • @ZochSong
    @ZochSong 4 หลายเดือนก่อน +1

    sir, when running the "res = extractConcepts(prompt = pages[0].page_content)",
    an error occurred that "Max retries exceeded with url: /api/generate".
    Can you help me pls

    • @SridharKumarKannam
      @SridharKumarKannam  4 หลายเดือนก่อน

      Pls check/increase your openAI rate limits or use open source llms using ollama.

  • @forumpost8118
    @forumpost8118 5 หลายเดือนก่อน +1

    Hi, thanks so much for putting this video. It is great. I see you three videos for same thing - text to Graph.. one is this, second one using langchain and third one using libraries similar to this. what are high level differences between the three videos and which approach would you recommend if the scale is more?

    • @SridharKumarKannam
      @SridharKumarKannam  5 หลายเดือนก่อน

      the main difference is control over what entities and relationships you want in your model. You can start with open ended or unbounded schema, but eventually want to refine it to have only the desirable entities and relationships

  • @iham1313
    @iham1313 2 หลายเดือนก่อน +1

    most common format for text: pdf. txt and md are already “easy” to build a graph…

  • @kundeyrajesh9506
    @kundeyrajesh9506 6 หลายเดือนก่อน +1

    Can we also create Knowledge graph for Time series data?

    • @SridharKumarKannam
      @SridharKumarKannam  6 หลายเดือนก่อน

      Thanks for the suggestion, using KGs we represent entities and the relationships between them. For a time series data we don't have such a thing. Pls see - stackoverflow.com/questions/71780910/knowledge-graph-for-time-series-data

  • @saurabhmukherjee9757
    @saurabhmukherjee9757 6 วันที่ผ่านมา

    Nice sir, ❤

    • @SridharKumarKannam
      @SridharKumarKannam  6 วันที่ผ่านมา

      Thank you.
      If you found this content helpful, please consider sharing it with others who might benefit. Your support is greatly appreciated :)

  • @ScottzPlaylists
    @ScottzPlaylists 4 หลายเดือนก่อน +1

    4 points: ❗❗❗❗
    1 = The wording of the edge descriptions seems to be different than the short edge descriptions I've seen in the past. 👎
    2 = The edge descriptions also seems to repeat the words used in node1 or node2. 👎
    3 = I wish the examples used some text that could be broken down in to factual statements and relations like a description of a Github project, or Documentation, or textbook style text. 👎
    4 = I hate sports and the example edge descriptions just seem stupid and useless. 👎

    • @SridharKumarKannam
      @SridharKumarKannam  4 หลายเดือนก่อน

      these are meant for quickly getting started and learning. Thanks for your support

  • @deathdefier45
    @deathdefier45 7 หลายเดือนก่อน +1

    Thank you so much for this ❤

    • @SridharKumarKannam
      @SridharKumarKannam  7 หลายเดือนก่อน +1

      Thanks for your support. Pls share with your friends :)

  • @pavanpraneeth4659
    @pavanpraneeth4659 6 หลายเดือนก่อน

    can u share here the previous video link where we have explicit relation and built a knowledge graph

    • @SridharKumarKannam
      @SridharKumarKannam  6 หลายเดือนก่อน

      th-cam.com/video/sK61Y22wvr8/w-d-xo.html

  • @ronass-sm9sv
    @ronass-sm9sv 6 หลายเดือนก่อน

    I would like to build a taxonomy of skills and an ontology of skills, can I use the same process you used ?

    • @SridharKumarKannam
      @SridharKumarKannam  6 หลายเดือนก่อน

      Pls check this video - th-cam.com/video/sK61Y22wvr8/w-d-xo.html I've a few other videos on defining the entities and relationships, taxonomy, pls check...

  • @pavanpraneeth4659
    @pavanpraneeth4659 6 หลายเดือนก่อน

    awesome video

  • @chrisogonas
    @chrisogonas 5 หลายเดือนก่อน

    Thanks for putting this together. 👍🏾

    • @SridharKumarKannam
      @SridharKumarKannam  5 หลายเดือนก่อน +1

      thank you :)

    • @chrisogonas
      @chrisogonas 5 หลายเดือนก่อน

      @@SridharKumarKannam Certainly!

  • @Ankitist
    @Ankitist 6 หลายเดือนก่อน +1

    Can you also cover how we can add this to neo4j and run query on that data.

    • @SridharKumarKannam
      @SridharKumarKannam  6 หลายเดือนก่อน

      I've a couple of videos on adding such nodes/relationships to neo4j. Pls check - th-cam.com/video/sK61Y22wvr8/w-d-xo.html

  • @sunilsamson6220
    @sunilsamson6220 6 หลายเดือนก่อน

    How can I use this .html as LLamaIndex KnowledgeGraphIndex?

    • @SridharKumarKannam
      @SridharKumarKannam  6 หลายเดือนก่อน

      Simple Directory Reader should read all docs including html in the folder - docs.llamaindex.ai/en/stable/examples/data_connectors/simple_directory_reader.html