Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Make it Make Sense

This project helps you make sense of unstructured text by extracting structured knowledge using OpenAI’s LLM and storing it as a graph in Neo4j.

How to Run

  1. Create a .env file
    Copy .env.copy to .env and fill in your OpenAI and Neo4j credentials.

    cp env.copy .env
    
  2. Install dependencies

    npm install
    
  3. Start Neo4j

    • If using Docker:
      docker run --name neo4j -p7474:7474 -p7687:7687 -d -e NEO4J_AUTH=neo4j/yourPwd neo4j:latest
      
    • Or start your local Neo4j instance.
  4. Configure your prompt and input text
    Edit index.js to update the prompt or input text as needed.

  5. Run the script

    node index
    
  6. View your graph

    • Go to http://localhost:7474/ and log in.
    • To visualize all nodes and relationships, run:
      MATCH (n) OPTIONAL MATCH (n)-[r]->(m) RETURN n, r, m
      

Feel free to adjust the prompt or data structure in index.js to fit your needs! Also play with different db commands to explore your graph!

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages