htm 0.0.1 → 0.0.2
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.
- checksums.yaml +4 -4
- data/.envrc +1 -0
- data/.tbls.yml +30 -0
- data/CHANGELOG.md +30 -0
- data/SETUP.md +132 -101
- data/db/migrate/20250125000001_add_content_hash_to_nodes.rb +14 -0
- data/db/migrate/20250125000002_create_robot_nodes.rb +35 -0
- data/db/migrate/20250125000003_remove_source_and_robot_id_from_nodes.rb +28 -0
- data/db/migrate/20250126000001_create_working_memories.rb +19 -0
- data/db/migrate/20250126000002_remove_unused_columns.rb +12 -0
- data/db/schema.sql +226 -43
- data/docs/api/database.md +20 -232
- data/docs/api/embedding-service.md +1 -7
- data/docs/api/htm.md +195 -449
- data/docs/api/index.md +1 -7
- data/docs/api/long-term-memory.md +342 -590
- data/docs/architecture/adrs/001-postgresql-timescaledb.md +1 -1
- data/docs/architecture/adrs/003-ollama-embeddings.md +1 -1
- data/docs/architecture/adrs/010-redis-working-memory-rejected.md +2 -27
- data/docs/architecture/adrs/index.md +2 -13
- data/docs/architecture/hive-mind.md +165 -166
- data/docs/architecture/index.md +2 -2
- data/docs/architecture/overview.md +5 -171
- data/docs/architecture/two-tier-memory.md +1 -35
- data/docs/assets/images/adr-010-current-architecture.svg +37 -0
- data/docs/assets/images/adr-010-proposed-architecture.svg +48 -0
- data/docs/assets/images/adr-dependency-tree.svg +93 -0
- data/docs/assets/images/class-hierarchy.svg +55 -0
- data/docs/assets/images/exception-hierarchy.svg +45 -0
- data/docs/assets/images/htm-architecture-overview.svg +83 -0
- data/docs/assets/images/htm-complete-memory-flow.svg +160 -0
- data/docs/assets/images/htm-context-assembly-flow.svg +148 -0
- data/docs/assets/images/htm-eviction-process.svg +141 -0
- data/docs/assets/images/htm-memory-addition-flow.svg +138 -0
- data/docs/assets/images/htm-memory-recall-flow.svg +152 -0
- data/docs/assets/images/htm-node-states.svg +123 -0
- data/docs/assets/images/project-structure.svg +78 -0
- data/docs/assets/images/test-directory-structure.svg +38 -0
- data/{dbdoc → docs/database}/README.md +5 -3
- data/{dbdoc → docs/database}/public.node_tags.md +4 -5
- data/docs/database/public.node_tags.svg +106 -0
- data/{dbdoc → docs/database}/public.nodes.md +3 -8
- data/docs/database/public.nodes.svg +152 -0
- data/docs/database/public.robot_nodes.md +44 -0
- data/docs/database/public.robot_nodes.svg +121 -0
- data/{dbdoc → docs/database}/public.robots.md +1 -2
- data/docs/database/public.robots.svg +106 -0
- data/docs/database/public.working_memories.md +40 -0
- data/docs/database/public.working_memories.svg +112 -0
- data/{dbdoc → docs/database}/schema.json +342 -110
- data/docs/database/schema.svg +223 -0
- data/docs/development/index.md +1 -29
- data/docs/development/schema.md +84 -324
- data/docs/development/testing.md +1 -9
- data/docs/getting-started/index.md +47 -0
- data/docs/{installation.md → getting-started/installation.md} +2 -2
- data/docs/{quick-start.md → getting-started/quick-start.md} +5 -5
- data/docs/guides/adding-memories.md +221 -655
- data/docs/guides/search-strategies.md +85 -51
- data/docs/images/htm-er-diagram.svg +156 -0
- data/docs/index.md +16 -31
- data/docs/multi_framework_support.md +4 -4
- data/examples/basic_usage.rb +18 -16
- data/examples/cli_app/htm_cli.rb +86 -8
- data/examples/custom_llm_configuration.rb +1 -2
- data/examples/example_app/app.rb +11 -14
- data/examples/sinatra_app/Gemfile +1 -0
- data/examples/sinatra_app/Gemfile.lock +166 -0
- data/examples/sinatra_app/app.rb +219 -24
- data/lib/htm/active_record_config.rb +10 -3
- data/lib/htm/configuration.rb +265 -78
- data/lib/htm/{sinatra.rb → integrations/sinatra.rb} +87 -12
- data/lib/htm/job_adapter.rb +10 -3
- data/lib/htm/long_term_memory.rb +220 -57
- data/lib/htm/models/node.rb +36 -7
- data/lib/htm/models/robot.rb +30 -4
- data/lib/htm/models/robot_node.rb +50 -0
- data/lib/htm/models/tag.rb +52 -0
- data/lib/htm/models/working_memory_entry.rb +88 -0
- data/lib/htm/tasks.rb +4 -0
- data/lib/htm/version.rb +1 -1
- data/lib/htm.rb +34 -13
- data/lib/tasks/htm.rake +32 -1
- data/lib/tasks/jobs.rake +7 -3
- data/lib/tasks/tags.rake +34 -0
- data/mkdocs.yml +56 -9
- metadata +61 -31
- data/dbdoc/public.node_tags.svg +0 -112
- data/dbdoc/public.nodes.svg +0 -118
- data/dbdoc/public.robots.svg +0 -90
- data/dbdoc/schema.svg +0 -154
- /data/{dbdoc → docs/database}/public.node_stats.md +0 -0
- /data/{dbdoc → docs/database}/public.node_stats.svg +0 -0
- /data/{dbdoc → docs/database}/public.nodes_tags.md +0 -0
- /data/{dbdoc → docs/database}/public.nodes_tags.svg +0 -0
- /data/{dbdoc → docs/database}/public.ontology_structure.md +0 -0
- /data/{dbdoc → docs/database}/public.ontology_structure.svg +0 -0
- /data/{dbdoc → docs/database}/public.operations_log.md +0 -0
- /data/{dbdoc → docs/database}/public.operations_log.svg +0 -0
- /data/{dbdoc → docs/database}/public.relationships.md +0 -0
- /data/{dbdoc → docs/database}/public.relationships.svg +0 -0
- /data/{dbdoc → docs/database}/public.robot_activity.md +0 -0
- /data/{dbdoc → docs/database}/public.robot_activity.svg +0 -0
- /data/{dbdoc → docs/database}/public.schema_migrations.md +0 -0
- /data/{dbdoc → docs/database}/public.schema_migrations.svg +0 -0
- /data/{dbdoc → docs/database}/public.tags.md +0 -0
- /data/{dbdoc → docs/database}/public.tags.svg +0 -0
- /data/{dbdoc → docs/database}/public.topic_relationships.md +0 -0
- /data/{dbdoc → docs/database}/public.topic_relationships.svg +0 -0
data/dbdoc/public.node_tags.svg
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
-
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
|
3
|
-
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
4
|
-
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
|
5
|
-
-->
|
|
6
|
-
<!-- Title: public.node_tags Pages: 1 -->
|
|
7
|
-
<svg width="961pt" height="787pt"
|
|
8
|
-
viewBox="0.00 0.00 961.37 786.80" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
9
|
-
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 782.8)">
|
|
10
|
-
<title>public.node_tags</title>
|
|
11
|
-
<polygon fill="white" stroke="none" points="-4,4 -4,-782.8 957.37,-782.8 957.37,4 -4,4"/>
|
|
12
|
-
<!-- public.node_tags -->
|
|
13
|
-
<g id="node1" class="node">
|
|
14
|
-
<title>public.node_tags</title>
|
|
15
|
-
<polygon fill="#efefef" stroke="none" points="354.55,-697 354.55,-732.6 615.51,-732.6 615.51,-697 354.55,-697"/>
|
|
16
|
-
<polygon fill="none" stroke="black" points="354.55,-697 354.55,-732.6 615.51,-732.6 615.51,-697 354.55,-697"/>
|
|
17
|
-
<text text-anchor="start" x="361.55" y="-710.4" font-family="Arial Bold" font-size="18.00">public.node_tags</text>
|
|
18
|
-
<text text-anchor="start" x="484.02" y="-710.4" font-family="Arial" font-size="14.00"> </text>
|
|
19
|
-
<text text-anchor="start" x="515.14" y="-710.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
|
|
20
|
-
<polygon fill="none" stroke="black" points="354.55,-666.2 354.55,-697 615.51,-697 615.51,-666.2 354.55,-666.2"/>
|
|
21
|
-
<text text-anchor="start" x="361.55" y="-678.4" font-family="Arial" font-size="14.00">id </text>
|
|
22
|
-
<text text-anchor="start" x="376.33" y="-678.4" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
|
|
23
|
-
<polygon fill="none" stroke="black" points="354.55,-635.4 354.55,-666.2 615.51,-666.2 615.51,-635.4 354.55,-635.4"/>
|
|
24
|
-
<text text-anchor="start" x="361.55" y="-647.6" font-family="Arial" font-size="14.00">node_id </text>
|
|
25
|
-
<text text-anchor="start" x="415.26" y="-647.6" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
|
|
26
|
-
<polygon fill="none" stroke="black" points="354.55,-604.6 354.55,-635.4 615.51,-635.4 615.51,-604.6 354.55,-604.6"/>
|
|
27
|
-
<text text-anchor="start" x="361.55" y="-616.8" font-family="Arial" font-size="14.00">tag_id </text>
|
|
28
|
-
<text text-anchor="start" x="403.58" y="-616.8" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
|
|
29
|
-
<polygon fill="none" stroke="black" points="354.55,-573.8 354.55,-604.6 615.51,-604.6 615.51,-573.8 354.55,-573.8"/>
|
|
30
|
-
<text text-anchor="start" x="361.55" y="-586" font-family="Arial" font-size="14.00">created_at </text>
|
|
31
|
-
<text text-anchor="start" x="431.59" y="-586" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
|
|
32
|
-
<polygon fill="none" stroke="black" stroke-width="3" points="353.05,-572.3 353.05,-734.1 617.01,-734.1 617.01,-572.3 353.05,-572.3"/>
|
|
33
|
-
</g>
|
|
34
|
-
<!-- public.nodes -->
|
|
35
|
-
<g id="node2" class="node">
|
|
36
|
-
<title>public.nodes</title>
|
|
37
|
-
<polygon fill="#efefef" stroke="none" points="166.86,-412.8 166.86,-448.4 439.19,-448.4 439.19,-412.8 166.86,-412.8"/>
|
|
38
|
-
<polygon fill="none" stroke="black" points="166.86,-412.8 166.86,-448.4 439.19,-448.4 439.19,-412.8 166.86,-412.8"/>
|
|
39
|
-
<text text-anchor="start" x="195.04" y="-426.2" font-family="Arial Bold" font-size="18.00">public.nodes</text>
|
|
40
|
-
<text text-anchor="start" x="286.53" y="-426.2" font-family="Arial" font-size="14.00"> </text>
|
|
41
|
-
<text text-anchor="start" x="317.64" y="-426.2" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
|
|
42
|
-
<polygon fill="none" stroke="black" points="166.86,-382 166.86,-412.8 439.19,-412.8 439.19,-382 166.86,-382"/>
|
|
43
|
-
<text text-anchor="start" x="173.86" y="-394.2" font-family="Arial" font-size="14.00">id </text>
|
|
44
|
-
<text text-anchor="start" x="188.65" y="-394.2" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
|
|
45
|
-
<polygon fill="none" stroke="black" points="166.86,-351.2 166.86,-382 439.19,-382 439.19,-351.2 166.86,-351.2"/>
|
|
46
|
-
<text text-anchor="start" x="173.86" y="-363.4" font-family="Arial" font-size="14.00">content </text>
|
|
47
|
-
<text text-anchor="start" x="223.68" y="-363.4" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
|
|
48
|
-
<polygon fill="none" stroke="black" points="166.86,-320.4 166.86,-351.2 439.19,-351.2 439.19,-320.4 166.86,-320.4"/>
|
|
49
|
-
<text text-anchor="start" x="173.86" y="-332.6" font-family="Arial" font-size="14.00">source </text>
|
|
50
|
-
<text text-anchor="start" x="219.77" y="-332.6" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
|
|
51
|
-
<polygon fill="none" stroke="black" points="166.86,-289.6 166.86,-320.4 439.19,-320.4 439.19,-289.6 166.86,-289.6"/>
|
|
52
|
-
<text text-anchor="start" x="173.86" y="-301.8" font-family="Arial" font-size="14.00">access_count </text>
|
|
53
|
-
<text text-anchor="start" x="263.36" y="-301.8" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
|
|
54
|
-
<polygon fill="none" stroke="black" points="166.86,-258.8 166.86,-289.6 439.19,-289.6 439.19,-258.8 166.86,-258.8"/>
|
|
55
|
-
<text text-anchor="start" x="173.86" y="-271" font-family="Arial" font-size="14.00">created_at </text>
|
|
56
|
-
<text text-anchor="start" x="243.91" y="-271" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
|
|
57
|
-
<polygon fill="none" stroke="black" points="166.86,-228 166.86,-258.8 439.19,-258.8 439.19,-228 166.86,-228"/>
|
|
58
|
-
<text text-anchor="start" x="173.86" y="-240.2" font-family="Arial" font-size="14.00">updated_at </text>
|
|
59
|
-
<text text-anchor="start" x="247.82" y="-240.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
|
|
60
|
-
<polygon fill="none" stroke="black" points="166.86,-197.2 166.86,-228 439.19,-228 439.19,-197.2 166.86,-197.2"/>
|
|
61
|
-
<text text-anchor="start" x="173.86" y="-209.4" font-family="Arial" font-size="14.00">last_accessed </text>
|
|
62
|
-
<text text-anchor="start" x="266.47" y="-209.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
|
|
63
|
-
<polygon fill="none" stroke="black" points="166.86,-166.4 166.86,-197.2 439.19,-197.2 439.19,-166.4 166.86,-166.4"/>
|
|
64
|
-
<text text-anchor="start" x="173.86" y="-178.6" font-family="Arial" font-size="14.00">token_count </text>
|
|
65
|
-
<text text-anchor="start" x="254.04" y="-178.6" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
|
|
66
|
-
<polygon fill="none" stroke="black" points="166.86,-135.6 166.86,-166.4 439.19,-166.4 439.19,-135.6 166.86,-135.6"/>
|
|
67
|
-
<text text-anchor="start" x="173.86" y="-147.8" font-family="Arial" font-size="14.00">in_working_memory </text>
|
|
68
|
-
<text text-anchor="start" x="303.02" y="-147.8" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
|
|
69
|
-
<polygon fill="none" stroke="black" points="166.86,-104.8 166.86,-135.6 439.19,-135.6 439.19,-104.8 166.86,-104.8"/>
|
|
70
|
-
<text text-anchor="start" x="173.86" y="-117" font-family="Arial" font-size="14.00">robot_id </text>
|
|
71
|
-
<text text-anchor="start" x="228.35" y="-117" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
|
|
72
|
-
<polygon fill="none" stroke="black" points="166.86,-74 166.86,-104.8 439.19,-104.8 439.19,-74 166.86,-74"/>
|
|
73
|
-
<text text-anchor="start" x="173.86" y="-86.2" font-family="Arial" font-size="14.00">embedding </text>
|
|
74
|
-
<text text-anchor="start" x="247.03" y="-86.2" font-family="Arial" font-size="14.00" fill="#666666">[vector(2000)]</text>
|
|
75
|
-
<polygon fill="none" stroke="black" points="166.86,-43.2 166.86,-74 439.19,-74 439.19,-43.2 166.86,-43.2"/>
|
|
76
|
-
<text text-anchor="start" x="173.86" y="-55.4" font-family="Arial" font-size="14.00">embedding_dimension </text>
|
|
77
|
-
<text text-anchor="start" x="318.63" y="-55.4" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
|
|
78
|
-
</g>
|
|
79
|
-
<!-- public.node_tags->public.nodes -->
|
|
80
|
-
<g id="edge1" class="edge">
|
|
81
|
-
<title>public.node_tags:node_id->public.nodes:id</title>
|
|
82
|
-
<path fill="none" stroke="black" d="M343.42,-649.75C302.28,-640.33 326.23,-570.04 354.55,-527.6 377.24,-493.59 416.46,-525.58 439.19,-491.6 462.48,-456.8 482.06,-397.4 440.19,-397.4"/>
|
|
83
|
-
<polygon fill="black" stroke="black" points="343.27,-649.73 352.75,-655.24 348.57,-650.28 352.88,-650.73 352.88,-650.73 352.88,-650.73 348.57,-650.28 353.68,-646.29 343.27,-649.73"/>
|
|
84
|
-
<text text-anchor="start" x="7" y="-660.8" font-family="Arial" font-size="10.00">FOREIGN KEY (node_id) REFERENCES nodes(id) ON DELETE CASCADE</text>
|
|
85
|
-
</g>
|
|
86
|
-
<!-- public.tags -->
|
|
87
|
-
<g id="node3" class="node">
|
|
88
|
-
<title>public.tags</title>
|
|
89
|
-
<polygon fill="#efefef" stroke="none" points="543.14,-274.2 543.14,-309.8 792.91,-309.8 792.91,-274.2 543.14,-274.2"/>
|
|
90
|
-
<polygon fill="none" stroke="black" points="543.14,-274.2 543.14,-309.8 792.91,-309.8 792.91,-274.2 543.14,-274.2"/>
|
|
91
|
-
<text text-anchor="start" x="566.54" y="-287.6" font-family="Arial Bold" font-size="18.00">public.tags</text>
|
|
92
|
-
<text text-anchor="start" x="645.03" y="-287.6" font-family="Arial" font-size="14.00"> </text>
|
|
93
|
-
<text text-anchor="start" x="676.14" y="-287.6" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
|
|
94
|
-
<polygon fill="none" stroke="black" points="543.14,-243.4 543.14,-274.2 792.91,-274.2 792.91,-243.4 543.14,-243.4"/>
|
|
95
|
-
<text text-anchor="start" x="550.14" y="-255.6" font-family="Arial" font-size="14.00">id </text>
|
|
96
|
-
<text text-anchor="start" x="564.93" y="-255.6" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
|
|
97
|
-
<polygon fill="none" stroke="black" points="543.14,-212.6 543.14,-243.4 792.91,-243.4 792.91,-212.6 543.14,-212.6"/>
|
|
98
|
-
<text text-anchor="start" x="550.14" y="-224.8" font-family="Arial" font-size="14.00">name </text>
|
|
99
|
-
<text text-anchor="start" x="589.05" y="-224.8" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
|
|
100
|
-
<polygon fill="none" stroke="black" points="543.14,-181.8 543.14,-212.6 792.91,-212.6 792.91,-181.8 543.14,-181.8"/>
|
|
101
|
-
<text text-anchor="start" x="550.14" y="-194" font-family="Arial" font-size="14.00">created_at </text>
|
|
102
|
-
<text text-anchor="start" x="620.19" y="-194" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
|
|
103
|
-
</g>
|
|
104
|
-
<!-- public.node_tags->public.tags -->
|
|
105
|
-
<g id="edge2" class="edge">
|
|
106
|
-
<title>public.node_tags:tag_id->public.tags:id</title>
|
|
107
|
-
<path fill="none" stroke="black" d="M626.71,-619.46C762.63,-603.96 381.92,-258.8 542.14,-258.8"/>
|
|
108
|
-
<polygon fill="black" stroke="black" points="626.83,-619.46 616.61,-615.49 621.5,-619.74 617.18,-619.96 617.18,-619.96 617.18,-619.96 621.5,-619.74 617.08,-624.48 626.83,-619.46"/>
|
|
109
|
-
<text text-anchor="start" x="623.51" y="-630" font-family="Arial" font-size="10.00">FOREIGN KEY (tag_id) REFERENCES tags(id) ON DELETE CASCADE</text>
|
|
110
|
-
</g>
|
|
111
|
-
</g>
|
|
112
|
-
</svg>
|
data/dbdoc/public.nodes.svg
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
-
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
|
3
|
-
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
4
|
-
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
|
5
|
-
-->
|
|
6
|
-
<!-- Title: public.nodes Pages: 1 -->
|
|
7
|
-
<svg width="682pt" height="1099pt"
|
|
8
|
-
viewBox="0.00 0.00 682.17 1098.80" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
9
|
-
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 1094.8)">
|
|
10
|
-
<title>public.nodes</title>
|
|
11
|
-
<polygon fill="white" stroke="none" points="-4,4 -4,-1094.8 678.17,-1094.8 678.17,4 -4,4"/>
|
|
12
|
-
<!-- public.nodes -->
|
|
13
|
-
<g id="node1" class="node">
|
|
14
|
-
<title>public.nodes</title>
|
|
15
|
-
<polygon fill="#efefef" stroke="none" points="46.2,-727.8 46.2,-763.4 318.53,-763.4 318.53,-727.8 46.2,-727.8"/>
|
|
16
|
-
<polygon fill="none" stroke="black" points="46.2,-727.8 46.2,-763.4 318.53,-763.4 318.53,-727.8 46.2,-727.8"/>
|
|
17
|
-
<text text-anchor="start" x="74.38" y="-741.2" font-family="Arial Bold" font-size="18.00">public.nodes</text>
|
|
18
|
-
<text text-anchor="start" x="165.86" y="-741.2" font-family="Arial" font-size="14.00"> </text>
|
|
19
|
-
<text text-anchor="start" x="196.98" y="-741.2" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
|
|
20
|
-
<polygon fill="none" stroke="black" points="46.2,-697 46.2,-727.8 318.53,-727.8 318.53,-697 46.2,-697"/>
|
|
21
|
-
<text text-anchor="start" x="53.2" y="-709.2" font-family="Arial" font-size="14.00">id </text>
|
|
22
|
-
<text text-anchor="start" x="67.99" y="-709.2" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
|
|
23
|
-
<polygon fill="none" stroke="black" points="46.2,-666.2 46.2,-697 318.53,-697 318.53,-666.2 46.2,-666.2"/>
|
|
24
|
-
<text text-anchor="start" x="53.2" y="-678.4" font-family="Arial" font-size="14.00">content </text>
|
|
25
|
-
<text text-anchor="start" x="103.01" y="-678.4" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
|
|
26
|
-
<polygon fill="none" stroke="black" points="46.2,-635.4 46.2,-666.2 318.53,-666.2 318.53,-635.4 46.2,-635.4"/>
|
|
27
|
-
<text text-anchor="start" x="53.2" y="-647.6" font-family="Arial" font-size="14.00">source </text>
|
|
28
|
-
<text text-anchor="start" x="99.11" y="-647.6" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
|
|
29
|
-
<polygon fill="none" stroke="black" points="46.2,-604.6 46.2,-635.4 318.53,-635.4 318.53,-604.6 46.2,-604.6"/>
|
|
30
|
-
<text text-anchor="start" x="53.2" y="-616.8" font-family="Arial" font-size="14.00">access_count </text>
|
|
31
|
-
<text text-anchor="start" x="142.7" y="-616.8" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
|
|
32
|
-
<polygon fill="none" stroke="black" points="46.2,-573.8 46.2,-604.6 318.53,-604.6 318.53,-573.8 46.2,-573.8"/>
|
|
33
|
-
<text text-anchor="start" x="53.2" y="-586" font-family="Arial" font-size="14.00">created_at </text>
|
|
34
|
-
<text text-anchor="start" x="123.25" y="-586" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
|
|
35
|
-
<polygon fill="none" stroke="black" points="46.2,-543 46.2,-573.8 318.53,-573.8 318.53,-543 46.2,-543"/>
|
|
36
|
-
<text text-anchor="start" x="53.2" y="-555.2" font-family="Arial" font-size="14.00">updated_at </text>
|
|
37
|
-
<text text-anchor="start" x="127.16" y="-555.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
|
|
38
|
-
<polygon fill="none" stroke="black" points="46.2,-512.2 46.2,-543 318.53,-543 318.53,-512.2 46.2,-512.2"/>
|
|
39
|
-
<text text-anchor="start" x="53.2" y="-524.4" font-family="Arial" font-size="14.00">last_accessed </text>
|
|
40
|
-
<text text-anchor="start" x="145.81" y="-524.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
|
|
41
|
-
<polygon fill="none" stroke="black" points="46.2,-481.4 46.2,-512.2 318.53,-512.2 318.53,-481.4 46.2,-481.4"/>
|
|
42
|
-
<text text-anchor="start" x="53.2" y="-493.6" font-family="Arial" font-size="14.00">token_count </text>
|
|
43
|
-
<text text-anchor="start" x="133.37" y="-493.6" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
|
|
44
|
-
<polygon fill="none" stroke="black" points="46.2,-450.6 46.2,-481.4 318.53,-481.4 318.53,-450.6 46.2,-450.6"/>
|
|
45
|
-
<text text-anchor="start" x="53.2" y="-462.8" font-family="Arial" font-size="14.00">in_working_memory </text>
|
|
46
|
-
<text text-anchor="start" x="182.36" y="-462.8" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
|
|
47
|
-
<polygon fill="none" stroke="black" points="46.2,-419.8 46.2,-450.6 318.53,-450.6 318.53,-419.8 46.2,-419.8"/>
|
|
48
|
-
<text text-anchor="start" x="53.2" y="-432" font-family="Arial" font-size="14.00">robot_id </text>
|
|
49
|
-
<text text-anchor="start" x="107.68" y="-432" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
|
|
50
|
-
<polygon fill="none" stroke="black" points="46.2,-389 46.2,-419.8 318.53,-419.8 318.53,-389 46.2,-389"/>
|
|
51
|
-
<text text-anchor="start" x="53.2" y="-401.2" font-family="Arial" font-size="14.00">embedding </text>
|
|
52
|
-
<text text-anchor="start" x="126.37" y="-401.2" font-family="Arial" font-size="14.00" fill="#666666">[vector(2000)]</text>
|
|
53
|
-
<polygon fill="none" stroke="black" points="46.2,-358.2 46.2,-389 318.53,-389 318.53,-358.2 46.2,-358.2"/>
|
|
54
|
-
<text text-anchor="start" x="53.2" y="-370.4" font-family="Arial" font-size="14.00">embedding_dimension </text>
|
|
55
|
-
<text text-anchor="start" x="197.96" y="-370.4" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
|
|
56
|
-
<polygon fill="none" stroke="black" stroke-width="3" points="44.7,-356.7 44.7,-764.9 320.03,-764.9 320.03,-356.7 44.7,-356.7"/>
|
|
57
|
-
</g>
|
|
58
|
-
<!-- public.robots -->
|
|
59
|
-
<g id="node3" class="node">
|
|
60
|
-
<title>public.robots</title>
|
|
61
|
-
<polygon fill="#efefef" stroke="none" points="57.48,-197.2 57.48,-232.8 307.25,-232.8 307.25,-197.2 57.48,-197.2"/>
|
|
62
|
-
<polygon fill="none" stroke="black" points="57.48,-197.2 57.48,-232.8 307.25,-232.8 307.25,-197.2 57.48,-197.2"/>
|
|
63
|
-
<text text-anchor="start" x="72.87" y="-210.6" font-family="Arial Bold" font-size="18.00">public.robots</text>
|
|
64
|
-
<text text-anchor="start" x="167.37" y="-210.6" font-family="Arial" font-size="14.00"> </text>
|
|
65
|
-
<text text-anchor="start" x="198.48" y="-210.6" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
|
|
66
|
-
<polygon fill="none" stroke="black" points="57.48,-166.4 57.48,-197.2 307.25,-197.2 307.25,-166.4 57.48,-166.4"/>
|
|
67
|
-
<text text-anchor="start" x="64.48" y="-178.6" font-family="Arial" font-size="14.00">id </text>
|
|
68
|
-
<text text-anchor="start" x="79.27" y="-178.6" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
|
|
69
|
-
<polygon fill="none" stroke="black" points="57.48,-135.6 57.48,-166.4 307.25,-166.4 307.25,-135.6 57.48,-135.6"/>
|
|
70
|
-
<text text-anchor="start" x="64.48" y="-147.8" font-family="Arial" font-size="14.00">name </text>
|
|
71
|
-
<text text-anchor="start" x="103.39" y="-147.8" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
|
|
72
|
-
<polygon fill="none" stroke="black" points="57.48,-104.8 57.48,-135.6 307.25,-135.6 307.25,-104.8 57.48,-104.8"/>
|
|
73
|
-
<text text-anchor="start" x="64.48" y="-117" font-family="Arial" font-size="14.00">created_at </text>
|
|
74
|
-
<text text-anchor="start" x="134.53" y="-117" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
|
|
75
|
-
<polygon fill="none" stroke="black" points="57.48,-74 57.48,-104.8 307.25,-104.8 307.25,-74 57.48,-74"/>
|
|
76
|
-
<text text-anchor="start" x="64.48" y="-86.2" font-family="Arial" font-size="14.00">last_active </text>
|
|
77
|
-
<text text-anchor="start" x="134.51" y="-86.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
|
|
78
|
-
<polygon fill="none" stroke="black" points="57.48,-43.2 57.48,-74 307.25,-74 307.25,-43.2 57.48,-43.2"/>
|
|
79
|
-
<text text-anchor="start" x="64.48" y="-55.4" font-family="Arial" font-size="14.00">metadata </text>
|
|
80
|
-
<text text-anchor="start" x="126.74" y="-55.4" font-family="Arial" font-size="14.00" fill="#666666">[jsonb]</text>
|
|
81
|
-
</g>
|
|
82
|
-
<!-- public.nodes->public.robots -->
|
|
83
|
-
<g id="edge2" class="edge">
|
|
84
|
-
<title>public.nodes:robot_id->public.robots:id</title>
|
|
85
|
-
<path fill="none" stroke="black" d="M329.74,-434.47C431.46,-419.61 417.46,-181.8 308.25,-181.8"/>
|
|
86
|
-
<polygon fill="black" stroke="black" points="329.84,-434.47 319.54,-430.69 324.52,-434.84 320.2,-435.15 320.2,-435.15 320.2,-435.15 324.52,-434.84 320.18,-439.66 329.84,-434.47"/>
|
|
87
|
-
<text text-anchor="start" x="326.53" y="-445.2" font-family="Arial" font-size="10.00">FOREIGN KEY (robot_id) REFERENCES robots(id) ON DELETE CASCADE</text>
|
|
88
|
-
</g>
|
|
89
|
-
<!-- public.node_tags -->
|
|
90
|
-
<g id="node2" class="node">
|
|
91
|
-
<title>public.node_tags</title>
|
|
92
|
-
<polygon fill="#efefef" stroke="none" points="51.88,-1012 51.88,-1047.6 312.85,-1047.6 312.85,-1012 51.88,-1012"/>
|
|
93
|
-
<polygon fill="none" stroke="black" points="51.88,-1012 51.88,-1047.6 312.85,-1047.6 312.85,-1012 51.88,-1012"/>
|
|
94
|
-
<text text-anchor="start" x="58.88" y="-1025.4" font-family="Arial Bold" font-size="18.00">public.node_tags</text>
|
|
95
|
-
<text text-anchor="start" x="181.36" y="-1025.4" font-family="Arial" font-size="14.00"> </text>
|
|
96
|
-
<text text-anchor="start" x="212.48" y="-1025.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
|
|
97
|
-
<polygon fill="none" stroke="black" points="51.88,-981.2 51.88,-1012 312.85,-1012 312.85,-981.2 51.88,-981.2"/>
|
|
98
|
-
<text text-anchor="start" x="58.88" y="-993.4" font-family="Arial" font-size="14.00">id </text>
|
|
99
|
-
<text text-anchor="start" x="73.67" y="-993.4" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
|
|
100
|
-
<polygon fill="none" stroke="black" points="51.88,-950.4 51.88,-981.2 312.85,-981.2 312.85,-950.4 51.88,-950.4"/>
|
|
101
|
-
<text text-anchor="start" x="58.88" y="-962.6" font-family="Arial" font-size="14.00">node_id </text>
|
|
102
|
-
<text text-anchor="start" x="112.6" y="-962.6" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
|
|
103
|
-
<polygon fill="none" stroke="black" points="51.88,-919.6 51.88,-950.4 312.85,-950.4 312.85,-919.6 51.88,-919.6"/>
|
|
104
|
-
<text text-anchor="start" x="58.88" y="-931.8" font-family="Arial" font-size="14.00">tag_id </text>
|
|
105
|
-
<text text-anchor="start" x="100.92" y="-931.8" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
|
|
106
|
-
<polygon fill="none" stroke="black" points="51.88,-888.8 51.88,-919.6 312.85,-919.6 312.85,-888.8 51.88,-888.8"/>
|
|
107
|
-
<text text-anchor="start" x="58.88" y="-901" font-family="Arial" font-size="14.00">created_at </text>
|
|
108
|
-
<text text-anchor="start" x="128.93" y="-901" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
|
|
109
|
-
</g>
|
|
110
|
-
<!-- public.node_tags->public.nodes -->
|
|
111
|
-
<g id="edge1" class="edge">
|
|
112
|
-
<title>public.node_tags:node_id->public.nodes:id</title>
|
|
113
|
-
<path fill="none" stroke="black" d="M324.09,-965.07C426.74,-950.21 428.66,-712.4 319.53,-712.4"/>
|
|
114
|
-
<polygon fill="black" stroke="black" points="324.16,-965.07 313.86,-961.29 318.83,-965.45 314.51,-965.75 314.51,-965.75 314.51,-965.75 318.83,-965.45 314.5,-970.27 324.16,-965.07"/>
|
|
115
|
-
<text text-anchor="start" x="320.85" y="-975.8" font-family="Arial" font-size="10.00">FOREIGN KEY (node_id) REFERENCES nodes(id) ON DELETE CASCADE</text>
|
|
116
|
-
</g>
|
|
117
|
-
</g>
|
|
118
|
-
</svg>
|
data/dbdoc/public.robots.svg
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
-
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
|
3
|
-
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
4
|
-
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
|
5
|
-
-->
|
|
6
|
-
<!-- Title: public.robots Pages: 1 -->
|
|
7
|
-
<svg width="679pt" height="818pt"
|
|
8
|
-
viewBox="0.00 0.00 679.17 817.60" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
9
|
-
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 813.6)">
|
|
10
|
-
<title>public.robots</title>
|
|
11
|
-
<polygon fill="white" stroke="none" points="-4,4 -4,-813.6 675.17,-813.6 675.17,4 -4,4"/>
|
|
12
|
-
<!-- public.robots -->
|
|
13
|
-
<g id="node1" class="node">
|
|
14
|
-
<title>public.robots</title>
|
|
15
|
-
<polygon fill="#efefef" stroke="none" points="54.48,-200.2 54.48,-235.8 304.25,-235.8 304.25,-200.2 54.48,-200.2"/>
|
|
16
|
-
<polygon fill="none" stroke="black" points="54.48,-200.2 54.48,-235.8 304.25,-235.8 304.25,-200.2 54.48,-200.2"/>
|
|
17
|
-
<text text-anchor="start" x="69.87" y="-213.6" font-family="Arial Bold" font-size="18.00">public.robots</text>
|
|
18
|
-
<text text-anchor="start" x="164.37" y="-213.6" font-family="Arial" font-size="14.00"> </text>
|
|
19
|
-
<text text-anchor="start" x="195.48" y="-213.6" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
|
|
20
|
-
<polygon fill="none" stroke="black" points="54.48,-169.4 54.48,-200.2 304.25,-200.2 304.25,-169.4 54.48,-169.4"/>
|
|
21
|
-
<text text-anchor="start" x="61.48" y="-181.6" font-family="Arial" font-size="14.00">id </text>
|
|
22
|
-
<text text-anchor="start" x="76.27" y="-181.6" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
|
|
23
|
-
<polygon fill="none" stroke="black" points="54.48,-138.6 54.48,-169.4 304.25,-169.4 304.25,-138.6 54.48,-138.6"/>
|
|
24
|
-
<text text-anchor="start" x="61.48" y="-150.8" font-family="Arial" font-size="14.00">name </text>
|
|
25
|
-
<text text-anchor="start" x="100.39" y="-150.8" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
|
|
26
|
-
<polygon fill="none" stroke="black" points="54.48,-107.8 54.48,-138.6 304.25,-138.6 304.25,-107.8 54.48,-107.8"/>
|
|
27
|
-
<text text-anchor="start" x="61.48" y="-120" font-family="Arial" font-size="14.00">created_at </text>
|
|
28
|
-
<text text-anchor="start" x="131.53" y="-120" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
|
|
29
|
-
<polygon fill="none" stroke="black" points="54.48,-77 54.48,-107.8 304.25,-107.8 304.25,-77 54.48,-77"/>
|
|
30
|
-
<text text-anchor="start" x="61.48" y="-89.2" font-family="Arial" font-size="14.00">last_active </text>
|
|
31
|
-
<text text-anchor="start" x="131.51" y="-89.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
|
|
32
|
-
<polygon fill="none" stroke="black" points="54.48,-46.2 54.48,-77 304.25,-77 304.25,-46.2 54.48,-46.2"/>
|
|
33
|
-
<text text-anchor="start" x="61.48" y="-58.4" font-family="Arial" font-size="14.00">metadata </text>
|
|
34
|
-
<text text-anchor="start" x="123.74" y="-58.4" font-family="Arial" font-size="14.00" fill="#666666">[jsonb]</text>
|
|
35
|
-
<polygon fill="none" stroke="black" stroke-width="3" points="52.98,-44.7 52.98,-237.3 305.75,-237.3 305.75,-44.7 52.98,-44.7"/>
|
|
36
|
-
</g>
|
|
37
|
-
<!-- public.nodes -->
|
|
38
|
-
<g id="node2" class="node">
|
|
39
|
-
<title>public.nodes</title>
|
|
40
|
-
<polygon fill="#efefef" stroke="none" points="43.2,-730.8 43.2,-766.4 315.53,-766.4 315.53,-730.8 43.2,-730.8"/>
|
|
41
|
-
<polygon fill="none" stroke="black" points="43.2,-730.8 43.2,-766.4 315.53,-766.4 315.53,-730.8 43.2,-730.8"/>
|
|
42
|
-
<text text-anchor="start" x="71.38" y="-744.2" font-family="Arial Bold" font-size="18.00">public.nodes</text>
|
|
43
|
-
<text text-anchor="start" x="162.86" y="-744.2" font-family="Arial" font-size="14.00"> </text>
|
|
44
|
-
<text text-anchor="start" x="193.98" y="-744.2" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
|
|
45
|
-
<polygon fill="none" stroke="black" points="43.2,-700 43.2,-730.8 315.53,-730.8 315.53,-700 43.2,-700"/>
|
|
46
|
-
<text text-anchor="start" x="50.2" y="-712.2" font-family="Arial" font-size="14.00">id </text>
|
|
47
|
-
<text text-anchor="start" x="64.99" y="-712.2" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
|
|
48
|
-
<polygon fill="none" stroke="black" points="43.2,-669.2 43.2,-700 315.53,-700 315.53,-669.2 43.2,-669.2"/>
|
|
49
|
-
<text text-anchor="start" x="50.2" y="-681.4" font-family="Arial" font-size="14.00">content </text>
|
|
50
|
-
<text text-anchor="start" x="100.01" y="-681.4" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
|
|
51
|
-
<polygon fill="none" stroke="black" points="43.2,-638.4 43.2,-669.2 315.53,-669.2 315.53,-638.4 43.2,-638.4"/>
|
|
52
|
-
<text text-anchor="start" x="50.2" y="-650.6" font-family="Arial" font-size="14.00">source </text>
|
|
53
|
-
<text text-anchor="start" x="96.11" y="-650.6" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
|
|
54
|
-
<polygon fill="none" stroke="black" points="43.2,-607.6 43.2,-638.4 315.53,-638.4 315.53,-607.6 43.2,-607.6"/>
|
|
55
|
-
<text text-anchor="start" x="50.2" y="-619.8" font-family="Arial" font-size="14.00">access_count </text>
|
|
56
|
-
<text text-anchor="start" x="139.7" y="-619.8" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
|
|
57
|
-
<polygon fill="none" stroke="black" points="43.2,-576.8 43.2,-607.6 315.53,-607.6 315.53,-576.8 43.2,-576.8"/>
|
|
58
|
-
<text text-anchor="start" x="50.2" y="-589" font-family="Arial" font-size="14.00">created_at </text>
|
|
59
|
-
<text text-anchor="start" x="120.25" y="-589" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
|
|
60
|
-
<polygon fill="none" stroke="black" points="43.2,-546 43.2,-576.8 315.53,-576.8 315.53,-546 43.2,-546"/>
|
|
61
|
-
<text text-anchor="start" x="50.2" y="-558.2" font-family="Arial" font-size="14.00">updated_at </text>
|
|
62
|
-
<text text-anchor="start" x="124.16" y="-558.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
|
|
63
|
-
<polygon fill="none" stroke="black" points="43.2,-515.2 43.2,-546 315.53,-546 315.53,-515.2 43.2,-515.2"/>
|
|
64
|
-
<text text-anchor="start" x="50.2" y="-527.4" font-family="Arial" font-size="14.00">last_accessed </text>
|
|
65
|
-
<text text-anchor="start" x="142.81" y="-527.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
|
|
66
|
-
<polygon fill="none" stroke="black" points="43.2,-484.4 43.2,-515.2 315.53,-515.2 315.53,-484.4 43.2,-484.4"/>
|
|
67
|
-
<text text-anchor="start" x="50.2" y="-496.6" font-family="Arial" font-size="14.00">token_count </text>
|
|
68
|
-
<text text-anchor="start" x="130.37" y="-496.6" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
|
|
69
|
-
<polygon fill="none" stroke="black" points="43.2,-453.6 43.2,-484.4 315.53,-484.4 315.53,-453.6 43.2,-453.6"/>
|
|
70
|
-
<text text-anchor="start" x="50.2" y="-465.8" font-family="Arial" font-size="14.00">in_working_memory </text>
|
|
71
|
-
<text text-anchor="start" x="179.36" y="-465.8" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
|
|
72
|
-
<polygon fill="none" stroke="black" points="43.2,-422.8 43.2,-453.6 315.53,-453.6 315.53,-422.8 43.2,-422.8"/>
|
|
73
|
-
<text text-anchor="start" x="50.2" y="-435" font-family="Arial" font-size="14.00">robot_id </text>
|
|
74
|
-
<text text-anchor="start" x="104.68" y="-435" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
|
|
75
|
-
<polygon fill="none" stroke="black" points="43.2,-392 43.2,-422.8 315.53,-422.8 315.53,-392 43.2,-392"/>
|
|
76
|
-
<text text-anchor="start" x="50.2" y="-404.2" font-family="Arial" font-size="14.00">embedding </text>
|
|
77
|
-
<text text-anchor="start" x="123.37" y="-404.2" font-family="Arial" font-size="14.00" fill="#666666">[vector(2000)]</text>
|
|
78
|
-
<polygon fill="none" stroke="black" points="43.2,-361.2 43.2,-392 315.53,-392 315.53,-361.2 43.2,-361.2"/>
|
|
79
|
-
<text text-anchor="start" x="50.2" y="-373.4" font-family="Arial" font-size="14.00">embedding_dimension </text>
|
|
80
|
-
<text text-anchor="start" x="194.96" y="-373.4" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
|
|
81
|
-
</g>
|
|
82
|
-
<!-- public.nodes->public.robots -->
|
|
83
|
-
<g id="edge1" class="edge">
|
|
84
|
-
<title>public.nodes:robot_id->public.robots:id</title>
|
|
85
|
-
<path fill="none" stroke="black" d="M326.31,-435.35C371.31,-407.51 358.09,-184.8 305.25,-184.8"/>
|
|
86
|
-
<polygon fill="black" stroke="black" points="326.45,-435.31 315.59,-433.79 321.33,-436.8 317.17,-438.01 317.17,-438.01 317.17,-438.01 321.33,-436.8 318.11,-442.43 326.45,-435.31"/>
|
|
87
|
-
<text text-anchor="start" x="323.53" y="-448.2" font-family="Arial" font-size="10.00">FOREIGN KEY (robot_id) REFERENCES robots(id) ON DELETE CASCADE</text>
|
|
88
|
-
</g>
|
|
89
|
-
</g>
|
|
90
|
-
</svg>
|
data/dbdoc/schema.svg
DELETED
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
-
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
|
3
|
-
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
4
|
-
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
|
5
|
-
-->
|
|
6
|
-
<!-- Title: htm_development Pages: 1 -->
|
|
7
|
-
<svg width="1099pt" height="1093pt"
|
|
8
|
-
viewBox="0.00 0.00 1099.20 1092.80" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
9
|
-
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 1088.8)">
|
|
10
|
-
<title>htm_development</title>
|
|
11
|
-
<polygon fill="white" stroke="none" points="-4,4 -4,-1088.8 1095.2,-1088.8 1095.2,4 -4,4"/>
|
|
12
|
-
<!-- public.node_tags -->
|
|
13
|
-
<g id="node1" class="node">
|
|
14
|
-
<title>public.node_tags</title>
|
|
15
|
-
<polygon fill="#efefef" stroke="none" points="354.55,-1006 354.55,-1041.6 615.51,-1041.6 615.51,-1006 354.55,-1006"/>
|
|
16
|
-
<polygon fill="none" stroke="black" points="354.55,-1006 354.55,-1041.6 615.51,-1041.6 615.51,-1006 354.55,-1006"/>
|
|
17
|
-
<text text-anchor="start" x="361.55" y="-1019.4" font-family="Arial Bold" font-size="18.00">public.node_tags</text>
|
|
18
|
-
<text text-anchor="start" x="484.02" y="-1019.4" font-family="Arial" font-size="14.00"> </text>
|
|
19
|
-
<text text-anchor="start" x="515.14" y="-1019.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
|
|
20
|
-
<polygon fill="none" stroke="black" points="354.55,-975.2 354.55,-1006 615.51,-1006 615.51,-975.2 354.55,-975.2"/>
|
|
21
|
-
<text text-anchor="start" x="361.55" y="-987.4" font-family="Arial" font-size="14.00">id </text>
|
|
22
|
-
<text text-anchor="start" x="376.33" y="-987.4" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
|
|
23
|
-
<polygon fill="none" stroke="black" points="354.55,-944.4 354.55,-975.2 615.51,-975.2 615.51,-944.4 354.55,-944.4"/>
|
|
24
|
-
<text text-anchor="start" x="361.55" y="-956.6" font-family="Arial" font-size="14.00">node_id </text>
|
|
25
|
-
<text text-anchor="start" x="415.26" y="-956.6" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
|
|
26
|
-
<polygon fill="none" stroke="black" points="354.55,-913.6 354.55,-944.4 615.51,-944.4 615.51,-913.6 354.55,-913.6"/>
|
|
27
|
-
<text text-anchor="start" x="361.55" y="-925.8" font-family="Arial" font-size="14.00">tag_id </text>
|
|
28
|
-
<text text-anchor="start" x="403.58" y="-925.8" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
|
|
29
|
-
<polygon fill="none" stroke="black" points="354.55,-882.8 354.55,-913.6 615.51,-913.6 615.51,-882.8 354.55,-882.8"/>
|
|
30
|
-
<text text-anchor="start" x="361.55" y="-895" font-family="Arial" font-size="14.00">created_at </text>
|
|
31
|
-
<text text-anchor="start" x="431.59" y="-895" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
|
|
32
|
-
</g>
|
|
33
|
-
<!-- public.nodes -->
|
|
34
|
-
<g id="node4" class="node">
|
|
35
|
-
<title>public.nodes</title>
|
|
36
|
-
<polygon fill="#efefef" stroke="none" points="166.86,-724.8 166.86,-760.4 439.19,-760.4 439.19,-724.8 166.86,-724.8"/>
|
|
37
|
-
<polygon fill="none" stroke="black" points="166.86,-724.8 166.86,-760.4 439.19,-760.4 439.19,-724.8 166.86,-724.8"/>
|
|
38
|
-
<text text-anchor="start" x="195.04" y="-738.2" font-family="Arial Bold" font-size="18.00">public.nodes</text>
|
|
39
|
-
<text text-anchor="start" x="286.53" y="-738.2" font-family="Arial" font-size="14.00"> </text>
|
|
40
|
-
<text text-anchor="start" x="317.64" y="-738.2" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
|
|
41
|
-
<polygon fill="none" stroke="black" points="166.86,-694 166.86,-724.8 439.19,-724.8 439.19,-694 166.86,-694"/>
|
|
42
|
-
<text text-anchor="start" x="173.86" y="-706.2" font-family="Arial" font-size="14.00">id </text>
|
|
43
|
-
<text text-anchor="start" x="188.65" y="-706.2" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
|
|
44
|
-
<polygon fill="none" stroke="black" points="166.86,-663.2 166.86,-694 439.19,-694 439.19,-663.2 166.86,-663.2"/>
|
|
45
|
-
<text text-anchor="start" x="173.86" y="-675.4" font-family="Arial" font-size="14.00">content </text>
|
|
46
|
-
<text text-anchor="start" x="223.68" y="-675.4" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
|
|
47
|
-
<polygon fill="none" stroke="black" points="166.86,-632.4 166.86,-663.2 439.19,-663.2 439.19,-632.4 166.86,-632.4"/>
|
|
48
|
-
<text text-anchor="start" x="173.86" y="-644.6" font-family="Arial" font-size="14.00">source </text>
|
|
49
|
-
<text text-anchor="start" x="219.77" y="-644.6" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
|
|
50
|
-
<polygon fill="none" stroke="black" points="166.86,-601.6 166.86,-632.4 439.19,-632.4 439.19,-601.6 166.86,-601.6"/>
|
|
51
|
-
<text text-anchor="start" x="173.86" y="-613.8" font-family="Arial" font-size="14.00">access_count </text>
|
|
52
|
-
<text text-anchor="start" x="263.36" y="-613.8" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
|
|
53
|
-
<polygon fill="none" stroke="black" points="166.86,-570.8 166.86,-601.6 439.19,-601.6 439.19,-570.8 166.86,-570.8"/>
|
|
54
|
-
<text text-anchor="start" x="173.86" y="-583" font-family="Arial" font-size="14.00">created_at </text>
|
|
55
|
-
<text text-anchor="start" x="243.91" y="-583" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
|
|
56
|
-
<polygon fill="none" stroke="black" points="166.86,-540 166.86,-570.8 439.19,-570.8 439.19,-540 166.86,-540"/>
|
|
57
|
-
<text text-anchor="start" x="173.86" y="-552.2" font-family="Arial" font-size="14.00">updated_at </text>
|
|
58
|
-
<text text-anchor="start" x="247.82" y="-552.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
|
|
59
|
-
<polygon fill="none" stroke="black" points="166.86,-509.2 166.86,-540 439.19,-540 439.19,-509.2 166.86,-509.2"/>
|
|
60
|
-
<text text-anchor="start" x="173.86" y="-521.4" font-family="Arial" font-size="14.00">last_accessed </text>
|
|
61
|
-
<text text-anchor="start" x="266.47" y="-521.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
|
|
62
|
-
<polygon fill="none" stroke="black" points="166.86,-478.4 166.86,-509.2 439.19,-509.2 439.19,-478.4 166.86,-478.4"/>
|
|
63
|
-
<text text-anchor="start" x="173.86" y="-490.6" font-family="Arial" font-size="14.00">token_count </text>
|
|
64
|
-
<text text-anchor="start" x="254.04" y="-490.6" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
|
|
65
|
-
<polygon fill="none" stroke="black" points="166.86,-447.6 166.86,-478.4 439.19,-478.4 439.19,-447.6 166.86,-447.6"/>
|
|
66
|
-
<text text-anchor="start" x="173.86" y="-459.8" font-family="Arial" font-size="14.00">in_working_memory </text>
|
|
67
|
-
<text text-anchor="start" x="303.02" y="-459.8" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
|
|
68
|
-
<polygon fill="none" stroke="black" points="166.86,-416.8 166.86,-447.6 439.19,-447.6 439.19,-416.8 166.86,-416.8"/>
|
|
69
|
-
<text text-anchor="start" x="173.86" y="-429" font-family="Arial" font-size="14.00">robot_id </text>
|
|
70
|
-
<text text-anchor="start" x="228.35" y="-429" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
|
|
71
|
-
<polygon fill="none" stroke="black" points="166.86,-386 166.86,-416.8 439.19,-416.8 439.19,-386 166.86,-386"/>
|
|
72
|
-
<text text-anchor="start" x="173.86" y="-398.2" font-family="Arial" font-size="14.00">embedding </text>
|
|
73
|
-
<text text-anchor="start" x="247.03" y="-398.2" font-family="Arial" font-size="14.00" fill="#666666">[vector(2000)]</text>
|
|
74
|
-
<polygon fill="none" stroke="black" points="166.86,-355.2 166.86,-386 439.19,-386 439.19,-355.2 166.86,-355.2"/>
|
|
75
|
-
<text text-anchor="start" x="173.86" y="-367.4" font-family="Arial" font-size="14.00">embedding_dimension </text>
|
|
76
|
-
<text text-anchor="start" x="318.63" y="-367.4" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
|
|
77
|
-
</g>
|
|
78
|
-
<!-- public.node_tags->public.nodes -->
|
|
79
|
-
<g id="edge1" class="edge">
|
|
80
|
-
<title>public.node_tags:node_id->public.nodes:id</title>
|
|
81
|
-
<path fill="none" stroke="black" d="M343.41,-958.71C303.63,-949.3 326.97,-880.91 354.55,-839.6 377.24,-805.6 416.46,-837.58 439.19,-803.6 462.48,-768.8 482.06,-709.4 440.19,-709.4"/>
|
|
82
|
-
<polygon fill="black" stroke="black" points="343.27,-958.7 352.73,-964.24 348.57,-959.27 352.88,-959.73 352.88,-959.73 352.88,-959.73 348.57,-959.27 353.69,-955.29 343.27,-958.7"/>
|
|
83
|
-
<text text-anchor="start" x="7" y="-969.8" font-family="Arial" font-size="10.00">FOREIGN KEY (node_id) REFERENCES nodes(id) ON DELETE CASCADE</text>
|
|
84
|
-
</g>
|
|
85
|
-
<!-- public.tags -->
|
|
86
|
-
<g id="node5" class="node">
|
|
87
|
-
<title>public.tags</title>
|
|
88
|
-
<polygon fill="#efefef" stroke="none" points="543.14,-586.2 543.14,-621.8 792.91,-621.8 792.91,-586.2 543.14,-586.2"/>
|
|
89
|
-
<polygon fill="none" stroke="black" points="543.14,-586.2 543.14,-621.8 792.91,-621.8 792.91,-586.2 543.14,-586.2"/>
|
|
90
|
-
<text text-anchor="start" x="566.54" y="-599.6" font-family="Arial Bold" font-size="18.00">public.tags</text>
|
|
91
|
-
<text text-anchor="start" x="645.03" y="-599.6" font-family="Arial" font-size="14.00"> </text>
|
|
92
|
-
<text text-anchor="start" x="676.14" y="-599.6" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
|
|
93
|
-
<polygon fill="none" stroke="black" points="543.14,-555.4 543.14,-586.2 792.91,-586.2 792.91,-555.4 543.14,-555.4"/>
|
|
94
|
-
<text text-anchor="start" x="550.14" y="-567.6" font-family="Arial" font-size="14.00">id </text>
|
|
95
|
-
<text text-anchor="start" x="564.93" y="-567.6" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
|
|
96
|
-
<polygon fill="none" stroke="black" points="543.14,-524.6 543.14,-555.4 792.91,-555.4 792.91,-524.6 543.14,-524.6"/>
|
|
97
|
-
<text text-anchor="start" x="550.14" y="-536.8" font-family="Arial" font-size="14.00">name </text>
|
|
98
|
-
<text text-anchor="start" x="589.05" y="-536.8" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
|
|
99
|
-
<polygon fill="none" stroke="black" points="543.14,-493.8 543.14,-524.6 792.91,-524.6 792.91,-493.8 543.14,-493.8"/>
|
|
100
|
-
<text text-anchor="start" x="550.14" y="-506" font-family="Arial" font-size="14.00">created_at </text>
|
|
101
|
-
<text text-anchor="start" x="620.19" y="-506" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
|
|
102
|
-
</g>
|
|
103
|
-
<!-- public.node_tags->public.tags -->
|
|
104
|
-
<g id="edge2" class="edge">
|
|
105
|
-
<title>public.node_tags:tag_id->public.tags:id</title>
|
|
106
|
-
<path fill="none" stroke="black" d="M626.63,-928.47C761.44,-913.09 383.2,-570.8 542.14,-570.8"/>
|
|
107
|
-
<polygon fill="black" stroke="black" points="626.83,-928.46 616.61,-924.49 621.5,-928.74 617.18,-928.96 617.18,-928.96 617.18,-928.96 621.5,-928.74 617.08,-933.48 626.83,-928.46"/>
|
|
108
|
-
<text text-anchor="start" x="286.65" y="-939" font-family="Arial" font-size="10.00">FOREIGN KEY (tag_id) REFERENCES tags(id) ON DELETE CASCADE</text>
|
|
109
|
-
</g>
|
|
110
|
-
<!-- public.schema_migrations -->
|
|
111
|
-
<g id="node2" class="node">
|
|
112
|
-
<title>public.schema_migrations</title>
|
|
113
|
-
<polygon fill="#efefef" stroke="none" points="720.06,-959.8 720.06,-995.4 1048,-995.4 1048,-959.8 720.06,-959.8"/>
|
|
114
|
-
<polygon fill="none" stroke="black" points="720.06,-959.8 720.06,-995.4 1048,-995.4 1048,-959.8 720.06,-959.8"/>
|
|
115
|
-
<text text-anchor="start" x="727.06" y="-973.2" font-family="Arial Bold" font-size="18.00">public.schema_migrations</text>
|
|
116
|
-
<text text-anchor="start" x="916.51" y="-973.2" font-family="Arial" font-size="14.00"> </text>
|
|
117
|
-
<text text-anchor="start" x="947.63" y="-973.2" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
|
|
118
|
-
<polygon fill="none" stroke="black" points="720.06,-929 720.06,-959.8 1048,-959.8 1048,-929 720.06,-929"/>
|
|
119
|
-
<text text-anchor="start" x="727.06" y="-941.2" font-family="Arial" font-size="14.00">version </text>
|
|
120
|
-
<text text-anchor="start" x="776.08" y="-941.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar]</text>
|
|
121
|
-
</g>
|
|
122
|
-
<!-- public.robots -->
|
|
123
|
-
<g id="node3" class="node">
|
|
124
|
-
<title>public.robots</title>
|
|
125
|
-
<polygon fill="#efefef" stroke="none" points="178.14,-197.2 178.14,-232.8 427.91,-232.8 427.91,-197.2 178.14,-197.2"/>
|
|
126
|
-
<polygon fill="none" stroke="black" points="178.14,-197.2 178.14,-232.8 427.91,-232.8 427.91,-197.2 178.14,-197.2"/>
|
|
127
|
-
<text text-anchor="start" x="193.54" y="-210.6" font-family="Arial Bold" font-size="18.00">public.robots</text>
|
|
128
|
-
<text text-anchor="start" x="288.03" y="-210.6" font-family="Arial" font-size="14.00"> </text>
|
|
129
|
-
<text text-anchor="start" x="319.15" y="-210.6" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
|
|
130
|
-
<polygon fill="none" stroke="black" points="178.14,-166.4 178.14,-197.2 427.91,-197.2 427.91,-166.4 178.14,-166.4"/>
|
|
131
|
-
<text text-anchor="start" x="185.14" y="-178.6" font-family="Arial" font-size="14.00">id </text>
|
|
132
|
-
<text text-anchor="start" x="199.93" y="-178.6" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
|
|
133
|
-
<polygon fill="none" stroke="black" points="178.14,-135.6 178.14,-166.4 427.91,-166.4 427.91,-135.6 178.14,-135.6"/>
|
|
134
|
-
<text text-anchor="start" x="185.14" y="-147.8" font-family="Arial" font-size="14.00">name </text>
|
|
135
|
-
<text text-anchor="start" x="224.05" y="-147.8" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
|
|
136
|
-
<polygon fill="none" stroke="black" points="178.14,-104.8 178.14,-135.6 427.91,-135.6 427.91,-104.8 178.14,-104.8"/>
|
|
137
|
-
<text text-anchor="start" x="185.14" y="-117" font-family="Arial" font-size="14.00">created_at </text>
|
|
138
|
-
<text text-anchor="start" x="255.19" y="-117" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
|
|
139
|
-
<polygon fill="none" stroke="black" points="178.14,-74 178.14,-104.8 427.91,-104.8 427.91,-74 178.14,-74"/>
|
|
140
|
-
<text text-anchor="start" x="185.14" y="-86.2" font-family="Arial" font-size="14.00">last_active </text>
|
|
141
|
-
<text text-anchor="start" x="255.18" y="-86.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
|
|
142
|
-
<polygon fill="none" stroke="black" points="178.14,-43.2 178.14,-74 427.91,-74 427.91,-43.2 178.14,-43.2"/>
|
|
143
|
-
<text text-anchor="start" x="185.14" y="-55.4" font-family="Arial" font-size="14.00">metadata </text>
|
|
144
|
-
<text text-anchor="start" x="247.4" y="-55.4" font-family="Arial" font-size="14.00" fill="#666666">[jsonb]</text>
|
|
145
|
-
</g>
|
|
146
|
-
<!-- public.nodes->public.robots -->
|
|
147
|
-
<g id="edge3" class="edge">
|
|
148
|
-
<title>public.nodes:robot_id->public.robots:id</title>
|
|
149
|
-
<path fill="none" stroke="black" d="M450.13,-429.21C494.26,-400.96 481.02,-181.8 428.91,-181.8"/>
|
|
150
|
-
<polygon fill="black" stroke="black" points="450.09,-429.23 439.22,-427.79 444.98,-430.76 440.83,-432.01 440.83,-432.01 440.83,-432.01 444.98,-430.76 441.81,-436.41 450.09,-429.23"/>
|
|
151
|
-
<text text-anchor="start" x="447.19" y="-416.2" font-family="Arial" font-size="10.00">FOREIGN KEY (robot_id) REFERENCES robots(id) ON DELETE CASCADE</text>
|
|
152
|
-
</g>
|
|
153
|
-
</g>
|
|
154
|
-
</svg>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|