From 5068bce4831a3a8f1702f708efd1e085cc1c0683 Mon Sep 17 00:00:00 2001 From: Fayvor Love Date: Tue, 29 Oct 2024 09:51:45 -0400 Subject: [PATCH 1/4] Gitignore .venv, build, and notebook outputs Signed-off-by: Fayvor Love --- .gitignore | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0e43223 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +lib +GRAPHDATA +GRAPHDATA_OUTPUT + +.venv +build +GraphReasoning.egg-info +.cache \ No newline at end of file From a8d11ff0d9eb52a5044ce743de8a8734153193d4 Mon Sep 17 00:00:00 2001 From: Fayvor Love Date: Tue, 29 Oct 2024 12:48:19 -0400 Subject: [PATCH 2/4] gitignore models dir Signed-off-by: Fayvor Love --- .gitignore | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 0e43223..c332cc1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,12 @@ -lib GRAPHDATA GRAPHDATA_OUTPUT -.venv +lib build +models + +.venv +.vscode +.cache + GraphReasoning.egg-info -.cache \ No newline at end of file From eb972deeac00e156b3184ad1a3c1378371d0d86d Mon Sep 17 00:00:00 2001 From: Fayvor Love Date: Tue, 29 Oct 2024 12:52:24 -0400 Subject: [PATCH 3/4] Add missing dependencies; remove errant 'community' dep. Signed-off-by: Fayvor Love --- setup.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index aadb365..a8c0864 100644 --- a/setup.py +++ b/setup.py @@ -27,10 +27,12 @@ 'torchaudio', 'huggingface_hub', 'langchain', + 'langchain-community', 'pyvis', 'yachalk', 'pytesseract', 'llama-index', + 'llama-index-embeddings-huggingface', 'tqdm', 'ipython', 'scikit-learn', @@ -38,10 +40,10 @@ 'seaborn', 'uuid', 'pdfminer.six', - 'community', 'guidance', 'python-louvain', - 'wkhtmltopdf' + 'wkhtmltopdf', + 'llama-cpp-python', ], description='GraphReasoning: Use LLM to reason over graphs, combined with multi-agent modeling.', long_description=long_description, From 481e30d98a9c014aa86e913420ecd9b289b17065 Mon Sep 17 00:00:00 2001 From: Fayvor Love Date: Tue, 29 Oct 2024 12:53:57 -0400 Subject: [PATCH 4/4] Trim graph data dir to fix download url. Signed-off-by: Fayvor Love --- Notebooks/GraphReasoning - Graph Analysis.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Notebooks/GraphReasoning - Graph Analysis.ipynb b/Notebooks/GraphReasoning - Graph Analysis.ipynb index e766113..1f28463 100644 --- a/Notebooks/GraphReasoning - Graph Analysis.ipynb +++ b/Notebooks/GraphReasoning - Graph Analysis.ipynb @@ -65,7 +65,7 @@ "source": [ "#Hugging Face repo\n", "repository_id = \"lamm-mit/GraphReasoning\"\n", - "data_dir='./GRAPHDATA/' \n", + "data_dir='./GRAPHDATA' \n", "\n", "data_dir_output='./GRAPHDATA_OUTPUT/'\n", "\n",