• Stars
    star
    184
  • Rank 209,187 (Top 5 %)
  • Language
    Jupyter Notebook
  • License
    MIT License
  • Created almost 2 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Knowledge-graph based chatbot using GPT3 and Neo4j

NeoGPT-Explorer

Find more information at: https://medium.com/neo4j/knowledge-graph-based-chatbot-with-gpt-3-and-neo4j-c4ebbd325ed

Run the following commands to start the services:

  1. Create an .env file and input your OPENAI API KEY as shown in env.example

  2. Start docker services

docker-compose up
  1. On the first run, you need to seed the database with the following command
sh seed_database.sh

If you are using Windows, you can also execute the notebooks/Import.ipynb notebook for initial import

  1. Open localhost:8501 in your browser

Example questions

What are the latest news?

What are the latest news about Apple?

What are the latest news about COVID-19?

What are the latest news about education?

Who was mentioned in a positive light lately?

Most mentioned people in the last 100 articles?

What are the latest facts?

What do you know about Andrew Macintosh?

Where does Ian Chubb work?

What are most mentioned people in sports?

Data

Testing dataset consists of 1000 latest articles from Kaggle repository: https://www.kaggle.com/datasets/adityakharosekar2/guardian-news-articles

Preprocessing

The information extraction pipeline was executed with Diffbot API: See notebooks/Preprocess.ipynb.

Feedback

Please create an issue if you have any feedback!

More Repositories

1

blogs

Jupyter notebooks that support my graph data science blog posts at https://bratanic-tomaz.medium.com/
Jupyter Notebook
1,319
star
2

llm-movieagent

Semantic layer on top of a graph database to provide an LLM with a set of robust tools to interact with the database
Python
196
star
3

NeoGPT-Recommender

Context-aware knowledge-graph based chatbot using GPT4 and Neo4j
Python
148
star
4

diffbot-kg-chatbot

Knowledge graph construction and RAG demo using Diffbot and Neo4j
Jupyter Notebook
148
star
5

trinity-ie

Information extraction pipeline containing coreference resolution, named entity linking, and relationship extraction
Python
80
star
6

graphs-network-science

Accompanying repository for my book about Graph Data Science
Jupyter Notebook
64
star
7

streamlit-neo4j-hackathon

Python
39
star
8

cypher-direction-competition

Repository that hold the information about the competition about validating and fixing relationship direction in Cypher statements based on the given schema
26
star
9

bitcoin-to-neo4jdash

Project that listens to bitcoin websocket API for new transactions and stores them to Neo4j to be analyzed
Python
24
star
10

blog-datasets

23
star
11

neo4j-hp-viz

Demo App that uses GRANDstack to visualize Harry Potter network
JavaScript
18
star
12

clinical-agent

This project is designed for a simple LLM agent with tools on a clinical knowledge graph in Neo4j.
Python
16
star
13

neo4j-game-of-thrones

HTML
9
star
14

grand-sigmaJS

Network visualizations with SigmaJS and GrandStack (GraphQL + React + Apollo + Neo4j)
JavaScript
8
star
15

SpaCIE

Python
7
star
16

hospitals-neo4j

HTML
5
star
17

neo4j-multimodal-rag

4
star
18

kg-rag

Supporting repository for the Knowledge Graph Enhanced RAG book published by Manning
Jupyter Notebook
2
star