htm 0.0.1 → 0.0.10
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/.aigcm_msg +1 -0
- data/.architecture/reviews/comprehensive-codebase-review.md +577 -0
- data/.claude/settings.local.json +92 -0
- data/.envrc +1 -0
- data/.irbrc +283 -80
- data/.tbls.yml +31 -0
- data/CHANGELOG.md +314 -16
- data/CLAUDE.md +603 -0
- data/README.md +76 -5
- data/Rakefile +5 -0
- data/SETUP.md +132 -101
- data/db/migrate/{20250101000001_enable_extensions.rb → 00001_enable_extensions.rb} +0 -1
- data/db/migrate/00002_create_robots.rb +11 -0
- data/db/migrate/00003_create_file_sources.rb +20 -0
- data/db/migrate/00004_create_nodes.rb +65 -0
- data/db/migrate/00005_create_tags.rb +13 -0
- data/db/migrate/00006_create_node_tags.rb +18 -0
- data/db/migrate/00007_create_robot_nodes.rb +26 -0
- data/db/migrate/00009_add_working_memory_to_robot_nodes.rb +12 -0
- data/db/schema.sql +390 -36
- data/docs/api/database.md +19 -232
- data/docs/api/embedding-service.md +1 -7
- data/docs/api/htm.md +305 -364
- data/docs/api/index.md +1 -7
- data/docs/api/long-term-memory.md +342 -590
- data/docs/api/yard/HTM/ActiveRecordConfig.md +23 -0
- data/docs/api/yard/HTM/AuthorizationError.md +11 -0
- data/docs/api/yard/HTM/CircuitBreaker.md +92 -0
- data/docs/api/yard/HTM/CircuitBreakerOpenError.md +34 -0
- data/docs/api/yard/HTM/Configuration.md +175 -0
- data/docs/api/yard/HTM/Database.md +99 -0
- data/docs/api/yard/HTM/DatabaseError.md +14 -0
- data/docs/api/yard/HTM/EmbeddingError.md +18 -0
- data/docs/api/yard/HTM/EmbeddingService.md +58 -0
- data/docs/api/yard/HTM/Error.md +11 -0
- data/docs/api/yard/HTM/JobAdapter.md +39 -0
- data/docs/api/yard/HTM/LongTermMemory.md +342 -0
- data/docs/api/yard/HTM/NotFoundError.md +17 -0
- data/docs/api/yard/HTM/Observability.md +107 -0
- data/docs/api/yard/HTM/QueryTimeoutError.md +19 -0
- data/docs/api/yard/HTM/Railtie.md +27 -0
- data/docs/api/yard/HTM/ResourceExhaustedError.md +13 -0
- data/docs/api/yard/HTM/TagError.md +18 -0
- data/docs/api/yard/HTM/TagService.md +67 -0
- data/docs/api/yard/HTM/Timeframe/Result.md +24 -0
- data/docs/api/yard/HTM/Timeframe.md +40 -0
- data/docs/api/yard/HTM/TimeframeExtractor/Result.md +24 -0
- data/docs/api/yard/HTM/TimeframeExtractor.md +45 -0
- data/docs/api/yard/HTM/ValidationError.md +20 -0
- data/docs/api/yard/HTM/WorkingMemory.md +131 -0
- data/docs/api/yard/HTM.md +80 -0
- data/docs/api/yard/index.csv +179 -0
- data/docs/api/yard-reference.md +51 -0
- 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 +127 -125
- data/docs/database/public.file_sources.md +42 -0
- data/docs/database/public.file_sources.svg +211 -0
- data/{dbdoc → docs/database}/public.node_tags.md +7 -8
- data/docs/database/public.node_tags.svg +239 -0
- data/{dbdoc → docs/database}/public.nodes.md +22 -17
- data/docs/database/public.nodes.svg +271 -0
- data/docs/database/public.robot_nodes.md +46 -0
- data/docs/database/public.robot_nodes.svg +243 -0
- data/{dbdoc → docs/database}/public.robots.md +2 -3
- data/docs/database/public.robots.svg +161 -0
- data/docs/database/public.tags.svg +139 -0
- data/{dbdoc → docs/database}/schema.json +941 -630
- data/docs/database/schema.svg +282 -0
- data/docs/development/index.md +1 -29
- data/docs/development/schema.md +134 -309
- 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 +295 -643
- data/docs/guides/recalling-memories.md +36 -1
- 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/README.md +280 -0
- data/examples/basic_usage.rb +18 -16
- data/examples/cli_app/htm_cli.rb +146 -8
- data/examples/cli_app/temp.log +93 -0
- data/examples/custom_llm_configuration.rb +1 -2
- data/examples/example_app/app.rb +11 -14
- data/examples/file_loader_usage.rb +177 -0
- data/examples/robot_groups/lib/robot_group.rb +419 -0
- data/examples/robot_groups/lib/working_memory_channel.rb +140 -0
- data/examples/robot_groups/multi_process.rb +286 -0
- data/examples/robot_groups/robot_worker.rb +136 -0
- data/examples/robot_groups/same_process.rb +229 -0
- data/examples/sinatra_app/Gemfile +1 -0
- data/examples/sinatra_app/Gemfile.lock +166 -0
- data/examples/sinatra_app/app.rb +219 -24
- data/examples/timeframe_demo.rb +276 -0
- data/lib/htm/active_record_config.rb +10 -3
- data/lib/htm/circuit_breaker.rb +202 -0
- data/lib/htm/configuration.rb +313 -80
- data/lib/htm/database.rb +67 -36
- data/lib/htm/embedding_service.rb +39 -2
- data/lib/htm/errors.rb +131 -11
- data/lib/htm/{sinatra.rb → integrations/sinatra.rb} +87 -12
- data/lib/htm/job_adapter.rb +10 -3
- data/lib/htm/jobs/generate_embedding_job.rb +5 -4
- data/lib/htm/jobs/generate_tags_job.rb +4 -0
- data/lib/htm/loaders/markdown_loader.rb +263 -0
- data/lib/htm/loaders/paragraph_chunker.rb +112 -0
- data/lib/htm/long_term_memory.rb +601 -321
- data/lib/htm/models/file_source.rb +99 -0
- data/lib/htm/models/node.rb +116 -12
- data/lib/htm/models/robot.rb +53 -4
- data/lib/htm/models/robot_node.rb +51 -0
- data/lib/htm/models/tag.rb +302 -0
- data/lib/htm/observability.rb +395 -0
- data/lib/htm/tag_service.rb +60 -3
- data/lib/htm/tasks.rb +29 -0
- data/lib/htm/timeframe.rb +194 -0
- data/lib/htm/timeframe_extractor.rb +307 -0
- data/lib/htm/version.rb +1 -1
- data/lib/htm/working_memory.rb +165 -70
- data/lib/htm.rb +352 -133
- data/lib/tasks/doc.rake +300 -0
- data/lib/tasks/files.rake +299 -0
- data/lib/tasks/htm.rake +188 -2
- data/lib/tasks/jobs.rake +10 -12
- data/lib/tasks/tags.rake +194 -0
- data/mkdocs.yml +91 -9
- data/notes/ARCHITECTURE_REVIEW.md +1167 -0
- data/notes/IMPLEMENTATION_SUMMARY.md +606 -0
- data/notes/MULTI_FRAMEWORK_IMPLEMENTATION.md +451 -0
- data/notes/next_steps.md +100 -0
- data/notes/plan.md +627 -0
- data/notes/tag_ontology_enhancement_ideas.md +222 -0
- data/notes/timescaledb_removal_summary.md +200 -0
- metadata +177 -37
- data/db/migrate/20250101000002_create_robots.rb +0 -14
- data/db/migrate/20250101000003_create_nodes.rb +0 -42
- data/db/migrate/20250101000005_create_tags.rb +0 -38
- data/db/migrate/20250101000007_add_node_vector_indexes.rb +0 -30
- data/dbdoc/public.node_tags.svg +0 -112
- data/dbdoc/public.nodes.svg +0 -118
- data/dbdoc/public.robots.svg +0 -90
- data/dbdoc/public.tags.svg +0 -60
- 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 +3 -3
- /data/{dbdoc → docs/database}/public.topic_relationships.md +0 -0
- /data/{dbdoc → docs/database}/public.topic_relationships.svg +0 -0
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/public.tags.svg
DELETED
|
@@ -1,60 +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.tags Pages: 1 -->
|
|
7
|
-
<svg width="650pt" height="510pt"
|
|
8
|
-
viewBox="0.00 0.00 650.02 509.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 505.6)">
|
|
10
|
-
<title>public.tags</title>
|
|
11
|
-
<polygon fill="white" stroke="none" points="-4,4 -4,-505.6 646.02,-505.6 646.02,4 -4,4"/>
|
|
12
|
-
<!-- public.tags -->
|
|
13
|
-
<g id="node1" class="node">
|
|
14
|
-
<title>public.tags</title>
|
|
15
|
-
<polygon fill="#efefef" stroke="none" points="48.8,-138.6 48.8,-174.2 298.57,-174.2 298.57,-138.6 48.8,-138.6"/>
|
|
16
|
-
<polygon fill="none" stroke="black" points="48.8,-138.6 48.8,-174.2 298.57,-174.2 298.57,-138.6 48.8,-138.6"/>
|
|
17
|
-
<text text-anchor="start" x="72.19" y="-152" font-family="Arial Bold" font-size="18.00">public.tags</text>
|
|
18
|
-
<text text-anchor="start" x="150.68" y="-152" font-family="Arial" font-size="14.00"> </text>
|
|
19
|
-
<text text-anchor="start" x="181.8" y="-152" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
|
|
20
|
-
<polygon fill="none" stroke="black" points="48.8,-107.8 48.8,-138.6 298.57,-138.6 298.57,-107.8 48.8,-107.8"/>
|
|
21
|
-
<text text-anchor="start" x="55.8" y="-120" font-family="Arial" font-size="14.00">id </text>
|
|
22
|
-
<text text-anchor="start" x="70.58" y="-120" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
|
|
23
|
-
<polygon fill="none" stroke="black" points="48.8,-77 48.8,-107.8 298.57,-107.8 298.57,-77 48.8,-77"/>
|
|
24
|
-
<text text-anchor="start" x="55.8" y="-89.2" font-family="Arial" font-size="14.00">name </text>
|
|
25
|
-
<text text-anchor="start" x="94.71" y="-89.2" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
|
|
26
|
-
<polygon fill="none" stroke="black" points="48.8,-46.2 48.8,-77 298.57,-77 298.57,-46.2 48.8,-46.2"/>
|
|
27
|
-
<text text-anchor="start" x="55.8" y="-58.4" font-family="Arial" font-size="14.00">created_at </text>
|
|
28
|
-
<text text-anchor="start" x="125.84" y="-58.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
|
|
29
|
-
<polygon fill="none" stroke="black" stroke-width="3" points="47.3,-44.7 47.3,-175.7 300.07,-175.7 300.07,-44.7 47.3,-44.7"/>
|
|
30
|
-
</g>
|
|
31
|
-
<!-- public.node_tags -->
|
|
32
|
-
<g id="node2" class="node">
|
|
33
|
-
<title>public.node_tags</title>
|
|
34
|
-
<polygon fill="#efefef" stroke="none" points="43.2,-422.8 43.2,-458.4 304.16,-458.4 304.16,-422.8 43.2,-422.8"/>
|
|
35
|
-
<polygon fill="none" stroke="black" points="43.2,-422.8 43.2,-458.4 304.16,-458.4 304.16,-422.8 43.2,-422.8"/>
|
|
36
|
-
<text text-anchor="start" x="50.2" y="-436.2" font-family="Arial Bold" font-size="18.00">public.node_tags</text>
|
|
37
|
-
<text text-anchor="start" x="172.68" y="-436.2" font-family="Arial" font-size="14.00"> </text>
|
|
38
|
-
<text text-anchor="start" x="203.79" y="-436.2" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
|
|
39
|
-
<polygon fill="none" stroke="black" points="43.2,-392 43.2,-422.8 304.16,-422.8 304.16,-392 43.2,-392"/>
|
|
40
|
-
<text text-anchor="start" x="50.2" y="-404.2" font-family="Arial" font-size="14.00">id </text>
|
|
41
|
-
<text text-anchor="start" x="64.99" y="-404.2" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
|
|
42
|
-
<polygon fill="none" stroke="black" points="43.2,-361.2 43.2,-392 304.16,-392 304.16,-361.2 43.2,-361.2"/>
|
|
43
|
-
<text text-anchor="start" x="50.2" y="-373.4" font-family="Arial" font-size="14.00">node_id </text>
|
|
44
|
-
<text text-anchor="start" x="103.92" y="-373.4" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
|
|
45
|
-
<polygon fill="none" stroke="black" points="43.2,-330.4 43.2,-361.2 304.16,-361.2 304.16,-330.4 43.2,-330.4"/>
|
|
46
|
-
<text text-anchor="start" x="50.2" y="-342.6" font-family="Arial" font-size="14.00">tag_id </text>
|
|
47
|
-
<text text-anchor="start" x="92.23" y="-342.6" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
|
|
48
|
-
<polygon fill="none" stroke="black" points="43.2,-299.6 43.2,-330.4 304.16,-330.4 304.16,-299.6 43.2,-299.6"/>
|
|
49
|
-
<text text-anchor="start" x="50.2" y="-311.8" font-family="Arial" font-size="14.00">created_at </text>
|
|
50
|
-
<text text-anchor="start" x="120.25" y="-311.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp with time zone]</text>
|
|
51
|
-
</g>
|
|
52
|
-
<!-- public.node_tags->public.tags -->
|
|
53
|
-
<g id="edge1" class="edge">
|
|
54
|
-
<title>public.node_tags:tag_id->public.tags:id</title>
|
|
55
|
-
<path fill="none" stroke="black" d="M315.48,-344.95C403.6,-330 394.96,-123.2 299.57,-123.2"/>
|
|
56
|
-
<polygon fill="black" stroke="black" points="315.46,-344.95 305.13,-341.29 310.15,-345.39 305.83,-345.75 305.83,-345.75 305.83,-345.75 310.15,-345.39 305.87,-350.26 315.46,-344.95"/>
|
|
57
|
-
<text text-anchor="start" x="312.16" y="-355.8" font-family="Arial" font-size="10.00">FOREIGN KEY (tag_id) REFERENCES tags(id) ON DELETE CASCADE</text>
|
|
58
|
-
</g>
|
|
59
|
-
</g>
|
|
60
|
-
</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
|
|
@@ -8,9 +8,9 @@ Unique tag names for categorization
|
|
|
8
8
|
|
|
9
9
|
| Name | Type | Default | Nullable | Children | Parents | Comment |
|
|
10
10
|
| ---- | ---- | ------- | -------- | -------- | ------- | ------- |
|
|
11
|
+
| created_at | timestamp with time zone | CURRENT_TIMESTAMP | true | | | When this tag was created |
|
|
11
12
|
| id | bigint | nextval('tags_id_seq'::regclass) | false | [public.node_tags](public.node_tags.md) | | |
|
|
12
13
|
| name | text | | false | | | Hierarchical tag in format: root:level1:level2 (e.g., database:postgresql:timescaledb) |
|
|
13
|
-
| created_at | timestamp with time zone | CURRENT_TIMESTAMP | true | | | When this tag was created |
|
|
14
14
|
|
|
15
15
|
## Constraints
|
|
16
16
|
|
|
@@ -22,9 +22,9 @@ Unique tag names for categorization
|
|
|
22
22
|
|
|
23
23
|
| Name | Definition |
|
|
24
24
|
| ---- | ---------- |
|
|
25
|
-
| tags_pkey | CREATE UNIQUE INDEX tags_pkey ON public.tags USING btree (id) |
|
|
26
|
-
| idx_tags_name_unique | CREATE UNIQUE INDEX idx_tags_name_unique ON public.tags USING btree (name) |
|
|
27
25
|
| idx_tags_name_pattern | CREATE INDEX idx_tags_name_pattern ON public.tags USING btree (name text_pattern_ops) |
|
|
26
|
+
| idx_tags_name_unique | CREATE UNIQUE INDEX idx_tags_name_unique ON public.tags USING btree (name) |
|
|
27
|
+
| tags_pkey | CREATE UNIQUE INDEX tags_pkey ON public.tags USING btree (id) |
|
|
28
28
|
|
|
29
29
|
## Relations
|
|
30
30
|
|
|
File without changes
|
|
File without changes
|