know-do-graph 0.1.0__py3-none-any.whl

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.
Files changed (63) hide show
  1. agents/__init__.py +0 -0
  2. agents/extraction_agent/__init__.py +0 -0
  3. agents/extraction_agent/agent.py +170 -0
  4. agents/graph_agent/__init__.py +5 -0
  5. agents/graph_agent/agent.py +373 -0
  6. agents/graph_agent/tools.py +2106 -0
  7. agents/maintenance_agent/__init__.py +0 -0
  8. agents/maintenance_agent/agent.py +283 -0
  9. agents/orchestrator/__init__.py +0 -0
  10. agents/orchestrator/agent.py +217 -0
  11. agents/review_agent/__init__.py +0 -0
  12. agents/review_agent/agent.py +188 -0
  13. agents/review_agent/tools.py +472 -0
  14. api/__init__.py +0 -0
  15. api/main.py +136 -0
  16. api/routes/__init__.py +0 -0
  17. api/routes/agent.py +81 -0
  18. api/routes/entries.py +411 -0
  19. api/routes/graph.py +132 -0
  20. api/routes/mem.py +179 -0
  21. api/routes/remote.py +815 -0
  22. api/routes/remote_sync.py +230 -0
  23. api/routes/retrieve.py +88 -0
  24. core/__init__.py +0 -0
  25. core/app_state.py +9 -0
  26. core/events.py +84 -0
  27. core/extraction/__init__.py +0 -0
  28. core/extraction/wikilink_parser.py +48 -0
  29. core/graph/__init__.py +0 -0
  30. core/graph/graph.py +204 -0
  31. core/memory/__init__.py +0 -0
  32. core/memory/memgraph.py +458 -0
  33. core/resources/starter.db +0 -0
  34. core/retrieval/__init__.py +0 -0
  35. core/retrieval/embedder.py +122 -0
  36. core/retrieval/fusion.py +52 -0
  37. core/retrieval/progressive.py +399 -0
  38. core/retrieval/retrieval.py +346 -0
  39. core/retrieval/vector_store.py +91 -0
  40. core/schemas/__init__.py +0 -0
  41. core/schemas/edge.py +46 -0
  42. core/schemas/entry.py +388 -0
  43. core/storage/__init__.py +0 -0
  44. core/storage/database.py +104 -0
  45. core/storage/models.py +66 -0
  46. core/storage/repository.py +243 -0
  47. core/sync/__init__.py +20 -0
  48. core/sync/autolink.py +301 -0
  49. core/sync/db_merge.py +297 -0
  50. core/sync/db_watcher.py +84 -0
  51. core/sync/remote_sync.py +345 -0
  52. examples/__init__.py +0 -0
  53. examples/example_entries.py +206 -0
  54. examples/pymatgen_interface_examples.py +811 -0
  55. frontend/dist/assets/index-BLfo7ZZu.css +1 -0
  56. frontend/dist/assets/index-G-mYbZ9R.js +83 -0
  57. frontend/dist/assets/index-G-mYbZ9R.js.map +1 -0
  58. frontend/dist/index.html +92 -0
  59. know_do_graph-0.1.0.dist-info/METADATA +765 -0
  60. know_do_graph-0.1.0.dist-info/RECORD +63 -0
  61. know_do_graph-0.1.0.dist-info/WHEEL +4 -0
  62. know_do_graph-0.1.0.dist-info/entry_points.txt +2 -0
  63. main.py +944 -0
@@ -0,0 +1,92 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Know-Do Graph</title>
7
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
8
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
9
+ <link
10
+ href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap"
11
+ rel="stylesheet"
12
+ />
13
+ <script type="module" crossorigin src="./assets/index-G-mYbZ9R.js"></script>
14
+ <link rel="stylesheet" crossorigin href="./assets/index-BLfo7ZZu.css">
15
+ </head>
16
+ <body>
17
+ <div id="error-banner" hidden></div>
18
+
19
+ <header id="toolbar">
20
+ <div class="brand">
21
+ <span class="brand-dot"></span>
22
+ <h1>Know-Do Graph</h1>
23
+ </div>
24
+
25
+ <div class="search-wrap">
26
+ <svg class="search-icon" viewBox="0 0 16 16" width="14" height="14" aria-hidden="true">
27
+ <path
28
+ fill="currentColor"
29
+ d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"
30
+ />
31
+ </svg>
32
+ <input
33
+ type="search"
34
+ id="search-input"
35
+ placeholder="Search title, tags, content… use #tag, press /"
36
+ autocomplete="off"
37
+ spellcheck="false"
38
+ />
39
+ <kbd class="kbd-hint">/</kbd>
40
+ </div>
41
+
42
+ <select id="type-filter" aria-label="Filter by entry type">
43
+ <option value="">All types</option>
44
+ </select>
45
+
46
+ <div class="toolbar-actions">
47
+ <button id="toggle-labels" class="btn" type="button">Labels</button>
48
+ <label class="color-mode-wrap">
49
+ Color:
50
+ <select id="color-mode" aria-label="Node color mode"></select>
51
+ </label>
52
+ <button id="reset-view" class="btn" type="button">Reset view</button>
53
+ </div>
54
+
55
+ <div class="toolbar-status">
56
+ <span id="live-badge" class="badge">● live</span>
57
+ <span id="stats" class="stats">Loading…</span>
58
+ </div>
59
+ </header>
60
+
61
+ <main id="main">
62
+ <section id="canvas">
63
+ <div id="loading">Loading graph…</div>
64
+ <svg id="graph-svg" aria-label="Knowledge graph">
65
+ <defs>
66
+ <marker id="arrow" markerWidth="8" markerHeight="8" refX="18" refY="3" orient="auto">
67
+ <path d="M0,0 L0,6 L8,3 z" fill="var(--edge-color)" />
68
+ </marker>
69
+ <marker id="arrow-hl" markerWidth="8" markerHeight="8" refX="18" refY="3" orient="auto">
70
+ <path d="M0,0 L0,6 L8,3 z" fill="var(--accent)" />
71
+ </marker>
72
+ </defs>
73
+ <g id="scene"></g>
74
+ </svg>
75
+ <aside id="legend" aria-label="Legend">
76
+ <div class="leg-title">Entry types</div>
77
+ </aside>
78
+ </section>
79
+
80
+ <aside id="detail" class="hidden" aria-label="Node detail">
81
+ <header id="detail-header">
82
+ <h2 id="detail-title">Node Detail</h2>
83
+ <button id="detail-close" type="button" aria-label="Close detail panel">×</button>
84
+ </header>
85
+ <div id="detail-body"></div>
86
+ </aside>
87
+ </main>
88
+
89
+ <div id="tooltip" role="tooltip"></div>
90
+
91
+ </body>
92
+ </html>