The Knowledge Graph App is designed to provide information based on user queries and visualize the data in the form of a knowledge graph.
GitHub Repo : https://github.com/qsaifudin/knwoledge-graph-openai.git
Video Demo : https://youtu.be/cNWrqlrbXac
- Users input questions through the website/frontend.
- The website forwards the input to the backend.
- Backend communicates with Azure OpenAI API to process user input.
- OpenAI's response is sent back to the website as the answer to the user's question.
- The backend then queries Azure OpenAI again to convert the response into a Cypher query.
- The Cypher query response is used to store data in the form of nodes in AuraDB (Neo4j database in the cloud).
- If successful, the node graph is displayed on the website.
- In case of failure, users can click the "TRY AGAIN" button to restore data and visualize nodes.
- Users can delete all nodes in the database using the "DELETE ALL NODES" button.
- Framework: Express
- Database: AuraDB (Cloud version of Neo4j)
- neo4j+s
- Framework: Nuxt3
- UI Framework: Vuetify
-
Get All Nodes:
- URL:
http:https://localhost:5000/api/node
- Method: GET
- URL:
-
Query Processing:
- URL:
http:https://localhost:5000/api/query
- Method: POST
- Body:
{ "query": "User query" }
- URL:
-
Store Cypher Query:
- URL:
http:https://localhost:5000/api/node-query
- Method: POST
- Body:
{ "query": "Cypher query" }
- URL:
-
Delete All Nodes:
- URL:
http:https://localhost:5000/api/node/delete-all
- Method: POST
- URL:
Detail setup instructions and system requirements are already available in the README.me
file inside the backend and frontend folders.
- Saifudin
- Email: [email protected]
- LinkedIn: https://www.linkedin.com/in/qsaifudin/
- Personal Web: https://qsaifudin.site/