freeman-jiang / nexus

🌲 A 3D, interactive semantic graph of hacker interests at TreeHacks, scraped from Slack intro messages
https://nexusgraph.vercel.app
68 stars 4 forks source link
image

Nexus - 3D semantic graph of hacker interests

Nexus is a data visualization of hacker interests at TreeHacks, Hack the North, and Calhacks.

Quickstart

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

We use Together AI for inferencing and embeddings. Create a .env with

# https://api.together.xyz/settings/api-keys
TOGETHER_API_KEY="<your_api_key>"

Create a file called messages-htn-calhacks.json containing the scraped data.

[
  {
    "Time": "1:47 PM",
    "Name": "John Doe",
    "String": "Hello everyone! My name is John and I'm a X year student from Y university. My background is in Z and I'm looking for ..."
  },
  ...
]

Run main.py then build_graph.py. Your graph will be in graphData.json