graphaide 0.4.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- graphaide-0.4.1/.coveragerc +28 -0
- graphaide-0.4.1/.dockerignore +72 -0
- graphaide-0.4.1/.gitignore +81 -0
- graphaide-0.4.1/.readthedocs.yml +27 -0
- graphaide-0.4.1/ARCHITECTURE.md +625 -0
- graphaide-0.4.1/AUTHORS.rst +5 -0
- graphaide-0.4.1/CHANGELOG.rst +10 -0
- graphaide-0.4.1/CLAUDE.md +101 -0
- graphaide-0.4.1/CONTRIBUTING.rst +353 -0
- graphaide-0.4.1/DISCLAIMER +23 -0
- graphaide-0.4.1/Dockerfile +43 -0
- graphaide-0.4.1/Dockerfile.dev +46 -0
- graphaide-0.4.1/LICENSE.txt +23 -0
- graphaide-0.4.1/MANIFEST.in +3 -0
- graphaide-0.4.1/PKG-INFO +191 -0
- graphaide-0.4.1/QUICKSTART.md +443 -0
- graphaide-0.4.1/README.md +114 -0
- graphaide-0.4.1/README.rst +49 -0
- graphaide-0.4.1/REFERENCE.md +594 -0
- graphaide-0.4.1/TODO.md +194 -0
- graphaide-0.4.1/agent_config.json +28 -0
- graphaide-0.4.1/api_updated_example.py +324 -0
- graphaide-0.4.1/cli_updated_example.py +246 -0
- graphaide-0.4.1/config-extract.json +7 -0
- graphaide-0.4.1/config.example.json +24 -0
- graphaide-0.4.1/convert_ontology.py +44 -0
- graphaide-0.4.1/data/PNNL.out.json +244 -0
- graphaide-0.4.1/data/PNNL.rs-OntoKG.json +97 -0
- graphaide-0.4.1/data/PNNL.rs.txt +19 -0
- graphaide-0.4.1/data/PNNL.rsOntoKG.json +115 -0
- graphaide-0.4.1/data/PNNL.txt +25 -0
- graphaide-0.4.1/data/PNNL22.rs-OntoKG.json +131 -0
- graphaide-0.4.1/data/PNNLDay.out.json +219 -0
- graphaide-0.4.1/data/PNNL_About.pdf +0 -0
- graphaide-0.4.1/data/RGTnseqData.txt +4 -0
- graphaide-0.4.1/data/cyberkg.json +141 -0
- graphaide-0.4.1/data/cyberkg.txt +21 -0
- graphaide-0.4.1/data/experiments.pdf +1175 -10
- graphaide-0.4.1/docker-compose.dev.yml +74 -0
- graphaide-0.4.1/docker-compose.override.yml.example +41 -0
- graphaide-0.4.1/docker-compose.yml +75 -0
- graphaide-0.4.1/docs/Makefile +29 -0
- graphaide-0.4.1/docs/_static/.gitignore +1 -0
- graphaide-0.4.1/docs/authors.rst +2 -0
- graphaide-0.4.1/docs/changelog.rst +2 -0
- graphaide-0.4.1/docs/conf.py +286 -0
- graphaide-0.4.1/docs/contributing.rst +1 -0
- graphaide-0.4.1/docs/index.rst +61 -0
- graphaide-0.4.1/docs/license.rst +7 -0
- graphaide-0.4.1/docs/readme.rst +2 -0
- graphaide-0.4.1/docs/requirements.txt +5 -0
- graphaide-0.4.1/embedding_visualization.png +0 -0
- graphaide-0.4.1/examples_workflows.py +313 -0
- graphaide-0.4.1/graphaide_docker_build.sh +195 -0
- graphaide-0.4.1/pyproject.toml +9 -0
- graphaide-0.4.1/run_graph_aide.py +165 -0
- graphaide-0.4.1/scripts/windows/graphaide_docker_build.ps1 +139 -0
- graphaide-0.4.1/scripts/windows/start-graphaide-dev.ps1 +146 -0
- graphaide-0.4.1/scripts/windows/start-graphaide-prod.ps1 +153 -0
- graphaide-0.4.1/setup.cfg +132 -0
- graphaide-0.4.1/setup.py +29 -0
- graphaide-0.4.1/src/graphaide.egg-info/PKG-INFO +191 -0
- graphaide-0.4.1/src/graphaide.egg-info/SOURCES.txt +139 -0
- graphaide-0.4.1/src/graphaide.egg-info/dependency_links.txt +1 -0
- graphaide-0.4.1/src/graphaide.egg-info/entry_points.txt +2 -0
- graphaide-0.4.1/src/graphaide.egg-info/not-zip-safe +1 -0
- graphaide-0.4.1/src/graphaide.egg-info/requires.txt +52 -0
- graphaide-0.4.1/src/graphaide.egg-info/scm_file_list.json +134 -0
- graphaide-0.4.1/src/graphaide.egg-info/scm_version.json +8 -0
- graphaide-0.4.1/src/graphaide.egg-info/top_level.txt +1 -0
- graphaide-0.4.1/src/graphgen/__init__.py +16 -0
- graphaide-0.4.1/src/graphgen/api.py +463 -0
- graphaide-0.4.1/src/graphgen/cli.py +747 -0
- graphaide-0.4.1/src/graphgen/core.py +713 -0
- graphaide-0.4.1/src/graphgen/v2/GraphDBManager.py +116 -0
- graphaide-0.4.1/src/graphgen/v2/ModelManager.py +225 -0
- graphaide-0.4.1/src/graphgen/v2/VectorStoreManager.py +148 -0
- graphaide-0.4.1/src/graphgen/v2/__init__.py +5 -0
- graphaide-0.4.1/src/graphgen/v2/agents/AgentManager.py +193 -0
- graphaide-0.4.1/src/graphgen/v2/agents/__init__.py +87 -0
- graphaide-0.4.1/src/graphgen/v2/agents/base.py +125 -0
- graphaide-0.4.1/src/graphgen/v2/agents/edgesloader.py +140 -0
- graphaide-0.4.1/src/graphgen/v2/agents/edgetable2textgenerator.py +65 -0
- graphaide-0.4.1/src/graphgen/v2/agents/embeddingprojector.py +129 -0
- graphaide-0.4.1/src/graphgen/v2/agents/embeddingvisualizer.py +231 -0
- graphaide-0.4.1/src/graphgen/v2/agents/extractmerger.py +182 -0
- graphaide-0.4.1/src/graphgen/v2/agents/extractor.py +488 -0
- graphaide-0.4.1/src/graphgen/v2/agents/intentpredictor.py +51 -0
- graphaide-0.4.1/src/graphgen/v2/agents/neo4jloader.py +119 -0
- graphaide-0.4.1/src/graphgen/v2/agents/neo4jpostprocessor.py +178 -0
- graphaide-0.4.1/src/graphgen/v2/agents/neo4jqueryrunner.py +82 -0
- graphaide-0.4.1/src/graphgen/v2/agents/nodes4edgesloader.py +151 -0
- graphaide-0.4.1/src/graphgen/v2/agents/nodesloader.py +131 -0
- graphaide-0.4.1/src/graphgen/v2/agents/ontologygenerator.py +251 -0
- graphaide-0.4.1/src/graphgen/v2/agents/ontologyloader.py +173 -0
- graphaide-0.4.1/src/graphgen/v2/agents/questiongraphgenerator.py +52 -0
- graphaide-0.4.1/src/graphgen/v2/agents/simpleagent.py +55 -0
- graphaide-0.4.1/src/graphgen/v2/agents/simplerag.py +90 -0
- graphaide-0.4.1/src/graphgen/v2/agents/textaugmentor.py +60 -0
- graphaide-0.4.1/src/graphgen/v2/agents/vectordbloader.py +1441 -0
- graphaide-0.4.1/src/graphgen/v2/docs/GA_VDB/6fc79c82-1c20-4a02-bb10-71dcaf3a17d7/data_level0.bin +0 -0
- graphaide-0.4.1/src/graphgen/v2/docs/GA_VDB/6fc79c82-1c20-4a02-bb10-71dcaf3a17d7/header.bin +0 -0
- graphaide-0.4.1/src/graphgen/v2/docs/GA_VDB/6fc79c82-1c20-4a02-bb10-71dcaf3a17d7/length.bin +0 -0
- graphaide-0.4.1/src/graphgen/v2/docs/GA_VDB/6fc79c82-1c20-4a02-bb10-71dcaf3a17d7/link_lists.bin +0 -0
- graphaide-0.4.1/src/graphgen/v2/docs/GA_VDB/chroma.sqlite3 +0 -0
- graphaide-0.4.1/src/graphgen/v2/functionnode.py +272 -0
- graphaide-0.4.1/src/graphgen/v2/globalconfig.py +55 -0
- graphaide-0.4.1/src/graphgen/v2/mcp_server.py +40 -0
- graphaide-0.4.1/src/graphgen/v2/query.py +0 -0
- graphaide-0.4.1/src/graphgen/v2/state.py +409 -0
- graphaide-0.4.1/src/graphgen/v2/tools.py +339 -0
- graphaide-0.4.1/src/graphgen/v2/utils/__init__.py +238 -0
- graphaide-0.4.1/src/graphgen/v2/utils/image_utils.py +184 -0
- graphaide-0.4.1/src/graphgen/v2/utils.py +175 -0
- graphaide-0.4.1/src/graphgen/v2/workflows/KGIngest.py +84 -0
- graphaide-0.4.1/src/graphgen/v2/workflows/__init__.py +71 -0
- graphaide-0.4.1/src/graphgen/v2/workflows/base.py +244 -0
- graphaide-0.4.1/src/graphgen/v2/workflows/manager.py +1195 -0
- graphaide-0.4.1/src/graphgen/v2/workflows/retriever_factory.py +204 -0
- graphaide-0.4.1/src/graphgen/v2/workflows/schemas.py +435 -0
- graphaide-0.4.1/src/graphgen/v2/workflows/utils.py +274 -0
- graphaide-0.4.1/start-graphaide-dev.sh +124 -0
- graphaide-0.4.1/start-graphaide-prod.sh +131 -0
- graphaide-0.4.1/templates/edgesloader.template +31 -0
- graphaide-0.4.1/templates/edgetable2textgenerator.template +26 -0
- graphaide-0.4.1/templates/extractor.template +59 -0
- graphaide-0.4.1/templates/extractor_ontology.template +11 -0
- graphaide-0.4.1/templates/intentpredictor.template +36 -0
- graphaide-0.4.1/templates/neo4jloader.template +2 -0
- graphaide-0.4.1/templates/nodes4edgesloader.template +85 -0
- graphaide-0.4.1/templates/nodesloader.template +56 -0
- graphaide-0.4.1/templates/questiongraphgenerator.template +19 -0
- graphaide-0.4.1/templates/simplerag.template +12 -0
- graphaide-0.4.1/templates/textaugmentor.template +28 -0
- graphaide-0.4.1/tests/__pycache__/conftest.cpython-311-pytest-8.4.1.pyc.66736 +0 -0
- graphaide-0.4.1/tests/notebooks/GraphAideLogo_Label_Final.png +0 -0
- graphaide-0.4.1/tests/notebooks/amazon_neptune.txt +2 -0
- graphaide-0.4.1/tests/test_qdrant_image_demo.py +241 -0
- graphaide-0.4.1/tests/test_skeleton.py +25 -0
- graphaide-0.4.1/tox.ini +93 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# .coveragerc to control coverage.py
|
|
2
|
+
[run]
|
|
3
|
+
branch = True
|
|
4
|
+
source = graphaide
|
|
5
|
+
# omit = bad_file.py
|
|
6
|
+
|
|
7
|
+
[paths]
|
|
8
|
+
source =
|
|
9
|
+
src/
|
|
10
|
+
*/site-packages/
|
|
11
|
+
|
|
12
|
+
[report]
|
|
13
|
+
# Regexes for lines to exclude from consideration
|
|
14
|
+
exclude_lines =
|
|
15
|
+
# Have to re-enable the standard pragma
|
|
16
|
+
pragma: no cover
|
|
17
|
+
|
|
18
|
+
# Don't complain about missing debug-only code:
|
|
19
|
+
def __repr__
|
|
20
|
+
if self\.debug
|
|
21
|
+
|
|
22
|
+
# Don't complain if tests don't hit defensive assertion code:
|
|
23
|
+
raise AssertionError
|
|
24
|
+
raise NotImplementedError
|
|
25
|
+
|
|
26
|
+
# Don't complain if non-runnable code isn't run:
|
|
27
|
+
if 0:
|
|
28
|
+
if __name__ == .__main__.:
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Git
|
|
2
|
+
.git
|
|
3
|
+
.gitignore
|
|
4
|
+
|
|
5
|
+
# Python
|
|
6
|
+
__pycache__
|
|
7
|
+
*.py[cod]
|
|
8
|
+
*$py.class
|
|
9
|
+
*.so
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
*.egg-info/
|
|
24
|
+
.installed.cfg
|
|
25
|
+
*.egg
|
|
26
|
+
|
|
27
|
+
# Virtual environments and secrets
|
|
28
|
+
.env
|
|
29
|
+
.env.*
|
|
30
|
+
.venv
|
|
31
|
+
env/
|
|
32
|
+
venv/
|
|
33
|
+
ENV/
|
|
34
|
+
config-prod-*.json
|
|
35
|
+
config-dev-*.json
|
|
36
|
+
|
|
37
|
+
# IDE
|
|
38
|
+
.idea/
|
|
39
|
+
.vscode/
|
|
40
|
+
*.swp
|
|
41
|
+
*.swo
|
|
42
|
+
.claude/
|
|
43
|
+
|
|
44
|
+
# Testing
|
|
45
|
+
.tox/
|
|
46
|
+
.nox/
|
|
47
|
+
.coverage
|
|
48
|
+
.coverage.*
|
|
49
|
+
htmlcov/
|
|
50
|
+
.pytest_cache/
|
|
51
|
+
.hypothesis/
|
|
52
|
+
|
|
53
|
+
# Docs
|
|
54
|
+
docs/_build/
|
|
55
|
+
|
|
56
|
+
# Data files (will be mounted as volumes)
|
|
57
|
+
*.npy
|
|
58
|
+
*.duckdb
|
|
59
|
+
*.pdf
|
|
60
|
+
|
|
61
|
+
# Jupyter
|
|
62
|
+
.ipynb_checkpoints/
|
|
63
|
+
*.ipynb
|
|
64
|
+
tests/notebooks/
|
|
65
|
+
|
|
66
|
+
# OS
|
|
67
|
+
.DS_Store
|
|
68
|
+
Thumbs.db
|
|
69
|
+
|
|
70
|
+
# Local data
|
|
71
|
+
data/
|
|
72
|
+
chroma/
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# Temporary and binary files
|
|
2
|
+
*~
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*.so
|
|
5
|
+
*.cfg
|
|
6
|
+
!.isort.cfg
|
|
7
|
+
!setup.cfg
|
|
8
|
+
*.orig
|
|
9
|
+
*.log
|
|
10
|
+
*.pot
|
|
11
|
+
__pycache__/*
|
|
12
|
+
.cache/*
|
|
13
|
+
.*.swp
|
|
14
|
+
*/.ipynb_checkpoints/*
|
|
15
|
+
.DS_Store
|
|
16
|
+
|
|
17
|
+
# Project files
|
|
18
|
+
.ropeproject
|
|
19
|
+
.project
|
|
20
|
+
.pydevproject
|
|
21
|
+
.settings
|
|
22
|
+
.idea
|
|
23
|
+
.vscode
|
|
24
|
+
tags
|
|
25
|
+
|
|
26
|
+
# Package files
|
|
27
|
+
*.egg
|
|
28
|
+
*.eggs/
|
|
29
|
+
.installed.cfg
|
|
30
|
+
*.egg-info
|
|
31
|
+
|
|
32
|
+
# Unittest and coverage
|
|
33
|
+
htmlcov/*
|
|
34
|
+
.coverage
|
|
35
|
+
.coverage.*
|
|
36
|
+
.tox
|
|
37
|
+
junit*.xml
|
|
38
|
+
coverage.xml
|
|
39
|
+
.pytest_cache/
|
|
40
|
+
|
|
41
|
+
# Build and docs folder/files
|
|
42
|
+
build/*
|
|
43
|
+
dist/*
|
|
44
|
+
sdist/*
|
|
45
|
+
docs/api/*
|
|
46
|
+
docs/_rst/*
|
|
47
|
+
docs/_build/*
|
|
48
|
+
cover/*
|
|
49
|
+
MANIFEST
|
|
50
|
+
data/*.py
|
|
51
|
+
.tests/notebooks/docs/*
|
|
52
|
+
.tests/notebooks/GA_VDB_PATH/*
|
|
53
|
+
.tests/notebooks/docs/GA_VDB/*
|
|
54
|
+
.tests/notebooks/{ATO*,cybersage*,*TechFest*,vast*,demoGraphAide*}
|
|
55
|
+
.tests/notebooks/*.{npy,nt,json,pdf}
|
|
56
|
+
.tests/docs/chroma/*
|
|
57
|
+
.tests/docs/chroma/chroma.sqlite3
|
|
58
|
+
.claude/*
|
|
59
|
+
./*.{ttl,nt,owl,TODO.md}
|
|
60
|
+
.local_vectorstores*/
|
|
61
|
+
.local_vectorstores/*
|
|
62
|
+
|
|
63
|
+
# Per-project virtualenvs
|
|
64
|
+
.venv*/
|
|
65
|
+
.conda*/
|
|
66
|
+
.python-version
|
|
67
|
+
|
|
68
|
+
.env
|
|
69
|
+
.env.*
|
|
70
|
+
.hideenv
|
|
71
|
+
|
|
72
|
+
# Configuration files (local/prod specific, never commit)
|
|
73
|
+
config-prod-*.json
|
|
74
|
+
config-dev-*.json
|
|
75
|
+
config.local.py
|
|
76
|
+
|
|
77
|
+
# Docker Compose local overrides
|
|
78
|
+
docker-compose.override.yml
|
|
79
|
+
|
|
80
|
+
# Session history files (keep locally, don't commit)
|
|
81
|
+
SESSION_HISTORY_*.md
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Read the Docs configuration file
|
|
2
|
+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
|
|
3
|
+
|
|
4
|
+
# Required
|
|
5
|
+
version: 2
|
|
6
|
+
|
|
7
|
+
# Build documentation in the docs/ directory with Sphinx
|
|
8
|
+
sphinx:
|
|
9
|
+
configuration: docs/conf.py
|
|
10
|
+
|
|
11
|
+
# Build documentation with MkDocs
|
|
12
|
+
#mkdocs:
|
|
13
|
+
# configuration: mkdocs.yml
|
|
14
|
+
|
|
15
|
+
# Optionally build your docs in additional formats such as PDF
|
|
16
|
+
formats:
|
|
17
|
+
- pdf
|
|
18
|
+
|
|
19
|
+
build:
|
|
20
|
+
os: ubuntu-22.04
|
|
21
|
+
tools:
|
|
22
|
+
python: "3.11"
|
|
23
|
+
|
|
24
|
+
python:
|
|
25
|
+
install:
|
|
26
|
+
- requirements: docs/requirements.txt
|
|
27
|
+
- {path: ., method: pip}
|