GithubHelp home page GithubHelp logo

osimuka / knowledgegraph-gpt-python Goto Github PK

View Code? Open in Web Editor NEW

This project forked from prateekkale/knowledgegraph-gpt-python

0.0 0.0 0.0 84 KB

This is small project to showcase how we can use llms to generate knowledge graphs using python. Idea is not to showcase fancy graphs but to extract entities and their relationships

License: MIT License

Python 100.00%

knowledgegraph-gpt-python's Introduction

kg-gpt-python

This is small project to showcase how we can use chatgpt api to generate knowledge graphs using python. Idea is not to showcase fancy graphs but to extract entities and their relationships. Prompt reference is taken from https://github.com/varunshenoy/GraphGPT

Requirements

Make sure you have python 3.8 or higher version and below python packages installed.

  1. pandas
  2. networkx
  3. matplotlib

Open AI api key: Please generate and save your open ai api key from here https://platform.openai.com/account/api-keys

How to Run

Please follow below instructions to run this project

  1. Download or clone the project repo.
  2. Install required python packges.
  3. Open cmd and Goto -> knowledgegraph-gpt-python folder.
  4. Run "python3 knowledgegraph.py"
  5. After running it will ask for knowledge base file name where you have your text, for testing i have kept supplychain.txt in knowledgebase folder. You can add any text file in this folder for your purpose.
  6. For testing give "supplychain.txt" as input.
  7. Next it will ask for openai api key. please provide your api key generated from https://platform.openai.com/account/api-keys
  8. Wait for sometime and knowledge graph will be generated. You can also use list of entities and relationships for your projects.

supplychainKG

knowledgegraph-gpt-python's People

Contributors

prateekkale avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.