Skip to content

Instantly share code, notes, and snippets.

View wey-gu's full-sized avatar
🥑
Believe in Open Source and build things with magic to help people do the same.

Wey Gu wey-gu

🥑
Believe in Open Source and build things with magic to help people do the same.
View GitHub Profile
@wey-gu
wey-gu / reproduce_v1.md
Last active November 13, 2023 11:14
NebulaGraph v1 scan data after schema alter
View reproduce_v1.md

Quickly setup env

git clone --branch v1.0 https://github.com/vesoft-inc/nebula-docker-compose.git
cd nebula-docker-compose
docker-compose up -d


docker run --rm -ti --network=host vesoft/nebula-console:v1.2.1 -u root -p nebula --addr=127.0.0.1 --port=3699
@wey-gu
wey-gu / KnowledgeGraphIndex_vs_VectorStoreIndex_vs_CustomIndex_combined.ipynb
Last active June 19, 2023 10:17
Example to load docs from a new page in Wikipedia: https://en.wikipedia.org/wiki/2023_in_science created after the 2021 Sept, where 1. how to best leverage kg + vector store backed custom index was demonstrated, 2. the extra cost, performance was evaluated. For review of https://github.com/jerryjliu/llama_index/pull/6497
View KnowledgeGraphIndex_vs_VectorStoreIndex_vs_CustomIndex_combined.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wey-gu
wey-gu / .py
Created March 23, 2023 06:32
NebulaGraph_to_NetworkX
View .py
# nebulagraph --> networkX
## 从 NebulaGraph 中获得一张图,存储为 pd dataframe
from nebula3.gclient.net import ConnectionPool
from nebula3.Config import Config
import pandas as pd
from typing import Dict
from nebula3.data.ResultSet import ResultSet
@wey-gu
wey-gu / world_cup_2022_dataset_extract_OpenAI_ChatGPT.md
Last active April 4, 2023 06:54
Extract Data from wikipedia for World Cup 2022 Dataset
View world_cup_2022_dataset_extract_OpenAI_ChatGPT.md
@wey-gu
wey-gu / controlnet_video.ipynb
Created February 22, 2023 07:38
controlNet_video.ipynb
View controlnet_video.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wey-gu
wey-gu / temp_dd_ext_nebulagraph.md
Created January 18, 2023 11:29
temp for Ajeet
View temp_dd_ext_nebulagraph.md
services:
  NebulaGraphDD:
    image: ${DESKTOP_PLUGIN_IMAGE}
  metad0:
    profiles: ["core"]
    labels:
      - "com.vesoft.scope=core"
    image: vesoft/nebula-metad:v3.3.0
    environment:
@wey-gu
wey-gu / expose-nebulacluster-for-spark-k8s.md
Last active January 4, 2023 04:02
Expose NebulaGraph Cluster in k8s for Spark outside of K8s
View expose-nebulacluster-for-spark-k8s.md

for Docker compose deployment, see https://gist.github.com/wey-gu/950e4f4c673badae375e59007d80d372

a. create services per metad and storaged pod with LoadBalancer type to expose outside the cluster

b. Use TCP Proxy(b.1) or/and DNS(b.2) to resolve endpoint as their : inside the cluster

In this example, in b. I give a demo where both TCP Proxy and DNS are used, actually only DNS is enough if the exposed port remains same of src and target.

@wey-gu
wey-gu / node_exporter_nebulagraph_dashboard.md
Last active December 1, 2022 10:31
how to setup node_exporter for NebulaGraph Dashboard on macOS
View node_exporter_nebulagraph_dashboard.md
  1. install things needed
brew install node_exporter

deploy dashboard in docker-compose ...

  1. configuration on dashboard: