Skip to content
/ words Public

Creating graphs from text with the help of Ollama and Neo4j

Notifications You must be signed in to change notification settings

proclamo/words

Repository files navigation

Words is a toy project to play with Ollama and Neo4J from a Jupyter notebook or just from a simple python file.

The idea is to provide a text and the model will extract the words and descriptions from the text. In a later step, it will build a Neo4J graph to visualize it.

I wanted to be able to use all this tools without installing them in my machine, so I've spent time to make it work in Docker.

Getting started


Before setting up all services you should download a model from Ollama:

  1. Run Ollama server only
    docker compose up llm -d
  1. Enter to the container
    docker compose exec llm sh
  1. Download the model
    ollama pull orca-mini 
  1. Setup the rest of services
    docker compose up
  1. Got to http://127.0.0.1:8888 to play with the notebook

TODO


  • Improve the prompt to build better graphs
  • Try with other models

About

Creating graphs from text with the help of Ollama and Neo4j

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published