Skip to content

cientopolis/RDFGraphGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

RDFGraphGPT 🕸️

This project extends the Graph GPT project with different approaches in the type of output and the interaction with the originated graph.

Natural Language -> RDF -> Graph

Main functionality

  • RDFGraphGPT can be used as follows: the user inserts any natural language text and obtains an RDF graph visualization.
  • The rdf will be stored in a chosen file so it can be used later either for extend it or for graphing it in another time.
  • Note that the resultant rdf file is generated by GPT (through its API) so there maight be some syntax errors. If any syntax problem is encountered at the moment of the graph visualization, the app will solicitate the user to analyze the rdf and edit it in order to garph it. Don't worry, the error is shown so you can fix it quickly 😉.

Other Functionalities

  • You can extend an existing rdf document only by choosing it and adding the information you want in the "Extender RDF existente" section. This functionality is also achived by using GPTs API, and as in the main functioality, this changes will be stored in the selected document and you will be able to see the graph visualiization in that moment.
  • You can graph an existing rdf document by choosing it in the "Graficar un archivo RDF" section.

SetUp

  1. First of all, you will need to have a Python 3.9+ version and poetry installed.
  2. Make sure you have an OpenAI API key. You need it to interact with the GPT API.
  3. Once you cloned this project, make sure you are on the "main" branch.
  4. Standing on "RDFGraphGPT/RDFGraphGPT" folder: 4.1. Run poetry install. This should install all the dependencies. 4.2. Create a .env file and declare this enviroment variable: OPENAI_API_KEY='<the value of the API key you obtained>'. 4.3. Run poetry shell and then flask --app index run. Now RDFGraphGPT is running on your computer 🎊.

About

This project extends the Graph GPT project with different approaches in the type of output and the interaction with the originated graph.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors