Coder Social home page Coder Social logo

tomasonjo / neogpt-explorer Goto Github PK

View Code? Open in Web Editor NEW
179.0 9.0 57.0 3.15 MB

Knowledge-graph based chatbot using GPT3 and Neo4j

Home Page: https://medium.com/neo4j/knowledge-graph-based-chatbot-with-gpt-3-and-neo4j-c4ebbd325ed

License: MIT License

Jupyter Notebook 75.02% Python 23.42% Shell 0.17% Dockerfile 1.40%
graph chatbot gpt-3 neo4j nlp streamlit

neogpt-explorer's Introduction

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!

neogpt-explorer's People

Contributors

tomasonjo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

neogpt-explorer's Issues

graphdatascience

when i install database it shows not graphdatascience, and i cannot pip install that

$  sh seed_database.sh
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
ERROR: Could not find a version that satisfies the requirement graphdatascience (from versions: none)
ERROR: No matching distribution found for graphdatascience
WARNING: You are using pip version 20.2.3; however, version 20.3.4 is available.
You should consider upgrading via the '/usr/bin/python2 -m pip install --upgrade pip' command.
Traceback (most recent call last):

# pip install graphdatascience
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
ERROR: Could not find a version that satisfies the requirement graphdatascience (from versions: none)
ERROR: No matching distribution found for graphdatascience
WARNING: You are using pip version 20.2.3; however, version 20.3.4 is available.
You should consider upgrading via the '/usr/bin/python2 -m pip install --upgrade pip' command.

graphdatascience.error.unable_to_connect.UnableToConnectError

When running import.py I encounter:

raise UnableToConnectError(e)
graphdatascience.error.unable_to_connect.UnableToConnectError: {code: Neo.ClientError.Security.Unauthorized} {message: The client is unauthorized due to authentication failure.}

I tried changing

user = "neo4j"
password = "pleaseletmein"

to my Neo4j credentials, which did not help. Should I adjust anything else in the params here?

Thanks for your response!

graphdatascience and neo4j on Apple M1 does not work

Running the example and adding platform: linux/amd64 to docker compose gives Error: No jar URL found for version '5.4.0' in versions.json from 'https://graphdatascience.ninja/versions.json' on Apple M1 pro.

Failed to execute script docker-compose

Not sure why Docker's output message isn't clearer, but if you see the following:

docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
[28430] Failed to execute script docker-compose

It's because Docker on your system isn't running. Start/restart it and you should be good to go. If you don't already have installed, see Docker's official docs

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.