htm 0.0.31 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (616) hide show
  1. checksums.yaml +4 -4
  2. data/.architecture/decisions/adrs/005-rag-based-retrieval-with-hybrid-search.md +4 -0
  3. data/.architecture/decisions/adrs/017-bitemporal-event-time.md +78 -0
  4. data/.architecture/decisions/adrs/018-memory-timelines-and-node-links.md +64 -0
  5. data/.architecture/decisions/adrs/019-epistemic-status.md +66 -0
  6. data/.claude.json +11 -0
  7. data/.envrc +9 -7
  8. data/.irbrc +16 -17
  9. data/.reek.yml +104 -0
  10. data/.rubocop.yml +173 -0
  11. data/.ruby-version +1 -0
  12. data/CHANGELOG.md +162 -54
  13. data/README.md +24 -17
  14. data/SETUP.md +49 -46
  15. data/_typos.toml +17 -0
  16. data/bin/htm +18 -0
  17. data/db/migrate/00008_create_node_relationships.rb +54 -0
  18. data/db/migrate/00009_fix_node_relationships_column_types.rb +17 -0
  19. data/db/migrate/00010_convert_embedding_to_sparsevec.rb +47 -0
  20. data/db/migrate/00011_strip_frontmatter_from_chunks.rb +66 -0
  21. data/db/migrate/00012_add_event_time_to_nodes.rb +110 -0
  22. data/db/migrate/00013_create_node_links.rb +158 -0
  23. data/db/migrate/00014_add_epistemic_status.rb +110 -0
  24. data/db/schema.sql +361 -7
  25. data/db/seed_data/README.md +11 -11
  26. data/db/seeds.rb +11 -11
  27. data/docs/api/database.md +43 -65
  28. data/docs/api/embedding-service.md +139 -263
  29. data/docs/api/htm.md +128 -12
  30. data/docs/api/index.md +34 -23
  31. data/docs/api/long-term-memory.md +8 -19
  32. data/docs/api/working-memory.md +42 -54
  33. data/docs/api/yard/HTM/Admin/Console.md +53 -0
  34. data/docs/api/yard/HTM/Admin/DatabaseCommands/Console.md +38 -0
  35. data/docs/api/yard/HTM/Admin/DatabaseCommands.md +127 -0
  36. data/docs/api/yard/HTM/Admin/EnrichCommands.md +85 -0
  37. data/docs/api/yard/HTM/Admin/Error.md +9 -0
  38. data/docs/api/yard/HTM/Admin/FileCommands/Console.md +50 -0
  39. data/docs/api/yard/HTM/Admin/FileCommands.md +83 -0
  40. data/docs/api/yard/HTM/Admin/MemoryCommands/Base.md +17 -0
  41. data/docs/api/yard/HTM/Admin/MemoryCommands/Edit.md +74 -0
  42. data/docs/api/yard/HTM/Admin/MemoryCommands/Search.md +77 -0
  43. data/docs/api/yard/HTM/Admin/MemoryCommands/TagSearch.md +46 -0
  44. data/docs/api/yard/HTM/Admin/MemoryCommands/WorkingMemory.md +36 -0
  45. data/docs/api/yard/HTM/Admin/MemoryCommands.md +67 -0
  46. data/docs/api/yard/HTM/Admin/TagCommands/Console.md +48 -0
  47. data/docs/api/yard/HTM/Admin/TagCommands.md +105 -0
  48. data/docs/api/yard/HTM/Admin/TagGraph.md +149 -0
  49. data/docs/api/yard/HTM/Admin/YardDocs.md +60 -0
  50. data/docs/api/yard/HTM/Admin.md +102 -0
  51. data/docs/api/yard/HTM/AuthorizationError.md +6 -6
  52. data/docs/api/yard/HTM/CLI/ConfigFile.md +40 -0
  53. data/docs/api/yard/HTM/CLI/Db.md +63 -0
  54. data/docs/api/yard/HTM/CLI/Enrich.md +39 -0
  55. data/docs/api/yard/HTM/CLI/ErrorSuggestion.md +56 -0
  56. data/docs/api/yard/HTM/CLI/Files.md +36 -0
  57. data/docs/api/yard/HTM/CLI/Group/ClassMethods.md +11 -0
  58. data/docs/api/yard/HTM/CLI/Group.md +13 -0
  59. data/docs/api/yard/HTM/CLI/MemoryCommand/ClassMethods.md +20 -0
  60. data/docs/api/yard/HTM/CLI/MemoryCommand.md +9 -0
  61. data/docs/api/yard/HTM/CLI/Robots.md +31 -0
  62. data/docs/api/yard/HTM/CLI/Support.md +9 -0
  63. data/docs/api/yard/HTM/CLI/Tags.md +57 -0
  64. data/docs/api/yard/HTM/CLI/WorkingMemory.md +24 -0
  65. data/docs/api/yard/HTM/CLI.md +84 -0
  66. data/docs/api/yard/HTM/CircuitBreaker/Guarded.md +29 -0
  67. data/docs/api/yard/HTM/CircuitBreaker/Settings.md +21 -0
  68. data/docs/api/yard/HTM/CircuitBreaker/Status.md +42 -0
  69. data/docs/api/yard/HTM/CircuitBreaker.md +54 -49
  70. data/docs/api/yard/HTM/CircuitBreakerOpenError.md +9 -9
  71. data/docs/api/yard/HTM/Config/Builder.md +87 -0
  72. data/docs/api/yard/HTM/Config/Coercion.md +59 -0
  73. data/docs/api/yard/HTM/Config/Database.md +102 -0
  74. data/docs/api/yard/HTM/Config/Readers.md +30 -0
  75. data/docs/api/yard/HTM/Config/RubyLlmSettings.md +32 -0
  76. data/docs/api/yard/HTM/Config/Validator.md +59 -0
  77. data/docs/api/yard/HTM/Config.md +224 -105
  78. data/docs/api/yard/HTM/ConfigurationError.md +20 -0
  79. data/docs/api/yard/HTM/Confirmation.md +22 -0
  80. data/docs/api/yard/HTM/Database/Connection.md +26 -0
  81. data/docs/api/yard/HTM/Database/Migrations.md +32 -0
  82. data/docs/api/yard/HTM/Database/Report.md +26 -0
  83. data/docs/api/yard/HTM/Database/SchemaFile.md +52 -0
  84. data/docs/api/yard/HTM/Database/Teardown.md +15 -0
  85. data/docs/api/yard/HTM/Database.md +58 -70
  86. data/docs/api/yard/HTM/DatabaseDocs.md +67 -0
  87. data/docs/api/yard/HTM/DatabaseError.md +6 -6
  88. data/docs/api/yard/HTM/Deletion.md +32 -0
  89. data/docs/api/yard/HTM/EmbeddingError.md +6 -6
  90. data/docs/api/yard/HTM/EmbeddingService.md +37 -38
  91. data/docs/api/yard/HTM/Epistemics.md +135 -0
  92. data/docs/api/yard/HTM/Error.md +6 -6
  93. data/docs/api/yard/HTM/EventTime.md +110 -0
  94. data/docs/api/yard/HTM/FileMemory.md +76 -0
  95. data/docs/api/yard/HTM/InputValidator.md +82 -0
  96. data/docs/api/yard/HTM/JobAdapter/Job.md +26 -0
  97. data/docs/api/yard/HTM/JobAdapter.md +35 -16
  98. data/docs/api/yard/HTM/Jobs/FailureLogging.md +14 -0
  99. data/docs/api/yard/HTM/Jobs/GenerateEmbeddingJob.md +16 -0
  100. data/docs/api/yard/HTM/Jobs/GeneratePropositionsJob.md +17 -0
  101. data/docs/api/yard/HTM/Jobs/GenerateRelationshipsJob.md +26 -0
  102. data/docs/api/yard/HTM/Jobs/GenerateTagsJob.md +17 -0
  103. data/docs/api/yard/HTM/Jobs/LlmCallTimer.md +58 -0
  104. data/docs/api/yard/HTM/Jobs/NodeLookup.md +14 -0
  105. data/docs/api/yard/HTM/Jobs.md +13 -0
  106. data/docs/api/yard/HTM/Loaders/ChunkSync/Chunk.md +22 -0
  107. data/docs/api/yard/HTM/Loaders/ChunkSync.md +50 -0
  108. data/docs/api/yard/HTM/Loaders/MarkdownChunker/Coalescer.md +24 -0
  109. data/docs/api/yard/HTM/Loaders/MarkdownChunker/Packer.md +20 -0
  110. data/docs/api/yard/HTM/Loaders/MarkdownChunker/Splitter.md +18 -0
  111. data/docs/api/yard/HTM/Loaders/MarkdownChunker.md +83 -0
  112. data/docs/api/yard/HTM/Loaders/MarkdownLoader/Document.md +43 -0
  113. data/docs/api/yard/HTM/Loaders/MarkdownLoader.md +62 -0
  114. data/docs/api/yard/HTM/Loaders.md +5 -0
  115. data/docs/api/yard/HTM/LongTermMemory/FulltextSearch.md +36 -0
  116. data/docs/api/yard/HTM/LongTermMemory/HybridSearch/RrfMerger.md +25 -0
  117. data/docs/api/yard/HTM/LongTermMemory/HybridSearch/RrfRows.md +30 -0
  118. data/docs/api/yard/HTM/LongTermMemory/HybridSearch/RrfSql/Query.md +79 -0
  119. data/docs/api/yard/HTM/LongTermMemory/HybridSearch/RrfSql/Source.md +45 -0
  120. data/docs/api/yard/HTM/LongTermMemory/HybridSearch/RrfSql.md +11 -0
  121. data/docs/api/yard/HTM/LongTermMemory/HybridSearch/TagDepth.md +52 -0
  122. data/docs/api/yard/HTM/LongTermMemory/HybridSearch.md +52 -0
  123. data/docs/api/yard/HTM/LongTermMemory/NodeOperations.md +95 -0
  124. data/docs/api/yard/HTM/LongTermMemory/RelevanceScorer/HierarchicalJaccard.md +58 -0
  125. data/docs/api/yard/HTM/LongTermMemory/RelevanceScorer/TagSearch.md +27 -0
  126. data/docs/api/yard/HTM/LongTermMemory/RelevanceScorer.md +81 -0
  127. data/docs/api/yard/HTM/LongTermMemory/RobotOperations.md +22 -0
  128. data/docs/api/yard/HTM/LongTermMemory/TagOperations/ExpiringValue.md +24 -0
  129. data/docs/api/yard/HTM/LongTermMemory/TagOperations/TagMatchSql.md +40 -0
  130. data/docs/api/yard/HTM/LongTermMemory/TagOperations.md +129 -0
  131. data/docs/api/yard/HTM/LongTermMemory/VectorSearch.md +30 -0
  132. data/docs/api/yard/HTM/LongTermMemory.md +279 -31
  133. data/docs/api/yard/HTM/MCP/AssembleContextTool.md +16 -0
  134. data/docs/api/yard/HTM/MCP/ClearGroupWorkingMemoryTool.md +12 -0
  135. data/docs/api/yard/HTM/MCP/ClearWorkingMemoryTool.md +12 -0
  136. data/docs/api/yard/HTM/MCP/ConfigResource.md +12 -0
  137. data/docs/api/yard/HTM/MCP/ConfirmTool.md +12 -0
  138. data/docs/api/yard/HTM/MCP/CreateGroupTool.md +12 -0
  139. data/docs/api/yard/HTM/MCP/EnrichPendingTool.md +16 -0
  140. data/docs/api/yard/HTM/MCP/ExtractPropositionsTool.md +12 -0
  141. data/docs/api/yard/HTM/MCP/FailoverTool.md +12 -0
  142. data/docs/api/yard/HTM/MCP/FileInfoTool.md +13 -0
  143. data/docs/api/yard/HTM/MCP/FileSourcesResource.md +12 -0
  144. data/docs/api/yard/HTM/MCP/FileSupport.md +7 -0
  145. data/docs/api/yard/HTM/MCP/FindByTopicTool.md +12 -0
  146. data/docs/api/yard/HTM/MCP/FirstMentionTool.md +12 -0
  147. data/docs/api/yard/HTM/MCP/ForgetContentTool.md +12 -0
  148. data/docs/api/yard/HTM/MCP/ForgetTool.md +12 -0
  149. data/docs/api/yard/HTM/MCP/GetGroupStatusTool.md +12 -0
  150. data/docs/api/yard/HTM/MCP/GetGroupWorkingMemoryTool.md +12 -0
  151. data/docs/api/yard/HTM/MCP/GetNodeTool.md +12 -0
  152. data/docs/api/yard/HTM/MCP/GetRobotTool.md +12 -0
  153. data/docs/api/yard/HTM/MCP/GetWorkingMemoryTool.md +12 -0
  154. data/docs/api/yard/HTM/MCP/GroupRecallTool.md +12 -0
  155. data/docs/api/yard/HTM/MCP/GroupRememberTool.md +12 -0
  156. data/docs/api/yard/HTM/MCP/GroupSession.md +23 -0
  157. data/docs/api/yard/HTM/MCP/JoinGroupTool.md +12 -0
  158. data/docs/api/yard/HTM/MCP/LeaveGroupTool.md +12 -0
  159. data/docs/api/yard/HTM/MCP/ListDeletedTool.md +12 -0
  160. data/docs/api/yard/HTM/MCP/ListFilesTool.md +13 -0
  161. data/docs/api/yard/HTM/MCP/ListGroupsTool.md +12 -0
  162. data/docs/api/yard/HTM/MCP/ListRobotsTool.md +12 -0
  163. data/docs/api/yard/HTM/MCP/ListTagsTool.md +12 -0
  164. data/docs/api/yard/HTM/MCP/LoadDirectoryTool.md +13 -0
  165. data/docs/api/yard/HTM/MCP/LoadFileTool.md +13 -0
  166. data/docs/api/yard/HTM/MCP/MemoryStatsResource.md +13 -0
  167. data/docs/api/yard/HTM/MCP/PopularTagsTool.md +12 -0
  168. data/docs/api/yard/HTM/MCP/PromoteRobotTool.md +12 -0
  169. data/docs/api/yard/HTM/MCP/PurgeDeletedTool.md +12 -0
  170. data/docs/api/yard/HTM/MCP/RecallTool.md +16 -0
  171. data/docs/api/yard/HTM/MCP/RecentMemoriesResource.md +13 -0
  172. data/docs/api/yard/HTM/MCP/RelatedNodesTool.md +12 -0
  173. data/docs/api/yard/HTM/MCP/RememberTool.md +12 -0
  174. data/docs/api/yard/HTM/MCP/RestoreTool.md +12 -0
  175. data/docs/api/yard/HTM/MCP/RobotGroupsResource.md +13 -0
  176. data/docs/api/yard/HTM/MCP/RobotTeamsStatusTool.md +13 -0
  177. data/docs/api/yard/HTM/MCP/RunRobotTeamsTool.md +13 -0
  178. data/docs/api/yard/HTM/MCP/SearchByTagsTool.md +16 -0
  179. data/docs/api/yard/HTM/MCP/SearchTagsTool.md +12 -0
  180. data/docs/api/yard/HTM/MCP/Server.md +37 -0
  181. data/docs/api/yard/HTM/MCP/Session.md +32 -0
  182. data/docs/api/yard/HTM/MCP/SetRobotTool.md +12 -0
  183. data/docs/api/yard/HTM/MCP/ShutdownGroupTool.md +12 -0
  184. data/docs/api/yard/HTM/MCP/StartupPromptResource.md +16 -0
  185. data/docs/api/yard/HTM/MCP/StatsTool.md +12 -0
  186. data/docs/api/yard/HTM/MCP/SyncFilesTool.md +13 -0
  187. data/docs/api/yard/HTM/MCP/SyncGroupTool.md +12 -0
  188. data/docs/api/yard/HTM/MCP/TagHierarchyResource.md +16 -0
  189. data/docs/api/yard/HTM/MCP/TagNodeTool.md +12 -0
  190. data/docs/api/yard/HTM/MCP/TagTreeTool.md +22 -0
  191. data/docs/api/yard/HTM/MCP/TeamNames.md +7 -0
  192. data/docs/api/yard/HTM/MCP/TimelineTool.md +12 -0
  193. data/docs/api/yard/HTM/MCP/Tool.md +24 -0
  194. data/docs/api/yard/HTM/MCP/ToolSupport.md +17 -0
  195. data/docs/api/yard/HTM/MCP/TopicRelationshipsTool.md +12 -0
  196. data/docs/api/yard/HTM/MCP/TransferWorkingMemoryTool.md +12 -0
  197. data/docs/api/yard/HTM/MCP/UnloadFileTool.md +13 -0
  198. data/docs/api/yard/HTM/MCP/UntagNodeTool.md +12 -0
  199. data/docs/api/yard/HTM/MCP.md +30 -0
  200. data/docs/api/yard/HTM/Migration.md +44 -0
  201. data/docs/api/yard/HTM/Models/FileSource.md +66 -0
  202. data/docs/api/yard/HTM/Models/Node/Scopes.md +74 -0
  203. data/docs/api/yard/HTM/Models/Node/SoftDeletion.md +22 -0
  204. data/docs/api/yard/HTM/Models/Node/VectorSimilarity.md +28 -0
  205. data/docs/api/yard/HTM/Models/Node.md +113 -0
  206. data/docs/api/yard/HTM/Models/NodeLink.md +65 -0
  207. data/docs/api/yard/HTM/Models/NodeRelationship.md +31 -0
  208. data/docs/api/yard/HTM/Models/NodeTag.md +38 -0
  209. data/docs/api/yard/HTM/Models/Robot.md +50 -0
  210. data/docs/api/yard/HTM/Models/RobotNode.md +35 -0
  211. data/docs/api/yard/HTM/Models/Tag/Scopes.md +32 -0
  212. data/docs/api/yard/HTM/Models/Tag.md +112 -0
  213. data/docs/api/yard/HTM/Models.md +5 -0
  214. data/docs/api/yard/HTM/NodeEnrichment.md +36 -0
  215. data/docs/api/yard/HTM/NodeView.md +113 -0
  216. data/docs/api/yard/HTM/NotFoundError.md +6 -5
  217. data/docs/api/yard/HTM/Observability.md +58 -40
  218. data/docs/api/yard/HTM/PropositionError.md +6 -6
  219. data/docs/api/yard/HTM/PropositionService.md +63 -29
  220. data/docs/api/yard/HTM/QueryCache/KeyNormalizer.md +25 -0
  221. data/docs/api/yard/HTM/QueryCache/NullStore.md +19 -0
  222. data/docs/api/yard/HTM/QueryCache/Store.md +43 -0
  223. data/docs/api/yard/HTM/QueryCache.md +41 -46
  224. data/docs/api/yard/HTM/QueryTimeoutError.md +9 -8
  225. data/docs/api/yard/HTM/Railtie.md +11 -7
  226. data/docs/api/yard/HTM/RecallQuery.md +111 -0
  227. data/docs/api/yard/HTM/ResourceExhaustedError.md +6 -6
  228. data/docs/api/yard/HTM/RobotGroup/CacheSync.md +35 -0
  229. data/docs/api/yard/HTM/RobotGroup/Membership.md +96 -0
  230. data/docs/api/yard/HTM/RobotGroup/TransferOptions.md +14 -0
  231. data/docs/api/yard/HTM/RobotGroup/WorkingMemoryLedger.md +65 -0
  232. data/docs/api/yard/HTM/RobotGroup.md +116 -360
  233. data/docs/api/yard/HTM/Robots/Actions/TagMove.md +31 -0
  234. data/docs/api/yard/HTM/Robots/Actions.md +153 -0
  235. data/docs/api/yard/HTM/Robots/Neighbors.md +20 -0
  236. data/docs/api/yard/HTM/Robots/Supervisor/Idler.md +26 -0
  237. data/docs/api/yard/HTM/Robots/Supervisor/Roster.md +26 -0
  238. data/docs/api/yard/HTM/Robots/Supervisor.md +42 -0
  239. data/docs/api/yard/HTM/Robots/Team.md +60 -0
  240. data/docs/api/yard/HTM/Robots/Teams/Archivist.md +43 -0
  241. data/docs/api/yard/HTM/Robots/Teams/Consolidator.md +29 -0
  242. data/docs/api/yard/HTM/Robots/Teams/ContradictionDetector.md +33 -0
  243. data/docs/api/yard/HTM/Robots/Teams/TagCurator.md +37 -0
  244. data/docs/api/yard/HTM/Robots/Teams.md +5 -0
  245. data/docs/api/yard/HTM/Robots/Tools/ArchiveNodes.md +12 -0
  246. data/docs/api/yard/HTM/Robots/Tools/Base.md +16 -0
  247. data/docs/api/yard/HTM/Robots/Tools/MergeNodes.md +12 -0
  248. data/docs/api/yard/HTM/Robots/Tools/MergeTags.md +12 -0
  249. data/docs/api/yard/HTM/Robots/Tools/Pass.md +12 -0
  250. data/docs/api/yard/HTM/Robots/Tools/RecordConflict.md +12 -0
  251. data/docs/api/yard/HTM/Robots/Tools/SupersedeNode.md +12 -0
  252. data/docs/api/yard/HTM/Robots/Tools.md +14 -0
  253. data/docs/api/yard/HTM/Robots.md +72 -0
  254. data/docs/api/yard/HTM/SearchFilters.md +82 -0
  255. data/docs/api/yard/HTM/SequelConfig.md +97 -0
  256. data/docs/api/yard/HTM/Settings.md +39 -0
  257. data/docs/api/yard/HTM/Sinatra/Helpers.md +37 -0
  258. data/docs/api/yard/HTM/Sinatra/Middleware.md +29 -0
  259. data/docs/api/yard/HTM/Sinatra.md +44 -0
  260. data/docs/api/yard/HTM/SqlBuilder/Sparsevec.md +69 -0
  261. data/docs/api/yard/HTM/SqlBuilder.md +62 -75
  262. data/docs/api/yard/HTM/StartupPrompt.md +45 -0
  263. data/docs/api/yard/HTM/TagError.md +6 -6
  264. data/docs/api/yard/HTM/TagService.md +100 -37
  265. data/docs/api/yard/HTM/TagTree/Branch.md +43 -0
  266. data/docs/api/yard/HTM/TagTree/SvgRenderer/Layout.md +51 -0
  267. data/docs/api/yard/HTM/TagTree/SvgRenderer.md +25 -0
  268. data/docs/api/yard/HTM/TagTree.md +65 -0
  269. data/docs/api/yard/HTM/Telemetry/NullInstrument.md +12 -9
  270. data/docs/api/yard/HTM/Telemetry/NullMeter.md +17 -9
  271. data/docs/api/yard/HTM/Telemetry.md +53 -50
  272. data/docs/api/yard/HTM/Timeframe/Result.md +13 -16
  273. data/docs/api/yard/HTM/Timeframe.md +17 -20
  274. data/docs/api/yard/HTM/TimeframeExtractor/Patterns.md +18 -0
  275. data/docs/api/yard/HTM/TimeframeExtractor/Result.md +13 -16
  276. data/docs/api/yard/HTM/TimeframeExtractor.md +27 -16
  277. data/docs/api/yard/HTM/Timeline.md +113 -0
  278. data/docs/api/yard/HTM/ValidationError.md +6 -5
  279. data/docs/api/yard/HTM/Workflows/RememberWorkflow/NodeState.md +73 -0
  280. data/docs/api/yard/HTM/Workflows/RememberWorkflow.md +80 -0
  281. data/docs/api/yard/HTM/Workflows.md +5 -0
  282. data/docs/api/yard/HTM/WorkingMemory/Entry.md +67 -0
  283. data/docs/api/yard/HTM/WorkingMemory/Store.md +54 -0
  284. data/docs/api/yard/HTM/WorkingMemory.md +113 -87
  285. data/docs/api/yard/HTM/WorkingMemoryChannel/Subscribers.md +28 -0
  286. data/docs/api/yard/HTM/WorkingMemoryChannel.md +108 -102
  287. data/docs/api/yard/HTM.md +483 -5
  288. data/docs/api/yard/README.md +211 -0
  289. data/docs/api/yard/Sinatra/Base.md +30 -0
  290. data/docs/api/yard/Sinatra.md +7 -0
  291. data/docs/api/yard/index.csv +1834 -181
  292. data/docs/api/yard-reference.md +228 -9
  293. data/docs/architecture/adrs/005-rag-retrieval.md +3 -0
  294. data/docs/architecture/adrs/index.md +1 -1
  295. data/docs/architecture/index.md +7 -9
  296. data/docs/architecture/overview.md +8 -11
  297. data/docs/assets/images/htm-architecture-overview.svg +1 -1
  298. data/docs/assets/images/htm-context-assembly-flow.svg +2 -2
  299. data/docs/assets/images/htm-layered-architecture.svg +3 -3
  300. data/docs/assets/images/project-structure.svg +2 -2
  301. data/docs/assets/images/two-tier-memory-architecture.svg +1 -1
  302. data/docs/database/INDEX.md +113 -0
  303. data/docs/database/README.md +60 -175
  304. data/docs/database/file_sources.md +51 -0
  305. data/docs/database/file_sources.svg +120 -0
  306. data/docs/database/naming-convention.md +12 -12
  307. data/docs/database/node_links.md +65 -0
  308. data/docs/database/node_links.svg +171 -0
  309. data/docs/database/node_relationships.md +62 -0
  310. data/docs/database/node_relationships.svg +124 -0
  311. data/docs/database/node_tags.md +50 -0
  312. data/docs/database/node_tags.svg +125 -0
  313. data/docs/database/nodes.md +120 -0
  314. data/docs/database/nodes.svg +394 -0
  315. data/docs/database/robot_nodes.md +57 -0
  316. data/docs/database/robot_nodes.svg +155 -0
  317. data/docs/database/robots.md +40 -0
  318. data/docs/database/robots.svg +131 -0
  319. data/docs/database/schema.svg +384 -275
  320. data/docs/database/schema_migrations.md +19 -0
  321. data/docs/database/schema_migrations.svg +31 -0
  322. data/docs/database/tags.md +47 -0
  323. data/docs/database/tags.svg +90 -0
  324. data/docs/development/asgard-tasks.md +114 -0
  325. data/docs/development/contributing.md +11 -11
  326. data/docs/development/index.md +19 -24
  327. data/docs/development/schema.md +113 -14
  328. data/docs/development/setup.md +99 -151
  329. data/docs/development/testing.md +58 -66
  330. data/docs/examples/basic-usage.md +9 -9
  331. data/docs/examples/config-files.md +8 -8
  332. data/docs/examples/file-loading.md +16 -16
  333. data/docs/examples/index.md +15 -8
  334. data/docs/examples/llm-configuration.md +13 -9
  335. data/docs/examples/mcp-client.md +61 -59
  336. data/docs/examples/rails-integration.md +5 -4
  337. data/docs/examples/sinatra-integration.md +5 -4
  338. data/docs/examples/standalone-app.md +17 -16
  339. data/docs/getting-started/index.md +3 -3
  340. data/docs/getting-started/installation.md +76 -83
  341. data/docs/getting-started/quick-start.md +28 -26
  342. data/docs/guides/adding-memories.md +28 -4
  343. data/docs/guides/cli.md +458 -0
  344. data/docs/guides/configuration.md +77 -42
  345. data/docs/guides/context-assembly.md +4 -4
  346. data/docs/guides/epistemic-status.md +138 -0
  347. data/docs/guides/event-time.md +106 -0
  348. data/docs/guides/file-loading.md +36 -32
  349. data/docs/guides/getting-started.md +23 -19
  350. data/docs/guides/long-term-memory.md +8 -28
  351. data/docs/guides/mcp-server.md +416 -173
  352. data/docs/guides/propositions.md +30 -40
  353. data/docs/guides/recalling-memories.md +27 -12
  354. data/docs/guides/robot-teams.md +96 -0
  355. data/docs/guides/search-strategies.md +10 -7
  356. data/docs/guides/tags.md +37 -32
  357. data/docs/guides/timeline.md +106 -0
  358. data/docs/index.md +7 -7
  359. data/docs/llms.txt +35 -0
  360. data/docs/multi_framework_support.md +14 -14
  361. data/docs/robots/hive-mind.md +1 -1
  362. data/docs/robots/multi-robot.md +2 -2
  363. data/docs/robots/robot-groups.md +10 -10
  364. data/docs/robots/two-tier-memory.md +85 -120
  365. data/docs/setup_local_database.md +41 -85
  366. data/examples/00_create_examples_db.rb +20 -7
  367. data/examples/01_basic_usage.rb +21 -18
  368. data/examples/02_config_file_example/README.md +13 -12
  369. data/examples/02_config_file_example/config/htm.local.yml +8 -8
  370. data/examples/02_config_file_example/show_config.rb +3 -4
  371. data/examples/03_custom_llm_configuration.rb +13 -12
  372. data/examples/04_file_loader_usage.rb +16 -21
  373. data/examples/05_timeframe_demo.rb +283 -234
  374. data/examples/06_example_app/.loki +36 -0
  375. data/examples/06_example_app/app.rb +22 -33
  376. data/examples/07_cli_app/README.md +18 -18
  377. data/examples/07_cli_app/htm_cli.rb +26 -19
  378. data/examples/08_sinatra_app/Gemfile +1 -0
  379. data/examples/08_sinatra_app/Gemfile.lock +101 -67
  380. data/examples/08_sinatra_app/app.rb +64 -62
  381. data/examples/09_mcp_client.rb +93 -119
  382. data/examples/10_telemetry/README.md +3 -3
  383. data/examples/10_telemetry/SETUP_README.md +2 -2
  384. data/examples/10_telemetry/demo.rb +6 -5
  385. data/examples/11_robot_groups/README.md +5 -4
  386. data/examples/11_robot_groups/lib/robot_worker.rb +0 -5
  387. data/examples/11_robot_groups/multi_process.rb +6 -4
  388. data/examples/11_robot_groups/same_process.rb +19 -17
  389. data/examples/12_rails_app/.envrc +12 -0
  390. data/examples/12_rails_app/Gemfile +8 -3
  391. data/examples/12_rails_app/Gemfile.lock +226 -172
  392. data/examples/12_rails_app/README.md +77 -22
  393. data/examples/12_rails_app/app/controllers/application_controller.rb +6 -0
  394. data/examples/12_rails_app/app/controllers/chats_controller.rb +275 -0
  395. data/examples/12_rails_app/app/controllers/dashboard_controller.rb +3 -0
  396. data/examples/12_rails_app/app/controllers/files_controller.rb +17 -2
  397. data/examples/12_rails_app/app/controllers/home_controller.rb +8 -0
  398. data/examples/12_rails_app/app/controllers/memories_controller.rb +16 -5
  399. data/examples/12_rails_app/app/controllers/messages_controller.rb +177 -0
  400. data/examples/12_rails_app/app/controllers/robots_controller.rb +11 -1
  401. data/examples/12_rails_app/app/controllers/search_controller.rb +7 -2
  402. data/examples/12_rails_app/app/controllers/tags_controller.rb +14 -1
  403. data/examples/12_rails_app/app/javascript/application.js +1 -1
  404. data/examples/12_rails_app/app/models/application_record.rb +5 -0
  405. data/examples/12_rails_app/app/models/chat.rb +3 -0
  406. data/examples/12_rails_app/app/models/message.rb +3 -0
  407. data/examples/12_rails_app/app/views/chats/index.html.erb +61 -0
  408. data/examples/12_rails_app/app/views/chats/show.html.erb +213 -0
  409. data/examples/12_rails_app/app/views/dashboard/index.html.erb +3 -0
  410. data/examples/12_rails_app/app/views/files/index.html.erb +10 -5
  411. data/examples/12_rails_app/app/views/files/new.html.erb +5 -3
  412. data/examples/12_rails_app/app/views/files/show.html.erb +19 -3
  413. data/examples/12_rails_app/app/views/home/index.html.erb +45 -0
  414. data/examples/12_rails_app/app/views/layouts/application.html.erb +20 -18
  415. data/examples/12_rails_app/app/views/memories/_memory_card.html.erb +2 -2
  416. data/examples/12_rails_app/app/views/memories/deleted.html.erb +3 -1
  417. data/examples/12_rails_app/app/views/memories/edit.html.erb +2 -0
  418. data/examples/12_rails_app/app/views/memories/index.html.erb +2 -0
  419. data/examples/12_rails_app/app/views/memories/new.html.erb +14 -0
  420. data/examples/12_rails_app/app/views/memories/show.html.erb +17 -2
  421. data/examples/12_rails_app/app/views/messages/_message.html.erb +20 -0
  422. data/examples/12_rails_app/app/views/robots/index.html.erb +2 -0
  423. data/examples/12_rails_app/app/views/robots/new.html.erb +2 -0
  424. data/examples/12_rails_app/app/views/robots/show.html.erb +2 -0
  425. data/examples/12_rails_app/app/views/search/index.html.erb +77 -10
  426. data/examples/12_rails_app/app/views/shared/_navbar.html.erb +75 -29
  427. data/examples/12_rails_app/app/views/tags/index.html.erb +2 -0
  428. data/examples/12_rails_app/app/views/tags/show.html.erb +3 -1
  429. data/examples/12_rails_app/config/application.rb +1 -1
  430. data/examples/12_rails_app/config/database.yml +9 -5
  431. data/examples/12_rails_app/config/importmap.rb +1 -1
  432. data/examples/12_rails_app/config/initializers/htm.rb +9 -2
  433. data/examples/12_rails_app/config/initializers/ruby_llm.rb +29 -0
  434. data/examples/12_rails_app/config/routes.rb +39 -23
  435. data/examples/12_rails_app/db/migrate/20261205061932_create_ruby_llm_records.rb +160 -0
  436. data/examples/12_rails_app/db/migrate/20261205061933_create_chats.rb +13 -0
  437. data/examples/12_rails_app/db/migrate/20261205061934_create_messages.rb +23 -0
  438. data/examples/12_rails_app/db/schema.rb +210 -0
  439. data/examples/README.md +53 -44
  440. data/examples/examples_helper.rb +52 -3
  441. data/htm.gemspec +68 -0
  442. data/lib/htm/admin/database_commands.rb +454 -0
  443. data/lib/htm/admin/enrich_commands.rb +209 -0
  444. data/lib/htm/admin/file_commands.rb +323 -0
  445. data/lib/htm/admin/memory_commands/edit.rb +157 -0
  446. data/lib/htm/admin/memory_commands/search.rb +178 -0
  447. data/lib/htm/admin/memory_commands/tag_search.rb +98 -0
  448. data/lib/htm/admin/memory_commands/text.rb +164 -0
  449. data/lib/htm/admin/memory_commands/working_memory.rb +71 -0
  450. data/lib/htm/admin/memory_commands.rb +179 -0
  451. data/lib/htm/admin/tag_commands.rb +352 -0
  452. data/lib/htm/admin/tag_graph.rb +290 -0
  453. data/lib/htm/admin/templates/tag_graph.html +295 -0
  454. data/lib/htm/admin/yard_docs.rb +206 -0
  455. data/lib/htm/admin.rb +253 -0
  456. data/lib/htm/circuit_breaker.rb +142 -69
  457. data/lib/htm/class_methods.rb +136 -0
  458. data/lib/htm/cli/config_file.rb +86 -0
  459. data/lib/htm/cli/db.rb +77 -0
  460. data/lib/htm/cli/enrich.rb +44 -0
  461. data/lib/htm/cli/environment.rb +74 -0
  462. data/lib/htm/cli/error_suggestion.rb +97 -0
  463. data/lib/htm/cli/files.rb +41 -0
  464. data/lib/htm/cli/group.rb +32 -0
  465. data/lib/htm/cli/memory.rb +320 -0
  466. data/lib/htm/cli/memory_command.rb +71 -0
  467. data/lib/htm/cli/robots.rb +71 -0
  468. data/lib/htm/cli/support.rb +46 -0
  469. data/lib/htm/cli/tags.rb +103 -0
  470. data/lib/htm/cli/working_memory.rb +41 -0
  471. data/lib/htm/cli.rb +75 -0
  472. data/lib/htm/config/builder.rb +106 -75
  473. data/lib/htm/config/coercion.rb +91 -0
  474. data/lib/htm/config/database.rb +94 -71
  475. data/lib/htm/config/defaults.yml +52 -16
  476. data/lib/htm/config/readers.rb +85 -0
  477. data/lib/htm/config/ruby_llm_settings.rb +58 -0
  478. data/lib/htm/config/validator.rb +47 -34
  479. data/lib/htm/config.rb +122 -296
  480. data/lib/htm/database.rb +330 -427
  481. data/lib/htm/database_docs.rb +149 -0
  482. data/lib/htm/embedding_service.rb +29 -74
  483. data/lib/htm/epistemics.rb +254 -0
  484. data/lib/htm/errors.rb +4 -4
  485. data/lib/htm/event_time.rb +201 -0
  486. data/lib/htm/file_memory.rb +106 -0
  487. data/lib/htm/input_validator.rb +158 -0
  488. data/lib/htm/integrations/sinatra.rb +45 -33
  489. data/lib/htm/job_adapter.rb +79 -91
  490. data/lib/htm/jobs/failure_logging.rb +49 -0
  491. data/lib/htm/jobs/generate_embedding_job.rb +28 -51
  492. data/lib/htm/jobs/generate_propositions_job.rb +59 -57
  493. data/lib/htm/jobs/generate_relationships_job.rb +141 -0
  494. data/lib/htm/jobs/generate_tags_job.rb +44 -71
  495. data/lib/htm/jobs/llm_call_timer.rb +53 -0
  496. data/lib/htm/jobs/node_lookup.rb +27 -0
  497. data/lib/htm/knowledge_memory.rb +153 -0
  498. data/lib/htm/loaders/chunk_sync.rb +168 -0
  499. data/lib/htm/loaders/markdown_chunker.rb +207 -36
  500. data/lib/htm/loaders/markdown_loader.rb +99 -190
  501. data/lib/htm/long_term_memory/fulltext_search.rb +16 -37
  502. data/lib/htm/long_term_memory/hybrid_search.rb +484 -385
  503. data/lib/htm/long_term_memory/node_operations.rb +111 -82
  504. data/lib/htm/long_term_memory/relevance_scorer.rb +254 -227
  505. data/lib/htm/long_term_memory/tag_operations.rb +225 -187
  506. data/lib/htm/long_term_memory/vector_search.rb +34 -62
  507. data/lib/htm/long_term_memory.rb +5 -16
  508. data/lib/htm/mcp/file_tools.rb +190 -0
  509. data/lib/htm/mcp/group_tools.rb +223 -233
  510. data/lib/htm/mcp/node_tools.rb +350 -0
  511. data/lib/htm/mcp/resources.rb +102 -28
  512. data/lib/htm/mcp/robot_team_tools.rb +119 -0
  513. data/lib/htm/mcp/server.rb +26 -15
  514. data/lib/htm/mcp/tag_tools.rb +130 -0
  515. data/lib/htm/mcp/tool.rb +40 -0
  516. data/lib/htm/mcp/tool_support.rb +88 -0
  517. data/lib/htm/mcp/tools.rb +230 -287
  518. data/lib/htm/migration.rb +10 -10
  519. data/lib/htm/models/file_source.rb +35 -20
  520. data/lib/htm/models/node.rb +288 -195
  521. data/lib/htm/models/node_link.rb +97 -0
  522. data/lib/htm/models/node_relationship.rb +73 -0
  523. data/lib/htm/models/node_tag.rb +24 -4
  524. data/lib/htm/models/robot.rb +4 -8
  525. data/lib/htm/models/robot_node.rb +7 -4
  526. data/lib/htm/models/tag.rb +54 -195
  527. data/lib/htm/node_enrichment.rb +75 -0
  528. data/lib/htm/node_view.rb +295 -0
  529. data/lib/htm/observability.rb +125 -115
  530. data/lib/htm/proposition_service.rb +41 -81
  531. data/lib/htm/query_cache.rb +148 -96
  532. data/lib/htm/railtie.rb +4 -9
  533. data/lib/htm/request_options.rb +149 -0
  534. data/lib/htm/robot_group/cache_sync.rb +69 -0
  535. data/lib/htm/robot_group/membership.rb +147 -0
  536. data/lib/htm/robot_group/working_memory_ledger.rb +111 -0
  537. data/lib/htm/robot_group.rb +130 -523
  538. data/lib/htm/robots/actions.rb +371 -0
  539. data/lib/htm/robots/neighbors.rb +63 -0
  540. data/lib/htm/robots/node_brief.rb +49 -0
  541. data/lib/htm/robots/supervisor.rb +140 -0
  542. data/lib/htm/robots/team.rb +124 -0
  543. data/lib/htm/robots/teams/archivist.rb +88 -0
  544. data/lib/htm/robots/teams/consolidator.rb +52 -0
  545. data/lib/htm/robots/teams/contradiction_detector.rb +67 -0
  546. data/lib/htm/robots/teams/tag_curator.rb +75 -0
  547. data/lib/htm/robots/tools.rb +127 -0
  548. data/lib/htm/robots.rb +125 -0
  549. data/lib/htm/search_filters.rb +116 -0
  550. data/lib/htm/sequel_config.rb +96 -59
  551. data/lib/htm/sql_builder.rb +162 -53
  552. data/lib/htm/startup_prompt.rb +73 -0
  553. data/lib/htm/tag_service.rb +105 -114
  554. data/lib/htm/tag_tree.rb +206 -0
  555. data/lib/htm/telemetry.rb +15 -16
  556. data/lib/htm/timeframe.rb +30 -13
  557. data/lib/htm/timeframe_extractor.rb +104 -123
  558. data/lib/htm/timeline.rb +230 -0
  559. data/lib/htm/version.rb +1 -1
  560. data/lib/htm/workflows/remember_workflow.rb +147 -141
  561. data/lib/htm/working_memory/entry.rb +53 -0
  562. data/lib/htm/working_memory/store.rb +97 -0
  563. data/lib/htm/working_memory.rb +135 -142
  564. data/lib/htm/working_memory_channel.rb +90 -40
  565. data/lib/htm.rb +185 -522
  566. data/mkdocs.yml +100 -23
  567. data/scripts/install_local_database.sh +7 -6
  568. metadata +1032 -669
  569. data/.tbls.yml +0 -31
  570. data/Rakefile +0 -159
  571. data/bin/htm_mcp +0 -27
  572. data/docs/api/yard/HTM/ActiveRecordConfig.md +0 -29
  573. data/docs/api/yard/HTM/ConfigSection.md +0 -28
  574. data/docs/database/public.file_sources.md +0 -42
  575. data/docs/database/public.file_sources.svg +0 -219
  576. data/docs/database/public.node_stats.md +0 -48
  577. data/docs/database/public.node_stats.svg +0 -41
  578. data/docs/database/public.node_tags.md +0 -41
  579. data/docs/database/public.node_tags.svg +0 -251
  580. data/docs/database/public.nodes.md +0 -61
  581. data/docs/database/public.nodes.svg +0 -283
  582. data/docs/database/public.nodes_tags.md +0 -39
  583. data/docs/database/public.nodes_tags.svg +0 -112
  584. data/docs/database/public.ontology_structure.md +0 -48
  585. data/docs/database/public.ontology_structure.svg +0 -38
  586. data/docs/database/public.operations_log.md +0 -42
  587. data/docs/database/public.operations_log.svg +0 -130
  588. data/docs/database/public.relationships.md +0 -39
  589. data/docs/database/public.relationships.svg +0 -41
  590. data/docs/database/public.robot_activity.md +0 -46
  591. data/docs/database/public.robot_activity.svg +0 -35
  592. data/docs/database/public.robot_nodes.md +0 -48
  593. data/docs/database/public.robot_nodes.svg +0 -251
  594. data/docs/database/public.robots.md +0 -34
  595. data/docs/database/public.robots.svg +0 -165
  596. data/docs/database/public.schema_migrations.md +0 -29
  597. data/docs/database/public.schema_migrations.svg +0 -26
  598. data/docs/database/public.tags.md +0 -38
  599. data/docs/database/public.tags.svg +0 -147
  600. data/docs/database/public.topic_relationships.md +0 -45
  601. data/docs/database/public.topic_relationships.svg +0 -32
  602. data/docs/database/schema.json +0 -1814
  603. data/docs/database_rake_tasks.md +0 -353
  604. data/docs/development/rake-tasks.md +0 -1113
  605. data/docs/using_rake_tasks_in_your_app.md +0 -383
  606. data/examples/06_example_app/Rakefile +0 -71
  607. data/lib/htm/mcp/cli.rb +0 -582
  608. data/lib/htm/tasks.rb +0 -79
  609. data/lib/tasks/db.rake +0 -17
  610. data/lib/tasks/doc.rake +0 -300
  611. data/lib/tasks/files.rake +0 -292
  612. data/lib/tasks/htm.rake +0 -704
  613. data/lib/tasks/jobs.rake +0 -435
  614. data/lib/tasks/tags.rake +0 -189
  615. data/scripts/backfill_parent_tags.rb +0 -376
  616. data/scripts/normalize_plural_tags.rb +0 -335
@@ -1,1814 +0,0 @@
1
- {
2
- "name": "htm_development",
3
- "tables": [
4
- {
5
- "name": "public.file_sources",
6
- "type": "BASE TABLE",
7
- "comment": "Source file metadata for loaded documents",
8
- "columns": [
9
- {
10
- "name": "created_at",
11
- "type": "timestamp with time zone",
12
- "nullable": true,
13
- "default": "CURRENT_TIMESTAMP"
14
- },
15
- {
16
- "name": "file_hash",
17
- "type": "varchar(64)",
18
- "nullable": true,
19
- "comment": "SHA-256 hash of file content"
20
- },
21
- {
22
- "name": "file_path",
23
- "type": "text",
24
- "nullable": false,
25
- "comment": "Absolute path to source file"
26
- },
27
- {
28
- "name": "file_size",
29
- "type": "integer",
30
- "nullable": true,
31
- "comment": "File size in bytes"
32
- },
33
- {
34
- "name": "frontmatter",
35
- "type": "jsonb",
36
- "nullable": true,
37
- "default": "'{}'::jsonb",
38
- "comment": "Parsed YAML frontmatter"
39
- },
40
- {
41
- "name": "id",
42
- "type": "bigint",
43
- "nullable": false,
44
- "default": "nextval('file_sources_id_seq'::regclass)"
45
- },
46
- {
47
- "name": "last_synced_at",
48
- "type": "timestamp with time zone",
49
- "nullable": true,
50
- "comment": "When file was last synced to HTM"
51
- },
52
- {
53
- "name": "mtime",
54
- "type": "timestamp with time zone",
55
- "nullable": true,
56
- "comment": "File modification time"
57
- },
58
- {
59
- "name": "updated_at",
60
- "type": "timestamp with time zone",
61
- "nullable": true,
62
- "default": "CURRENT_TIMESTAMP"
63
- }
64
- ],
65
- "indexes": [
66
- {
67
- "name": "file_sources_pkey",
68
- "def": "CREATE UNIQUE INDEX file_sources_pkey ON public.file_sources USING btree (id)",
69
- "table": "public.file_sources",
70
- "columns": [
71
- "id"
72
- ]
73
- },
74
- {
75
- "name": "idx_file_sources_hash",
76
- "def": "CREATE INDEX idx_file_sources_hash ON public.file_sources USING btree (file_hash)",
77
- "table": "public.file_sources",
78
- "columns": [
79
- "file_hash"
80
- ]
81
- },
82
- {
83
- "name": "idx_file_sources_last_synced",
84
- "def": "CREATE INDEX idx_file_sources_last_synced ON public.file_sources USING btree (last_synced_at)",
85
- "table": "public.file_sources",
86
- "columns": [
87
- "last_synced_at"
88
- ]
89
- },
90
- {
91
- "name": "idx_file_sources_path_unique",
92
- "def": "CREATE UNIQUE INDEX idx_file_sources_path_unique ON public.file_sources USING btree (file_path)",
93
- "table": "public.file_sources",
94
- "columns": [
95
- "file_path"
96
- ]
97
- }
98
- ],
99
- "constraints": [
100
- {
101
- "name": "file_sources_pkey",
102
- "type": "PRIMARY KEY",
103
- "def": "PRIMARY KEY (id)",
104
- "table": "public.file_sources",
105
- "referenced_table": "",
106
- "columns": [
107
- "id"
108
- ]
109
- }
110
- ]
111
- },
112
- {
113
- "name": "public.node_tags",
114
- "type": "BASE TABLE",
115
- "comment": "Join table connecting nodes to tags (many-to-many)",
116
- "columns": [
117
- {
118
- "name": "created_at",
119
- "type": "timestamp with time zone",
120
- "nullable": true,
121
- "default": "CURRENT_TIMESTAMP",
122
- "comment": "When this association was created"
123
- },
124
- {
125
- "name": "deleted_at",
126
- "type": "timestamp with time zone",
127
- "nullable": true,
128
- "comment": "Soft delete timestamp"
129
- },
130
- {
131
- "name": "id",
132
- "type": "bigint",
133
- "nullable": false,
134
- "default": "nextval('node_tags_id_seq'::regclass)"
135
- },
136
- {
137
- "name": "node_id",
138
- "type": "bigint",
139
- "nullable": false,
140
- "comment": "ID of the node being tagged"
141
- },
142
- {
143
- "name": "tag_id",
144
- "type": "bigint",
145
- "nullable": false,
146
- "comment": "ID of the tag being applied"
147
- }
148
- ],
149
- "indexes": [
150
- {
151
- "name": "idx_node_tags_deleted_at",
152
- "def": "CREATE INDEX idx_node_tags_deleted_at ON public.node_tags USING btree (deleted_at)",
153
- "table": "public.node_tags",
154
- "columns": [
155
- "deleted_at"
156
- ]
157
- },
158
- {
159
- "name": "idx_node_tags_node_id",
160
- "def": "CREATE INDEX idx_node_tags_node_id ON public.node_tags USING btree (node_id)",
161
- "table": "public.node_tags",
162
- "columns": [
163
- "node_id"
164
- ]
165
- },
166
- {
167
- "name": "idx_node_tags_tag_id",
168
- "def": "CREATE INDEX idx_node_tags_tag_id ON public.node_tags USING btree (tag_id)",
169
- "table": "public.node_tags",
170
- "columns": [
171
- "tag_id"
172
- ]
173
- },
174
- {
175
- "name": "idx_node_tags_unique",
176
- "def": "CREATE UNIQUE INDEX idx_node_tags_unique ON public.node_tags USING btree (node_id, tag_id)",
177
- "table": "public.node_tags",
178
- "columns": [
179
- "node_id",
180
- "tag_id"
181
- ]
182
- },
183
- {
184
- "name": "node_tags_pkey",
185
- "def": "CREATE UNIQUE INDEX node_tags_pkey ON public.node_tags USING btree (id)",
186
- "table": "public.node_tags",
187
- "columns": [
188
- "id"
189
- ]
190
- }
191
- ],
192
- "constraints": [
193
- {
194
- "name": "fk_rails_b51cdcc57f",
195
- "type": "FOREIGN KEY",
196
- "def": "FOREIGN KEY (tag_id) REFERENCES tags(id) ON DELETE CASCADE",
197
- "table": "public.node_tags",
198
- "referenced_table": "tags",
199
- "columns": [
200
- "tag_id"
201
- ],
202
- "referenced_columns": [
203
- "id"
204
- ]
205
- },
206
- {
207
- "name": "fk_rails_ebc9aafd9f",
208
- "type": "FOREIGN KEY",
209
- "def": "FOREIGN KEY (node_id) REFERENCES nodes(id) ON DELETE CASCADE",
210
- "table": "public.node_tags",
211
- "referenced_table": "nodes",
212
- "columns": [
213
- "node_id"
214
- ],
215
- "referenced_columns": [
216
- "id"
217
- ]
218
- },
219
- {
220
- "name": "node_tags_pkey",
221
- "type": "PRIMARY KEY",
222
- "def": "PRIMARY KEY (id)",
223
- "table": "public.node_tags",
224
- "referenced_table": "",
225
- "columns": [
226
- "id"
227
- ]
228
- }
229
- ]
230
- },
231
- {
232
- "name": "public.nodes",
233
- "type": "BASE TABLE",
234
- "comment": "Core memory storage for conversation messages and context",
235
- "columns": [
236
- {
237
- "name": "access_count",
238
- "type": "integer",
239
- "nullable": false,
240
- "default": "0",
241
- "comment": "Number of times this node has been accessed/retrieved"
242
- },
243
- {
244
- "name": "chunk_position",
245
- "type": "integer",
246
- "nullable": true,
247
- "comment": "Position within source file (0-indexed)"
248
- },
249
- {
250
- "name": "content",
251
- "type": "text",
252
- "nullable": false,
253
- "comment": "The conversation message/utterance content"
254
- },
255
- {
256
- "name": "content_hash",
257
- "type": "varchar(64)",
258
- "nullable": true,
259
- "comment": "SHA-256 hash of content for deduplication"
260
- },
261
- {
262
- "name": "created_at",
263
- "type": "timestamp with time zone",
264
- "nullable": true,
265
- "default": "CURRENT_TIMESTAMP",
266
- "comment": "When this memory was created"
267
- },
268
- {
269
- "name": "deleted_at",
270
- "type": "timestamp with time zone",
271
- "nullable": true,
272
- "comment": "Soft delete timestamp - node is considered deleted when set"
273
- },
274
- {
275
- "name": "embedding",
276
- "type": "vector(2000)",
277
- "nullable": true,
278
- "comment": "Vector embedding (max 2000 dimensions) for semantic search"
279
- },
280
- {
281
- "name": "embedding_dimension",
282
- "type": "integer",
283
- "nullable": true,
284
- "comment": "Actual number of dimensions used in the embedding vector (max 2000)"
285
- },
286
- {
287
- "name": "id",
288
- "type": "bigint",
289
- "nullable": false,
290
- "default": "nextval('nodes_id_seq'::regclass)"
291
- },
292
- {
293
- "name": "last_accessed",
294
- "type": "timestamp with time zone",
295
- "nullable": true,
296
- "default": "CURRENT_TIMESTAMP",
297
- "comment": "When this memory was last accessed"
298
- },
299
- {
300
- "name": "metadata",
301
- "type": "jsonb",
302
- "nullable": false,
303
- "default": "'{}'::jsonb",
304
- "comment": "Flexible metadata storage (memory_type, importance, source, etc.)"
305
- },
306
- {
307
- "name": "source_id",
308
- "type": "bigint",
309
- "nullable": true,
310
- "comment": "Reference to source file (for file-loaded nodes)"
311
- },
312
- {
313
- "name": "token_count",
314
- "type": "integer",
315
- "nullable": true,
316
- "comment": "Number of tokens in the content (for context budget management)"
317
- },
318
- {
319
- "name": "updated_at",
320
- "type": "timestamp with time zone",
321
- "nullable": true,
322
- "default": "CURRENT_TIMESTAMP",
323
- "comment": "When this memory was last modified"
324
- }
325
- ],
326
- "indexes": [
327
- {
328
- "name": "idx_nodes_access_count",
329
- "def": "CREATE INDEX idx_nodes_access_count ON public.nodes USING btree (access_count)",
330
- "table": "public.nodes",
331
- "columns": [
332
- "access_count"
333
- ]
334
- },
335
- {
336
- "name": "idx_nodes_active",
337
- "def": "CREATE INDEX idx_nodes_active ON public.nodes USING btree (id) WHERE (deleted_at IS NULL)",
338
- "table": "public.nodes",
339
- "columns": [
340
- "id"
341
- ]
342
- },
343
- {
344
- "name": "idx_nodes_active_with_embedding",
345
- "def": "CREATE INDEX idx_nodes_active_with_embedding ON public.nodes USING btree (id) WHERE ((deleted_at IS NULL) AND (embedding IS NOT NULL))",
346
- "table": "public.nodes",
347
- "columns": [
348
- "id"
349
- ]
350
- },
351
- {
352
- "name": "idx_nodes_content_gin",
353
- "def": "CREATE INDEX idx_nodes_content_gin ON public.nodes USING gin (to_tsvector('english'::regconfig, content))",
354
- "table": "public.nodes",
355
- "columns": [
356
- "to_tsvector"
357
- ]
358
- },
359
- {
360
- "name": "idx_nodes_content_hash_unique",
361
- "def": "CREATE UNIQUE INDEX idx_nodes_content_hash_unique ON public.nodes USING btree (content_hash)",
362
- "table": "public.nodes",
363
- "columns": [
364
- "content_hash"
365
- ]
366
- },
367
- {
368
- "name": "idx_nodes_content_trgm",
369
- "def": "CREATE INDEX idx_nodes_content_trgm ON public.nodes USING gin (content gin_trgm_ops)",
370
- "table": "public.nodes",
371
- "columns": [
372
- "content"
373
- ]
374
- },
375
- {
376
- "name": "idx_nodes_created_at",
377
- "def": "CREATE INDEX idx_nodes_created_at ON public.nodes USING btree (created_at)",
378
- "table": "public.nodes",
379
- "columns": [
380
- "created_at"
381
- ]
382
- },
383
- {
384
- "name": "idx_nodes_deleted_at",
385
- "def": "CREATE INDEX idx_nodes_deleted_at ON public.nodes USING btree (deleted_at)",
386
- "table": "public.nodes",
387
- "columns": [
388
- "deleted_at"
389
- ]
390
- },
391
- {
392
- "name": "idx_nodes_embedding",
393
- "def": "CREATE INDEX idx_nodes_embedding ON public.nodes USING hnsw (embedding vector_cosine_ops) WITH (m='16', ef_construction='64')",
394
- "table": "public.nodes",
395
- "columns": [
396
- "embedding"
397
- ]
398
- },
399
- {
400
- "name": "idx_nodes_last_accessed",
401
- "def": "CREATE INDEX idx_nodes_last_accessed ON public.nodes USING btree (last_accessed)",
402
- "table": "public.nodes",
403
- "columns": [
404
- "last_accessed"
405
- ]
406
- },
407
- {
408
- "name": "idx_nodes_metadata",
409
- "def": "CREATE INDEX idx_nodes_metadata ON public.nodes USING gin (metadata)",
410
- "table": "public.nodes",
411
- "columns": [
412
- "metadata"
413
- ]
414
- },
415
- {
416
- "name": "idx_nodes_not_deleted_created_at",
417
- "def": "CREATE INDEX idx_nodes_not_deleted_created_at ON public.nodes USING btree (created_at) WHERE (deleted_at IS NULL)",
418
- "table": "public.nodes",
419
- "columns": [
420
- "created_at"
421
- ]
422
- },
423
- {
424
- "name": "idx_nodes_source_chunk_position",
425
- "def": "CREATE INDEX idx_nodes_source_chunk_position ON public.nodes USING btree (source_id, chunk_position)",
426
- "table": "public.nodes",
427
- "columns": [
428
- "source_id",
429
- "chunk_position"
430
- ]
431
- },
432
- {
433
- "name": "idx_nodes_source_id",
434
- "def": "CREATE INDEX idx_nodes_source_id ON public.nodes USING btree (source_id)",
435
- "table": "public.nodes",
436
- "columns": [
437
- "source_id"
438
- ]
439
- },
440
- {
441
- "name": "idx_nodes_updated_at",
442
- "def": "CREATE INDEX idx_nodes_updated_at ON public.nodes USING btree (updated_at)",
443
- "table": "public.nodes",
444
- "columns": [
445
- "updated_at"
446
- ]
447
- },
448
- {
449
- "name": "nodes_pkey",
450
- "def": "CREATE UNIQUE INDEX nodes_pkey ON public.nodes USING btree (id)",
451
- "table": "public.nodes",
452
- "columns": [
453
- "id"
454
- ]
455
- }
456
- ],
457
- "constraints": [
458
- {
459
- "name": "check_embedding_dimension",
460
- "type": "CHECK",
461
- "def": "CHECK (((embedding_dimension IS NULL) OR ((embedding_dimension \u003e 0) AND (embedding_dimension \u003c= 2000))))",
462
- "table": "public.nodes",
463
- "referenced_table": "",
464
- "columns": [
465
- "embedding_dimension"
466
- ]
467
- },
468
- {
469
- "name": "fk_rails_920ad16d08",
470
- "type": "FOREIGN KEY",
471
- "def": "FOREIGN KEY (source_id) REFERENCES file_sources(id) ON DELETE SET NULL",
472
- "table": "public.nodes",
473
- "referenced_table": "file_sources",
474
- "columns": [
475
- "source_id"
476
- ],
477
- "referenced_columns": [
478
- "id"
479
- ]
480
- },
481
- {
482
- "name": "nodes_pkey",
483
- "type": "PRIMARY KEY",
484
- "def": "PRIMARY KEY (id)",
485
- "table": "public.nodes",
486
- "referenced_table": "",
487
- "columns": [
488
- "id"
489
- ]
490
- }
491
- ]
492
- },
493
- {
494
- "name": "public.robot_nodes",
495
- "type": "BASE TABLE",
496
- "comment": "Join table connecting robots to nodes (many-to-many)",
497
- "columns": [
498
- {
499
- "name": "created_at",
500
- "type": "timestamp with time zone",
501
- "nullable": true,
502
- "default": "CURRENT_TIMESTAMP"
503
- },
504
- {
505
- "name": "deleted_at",
506
- "type": "timestamp with time zone",
507
- "nullable": true,
508
- "comment": "Soft delete timestamp"
509
- },
510
- {
511
- "name": "first_remembered_at",
512
- "type": "timestamp with time zone",
513
- "nullable": true,
514
- "default": "CURRENT_TIMESTAMP",
515
- "comment": "When this robot first remembered this content"
516
- },
517
- {
518
- "name": "id",
519
- "type": "bigint",
520
- "nullable": false,
521
- "default": "nextval('robot_nodes_id_seq'::regclass)"
522
- },
523
- {
524
- "name": "last_remembered_at",
525
- "type": "timestamp with time zone",
526
- "nullable": true,
527
- "default": "CURRENT_TIMESTAMP",
528
- "comment": "When this robot last tried to remember this content"
529
- },
530
- {
531
- "name": "node_id",
532
- "type": "bigint",
533
- "nullable": false,
534
- "comment": "ID of the node being remembered"
535
- },
536
- {
537
- "name": "remember_count",
538
- "type": "integer",
539
- "nullable": false,
540
- "default": "1",
541
- "comment": "Number of times this robot has tried to remember this content"
542
- },
543
- {
544
- "name": "robot_id",
545
- "type": "bigint",
546
- "nullable": false,
547
- "comment": "ID of the robot that remembered this node"
548
- },
549
- {
550
- "name": "updated_at",
551
- "type": "timestamp with time zone",
552
- "nullable": true,
553
- "default": "CURRENT_TIMESTAMP"
554
- },
555
- {
556
- "name": "working_memory",
557
- "type": "boolean",
558
- "nullable": false,
559
- "default": "false",
560
- "comment": "True if this node is currently in the robot working memory"
561
- }
562
- ],
563
- "indexes": [
564
- {
565
- "name": "idx_robot_nodes_deleted_at",
566
- "def": "CREATE INDEX idx_robot_nodes_deleted_at ON public.robot_nodes USING btree (deleted_at)",
567
- "table": "public.robot_nodes",
568
- "columns": [
569
- "deleted_at"
570
- ]
571
- },
572
- {
573
- "name": "idx_robot_nodes_last_remembered_at",
574
- "def": "CREATE INDEX idx_robot_nodes_last_remembered_at ON public.robot_nodes USING btree (last_remembered_at)",
575
- "table": "public.robot_nodes",
576
- "columns": [
577
- "last_remembered_at"
578
- ]
579
- },
580
- {
581
- "name": "idx_robot_nodes_node_id",
582
- "def": "CREATE INDEX idx_robot_nodes_node_id ON public.robot_nodes USING btree (node_id)",
583
- "table": "public.robot_nodes",
584
- "columns": [
585
- "node_id"
586
- ]
587
- },
588
- {
589
- "name": "idx_robot_nodes_robot_id",
590
- "def": "CREATE INDEX idx_robot_nodes_robot_id ON public.robot_nodes USING btree (robot_id)",
591
- "table": "public.robot_nodes",
592
- "columns": [
593
- "robot_id"
594
- ]
595
- },
596
- {
597
- "name": "idx_robot_nodes_unique",
598
- "def": "CREATE UNIQUE INDEX idx_robot_nodes_unique ON public.robot_nodes USING btree (robot_id, node_id)",
599
- "table": "public.robot_nodes",
600
- "columns": [
601
- "robot_id",
602
- "node_id"
603
- ]
604
- },
605
- {
606
- "name": "idx_robot_nodes_working_memory",
607
- "def": "CREATE INDEX idx_robot_nodes_working_memory ON public.robot_nodes USING btree (robot_id, working_memory) WHERE (working_memory = true)",
608
- "table": "public.robot_nodes",
609
- "columns": [
610
- "robot_id",
611
- "working_memory"
612
- ]
613
- },
614
- {
615
- "name": "robot_nodes_pkey",
616
- "def": "CREATE UNIQUE INDEX robot_nodes_pkey ON public.robot_nodes USING btree (id)",
617
- "table": "public.robot_nodes",
618
- "columns": [
619
- "id"
620
- ]
621
- }
622
- ],
623
- "constraints": [
624
- {
625
- "name": "fk_rails_9b003078a8",
626
- "type": "FOREIGN KEY",
627
- "def": "FOREIGN KEY (robot_id) REFERENCES robots(id) ON DELETE CASCADE",
628
- "table": "public.robot_nodes",
629
- "referenced_table": "robots",
630
- "columns": [
631
- "robot_id"
632
- ],
633
- "referenced_columns": [
634
- "id"
635
- ]
636
- },
637
- {
638
- "name": "fk_rails_f2fc98d49e",
639
- "type": "FOREIGN KEY",
640
- "def": "FOREIGN KEY (node_id) REFERENCES nodes(id) ON DELETE CASCADE",
641
- "table": "public.robot_nodes",
642
- "referenced_table": "nodes",
643
- "columns": [
644
- "node_id"
645
- ],
646
- "referenced_columns": [
647
- "id"
648
- ]
649
- },
650
- {
651
- "name": "robot_nodes_pkey",
652
- "type": "PRIMARY KEY",
653
- "def": "PRIMARY KEY (id)",
654
- "table": "public.robot_nodes",
655
- "referenced_table": "",
656
- "columns": [
657
- "id"
658
- ]
659
- }
660
- ]
661
- },
662
- {
663
- "name": "public.robots",
664
- "type": "BASE TABLE",
665
- "comment": "Registry of all LLM robots using the HTM system",
666
- "columns": [
667
- {
668
- "name": "created_at",
669
- "type": "timestamp with time zone",
670
- "nullable": true,
671
- "default": "CURRENT_TIMESTAMP",
672
- "comment": "When the robot was first registered"
673
- },
674
- {
675
- "name": "id",
676
- "type": "bigint",
677
- "nullable": false,
678
- "default": "nextval('robots_id_seq'::regclass)"
679
- },
680
- {
681
- "name": "last_active",
682
- "type": "timestamp with time zone",
683
- "nullable": true,
684
- "default": "CURRENT_TIMESTAMP",
685
- "comment": "Last time the robot accessed the system"
686
- },
687
- {
688
- "name": "name",
689
- "type": "text",
690
- "nullable": true,
691
- "comment": "Human-readable name for the robot"
692
- }
693
- ],
694
- "indexes": [
695
- {
696
- "name": "robots_pkey",
697
- "def": "CREATE UNIQUE INDEX robots_pkey ON public.robots USING btree (id)",
698
- "table": "public.robots",
699
- "columns": [
700
- "id"
701
- ]
702
- }
703
- ],
704
- "constraints": [
705
- {
706
- "name": "robots_pkey",
707
- "type": "PRIMARY KEY",
708
- "def": "PRIMARY KEY (id)",
709
- "table": "public.robots",
710
- "referenced_table": "",
711
- "columns": [
712
- "id"
713
- ]
714
- }
715
- ]
716
- },
717
- {
718
- "name": "public.schema_migrations",
719
- "type": "BASE TABLE",
720
- "columns": [
721
- {
722
- "name": "version",
723
- "type": "varchar",
724
- "nullable": false
725
- }
726
- ],
727
- "indexes": [
728
- {
729
- "name": "schema_migrations_pkey",
730
- "def": "CREATE UNIQUE INDEX schema_migrations_pkey ON public.schema_migrations USING btree (version)",
731
- "table": "public.schema_migrations",
732
- "columns": [
733
- "version"
734
- ]
735
- }
736
- ],
737
- "constraints": [
738
- {
739
- "name": "schema_migrations_pkey",
740
- "type": "PRIMARY KEY",
741
- "def": "PRIMARY KEY (version)",
742
- "table": "public.schema_migrations",
743
- "referenced_table": "",
744
- "columns": [
745
- "version"
746
- ]
747
- }
748
- ]
749
- },
750
- {
751
- "name": "public.tags",
752
- "type": "BASE TABLE",
753
- "comment": "Unique tag names for categorization",
754
- "columns": [
755
- {
756
- "name": "created_at",
757
- "type": "timestamp with time zone",
758
- "nullable": true,
759
- "default": "CURRENT_TIMESTAMP",
760
- "comment": "When this tag was created"
761
- },
762
- {
763
- "name": "deleted_at",
764
- "type": "timestamp with time zone",
765
- "nullable": true,
766
- "comment": "Soft delete timestamp"
767
- },
768
- {
769
- "name": "id",
770
- "type": "bigint",
771
- "nullable": false,
772
- "default": "nextval('tags_id_seq'::regclass)"
773
- },
774
- {
775
- "name": "name",
776
- "type": "text",
777
- "nullable": false,
778
- "comment": "Hierarchical tag in format: root:level1:level2 (e.g., database:postgresql:timescaledb)"
779
- }
780
- ],
781
- "indexes": [
782
- {
783
- "name": "idx_tags_deleted_at",
784
- "def": "CREATE INDEX idx_tags_deleted_at ON public.tags USING btree (deleted_at)",
785
- "table": "public.tags",
786
- "columns": [
787
- "deleted_at"
788
- ]
789
- },
790
- {
791
- "name": "idx_tags_name_pattern",
792
- "def": "CREATE INDEX idx_tags_name_pattern ON public.tags USING btree (name text_pattern_ops)",
793
- "table": "public.tags",
794
- "columns": [
795
- "name"
796
- ]
797
- },
798
- {
799
- "name": "idx_tags_name_trgm",
800
- "def": "CREATE INDEX idx_tags_name_trgm ON public.tags USING gin (name gin_trgm_ops)",
801
- "table": "public.tags",
802
- "columns": [
803
- "name"
804
- ]
805
- },
806
- {
807
- "name": "idx_tags_name_unique",
808
- "def": "CREATE UNIQUE INDEX idx_tags_name_unique ON public.tags USING btree (name)",
809
- "table": "public.tags",
810
- "columns": [
811
- "name"
812
- ]
813
- },
814
- {
815
- "name": "tags_pkey",
816
- "def": "CREATE UNIQUE INDEX tags_pkey ON public.tags USING btree (id)",
817
- "table": "public.tags",
818
- "columns": [
819
- "id"
820
- ]
821
- }
822
- ],
823
- "constraints": [
824
- {
825
- "name": "tags_pkey",
826
- "type": "PRIMARY KEY",
827
- "def": "PRIMARY KEY (id)",
828
- "table": "public.tags",
829
- "referenced_table": "",
830
- "columns": [
831
- "id"
832
- ]
833
- }
834
- ]
835
- }
836
- ],
837
- "relations": [
838
- {
839
- "table": "public.node_tags",
840
- "columns": [
841
- "node_id"
842
- ],
843
- "cardinality": "zero_or_more",
844
- "parent_table": "public.nodes",
845
- "parent_columns": [
846
- "id"
847
- ],
848
- "parent_cardinality": "exactly_one",
849
- "def": "FOREIGN KEY (node_id) REFERENCES nodes(id) ON DELETE CASCADE"
850
- },
851
- {
852
- "table": "public.node_tags",
853
- "columns": [
854
- "tag_id"
855
- ],
856
- "cardinality": "zero_or_more",
857
- "parent_table": "public.tags",
858
- "parent_columns": [
859
- "id"
860
- ],
861
- "parent_cardinality": "exactly_one",
862
- "def": "FOREIGN KEY (tag_id) REFERENCES tags(id) ON DELETE CASCADE"
863
- },
864
- {
865
- "table": "public.nodes",
866
- "columns": [
867
- "source_id"
868
- ],
869
- "cardinality": "zero_or_more",
870
- "parent_table": "public.file_sources",
871
- "parent_columns": [
872
- "id"
873
- ],
874
- "parent_cardinality": "zero_or_one",
875
- "def": "FOREIGN KEY (source_id) REFERENCES file_sources(id) ON DELETE SET NULL"
876
- },
877
- {
878
- "table": "public.robot_nodes",
879
- "columns": [
880
- "robot_id"
881
- ],
882
- "cardinality": "zero_or_more",
883
- "parent_table": "public.robots",
884
- "parent_columns": [
885
- "id"
886
- ],
887
- "parent_cardinality": "exactly_one",
888
- "def": "FOREIGN KEY (robot_id) REFERENCES robots(id) ON DELETE CASCADE"
889
- },
890
- {
891
- "table": "public.robot_nodes",
892
- "columns": [
893
- "node_id"
894
- ],
895
- "cardinality": "zero_or_more",
896
- "parent_table": "public.nodes",
897
- "parent_columns": [
898
- "id"
899
- ],
900
- "parent_cardinality": "exactly_one",
901
- "def": "FOREIGN KEY (node_id) REFERENCES nodes(id) ON DELETE CASCADE"
902
- }
903
- ],
904
- "functions": [
905
- {
906
- "name": "public.array_to_halfvec",
907
- "return_type": "halfvec",
908
- "arguments": "double precision[], integer, boolean",
909
- "type": "FUNCTION"
910
- },
911
- {
912
- "name": "public.array_to_halfvec",
913
- "return_type": "halfvec",
914
- "arguments": "integer[], integer, boolean",
915
- "type": "FUNCTION"
916
- },
917
- {
918
- "name": "public.array_to_halfvec",
919
- "return_type": "halfvec",
920
- "arguments": "numeric[], integer, boolean",
921
- "type": "FUNCTION"
922
- },
923
- {
924
- "name": "public.array_to_halfvec",
925
- "return_type": "halfvec",
926
- "arguments": "real[], integer, boolean",
927
- "type": "FUNCTION"
928
- },
929
- {
930
- "name": "public.array_to_sparsevec",
931
- "return_type": "sparsevec",
932
- "arguments": "double precision[], integer, boolean",
933
- "type": "FUNCTION"
934
- },
935
- {
936
- "name": "public.array_to_sparsevec",
937
- "return_type": "sparsevec",
938
- "arguments": "integer[], integer, boolean",
939
- "type": "FUNCTION"
940
- },
941
- {
942
- "name": "public.array_to_sparsevec",
943
- "return_type": "sparsevec",
944
- "arguments": "numeric[], integer, boolean",
945
- "type": "FUNCTION"
946
- },
947
- {
948
- "name": "public.array_to_sparsevec",
949
- "return_type": "sparsevec",
950
- "arguments": "real[], integer, boolean",
951
- "type": "FUNCTION"
952
- },
953
- {
954
- "name": "public.array_to_vector",
955
- "return_type": "vector",
956
- "arguments": "double precision[], integer, boolean",
957
- "type": "FUNCTION"
958
- },
959
- {
960
- "name": "public.array_to_vector",
961
- "return_type": "vector",
962
- "arguments": "integer[], integer, boolean",
963
- "type": "FUNCTION"
964
- },
965
- {
966
- "name": "public.array_to_vector",
967
- "return_type": "vector",
968
- "arguments": "numeric[], integer, boolean",
969
- "type": "FUNCTION"
970
- },
971
- {
972
- "name": "public.array_to_vector",
973
- "return_type": "vector",
974
- "arguments": "real[], integer, boolean",
975
- "type": "FUNCTION"
976
- },
977
- {
978
- "name": "public.avg",
979
- "return_type": "halfvec",
980
- "arguments": "halfvec",
981
- "type": "a"
982
- },
983
- {
984
- "name": "public.avg",
985
- "return_type": "vector",
986
- "arguments": "vector",
987
- "type": "a"
988
- },
989
- {
990
- "name": "public.binary_quantize",
991
- "return_type": "bit",
992
- "arguments": "halfvec",
993
- "type": "FUNCTION"
994
- },
995
- {
996
- "name": "public.binary_quantize",
997
- "return_type": "bit",
998
- "arguments": "vector",
999
- "type": "FUNCTION"
1000
- },
1001
- {
1002
- "name": "public.cosine_distance",
1003
- "return_type": "float8",
1004
- "arguments": "halfvec, halfvec",
1005
- "type": "FUNCTION"
1006
- },
1007
- {
1008
- "name": "public.cosine_distance",
1009
- "return_type": "float8",
1010
- "arguments": "sparsevec, sparsevec",
1011
- "type": "FUNCTION"
1012
- },
1013
- {
1014
- "name": "public.cosine_distance",
1015
- "return_type": "float8",
1016
- "arguments": "vector, vector",
1017
- "type": "FUNCTION"
1018
- },
1019
- {
1020
- "name": "public.gin_extract_query_trgm",
1021
- "return_type": "internal",
1022
- "arguments": "text, internal, smallint, internal, internal, internal, internal",
1023
- "type": "FUNCTION"
1024
- },
1025
- {
1026
- "name": "public.gin_extract_value_trgm",
1027
- "return_type": "internal",
1028
- "arguments": "text, internal",
1029
- "type": "FUNCTION"
1030
- },
1031
- {
1032
- "name": "public.gin_trgm_consistent",
1033
- "return_type": "bool",
1034
- "arguments": "internal, smallint, text, integer, internal, internal, internal, internal",
1035
- "type": "FUNCTION"
1036
- },
1037
- {
1038
- "name": "public.gin_trgm_triconsistent",
1039
- "return_type": "char",
1040
- "arguments": "internal, smallint, text, integer, internal, internal, internal",
1041
- "type": "FUNCTION"
1042
- },
1043
- {
1044
- "name": "public.gtrgm_compress",
1045
- "return_type": "internal",
1046
- "arguments": "internal",
1047
- "type": "FUNCTION"
1048
- },
1049
- {
1050
- "name": "public.gtrgm_consistent",
1051
- "return_type": "bool",
1052
- "arguments": "internal, text, smallint, oid, internal",
1053
- "type": "FUNCTION"
1054
- },
1055
- {
1056
- "name": "public.gtrgm_decompress",
1057
- "return_type": "internal",
1058
- "arguments": "internal",
1059
- "type": "FUNCTION"
1060
- },
1061
- {
1062
- "name": "public.gtrgm_distance",
1063
- "return_type": "float8",
1064
- "arguments": "internal, text, smallint, oid, internal",
1065
- "type": "FUNCTION"
1066
- },
1067
- {
1068
- "name": "public.gtrgm_in",
1069
- "return_type": "gtrgm",
1070
- "arguments": "cstring",
1071
- "type": "FUNCTION"
1072
- },
1073
- {
1074
- "name": "public.gtrgm_options",
1075
- "return_type": "void",
1076
- "arguments": "internal",
1077
- "type": "FUNCTION"
1078
- },
1079
- {
1080
- "name": "public.gtrgm_out",
1081
- "return_type": "cstring",
1082
- "arguments": "gtrgm",
1083
- "type": "FUNCTION"
1084
- },
1085
- {
1086
- "name": "public.gtrgm_penalty",
1087
- "return_type": "internal",
1088
- "arguments": "internal, internal, internal",
1089
- "type": "FUNCTION"
1090
- },
1091
- {
1092
- "name": "public.gtrgm_picksplit",
1093
- "return_type": "internal",
1094
- "arguments": "internal, internal",
1095
- "type": "FUNCTION"
1096
- },
1097
- {
1098
- "name": "public.gtrgm_same",
1099
- "return_type": "internal",
1100
- "arguments": "gtrgm, gtrgm, internal",
1101
- "type": "FUNCTION"
1102
- },
1103
- {
1104
- "name": "public.gtrgm_union",
1105
- "return_type": "gtrgm",
1106
- "arguments": "internal, internal",
1107
- "type": "FUNCTION"
1108
- },
1109
- {
1110
- "name": "public.halfvec",
1111
- "return_type": "halfvec",
1112
- "arguments": "halfvec, integer, boolean",
1113
- "type": "FUNCTION"
1114
- },
1115
- {
1116
- "name": "public.halfvec_accum",
1117
- "return_type": "_float8",
1118
- "arguments": "double precision[], halfvec",
1119
- "type": "FUNCTION"
1120
- },
1121
- {
1122
- "name": "public.halfvec_add",
1123
- "return_type": "halfvec",
1124
- "arguments": "halfvec, halfvec",
1125
- "type": "FUNCTION"
1126
- },
1127
- {
1128
- "name": "public.halfvec_avg",
1129
- "return_type": "halfvec",
1130
- "arguments": "double precision[]",
1131
- "type": "FUNCTION"
1132
- },
1133
- {
1134
- "name": "public.halfvec_cmp",
1135
- "return_type": "int4",
1136
- "arguments": "halfvec, halfvec",
1137
- "type": "FUNCTION"
1138
- },
1139
- {
1140
- "name": "public.halfvec_combine",
1141
- "return_type": "_float8",
1142
- "arguments": "double precision[], double precision[]",
1143
- "type": "FUNCTION"
1144
- },
1145
- {
1146
- "name": "public.halfvec_concat",
1147
- "return_type": "halfvec",
1148
- "arguments": "halfvec, halfvec",
1149
- "type": "FUNCTION"
1150
- },
1151
- {
1152
- "name": "public.halfvec_eq",
1153
- "return_type": "bool",
1154
- "arguments": "halfvec, halfvec",
1155
- "type": "FUNCTION"
1156
- },
1157
- {
1158
- "name": "public.halfvec_ge",
1159
- "return_type": "bool",
1160
- "arguments": "halfvec, halfvec",
1161
- "type": "FUNCTION"
1162
- },
1163
- {
1164
- "name": "public.halfvec_gt",
1165
- "return_type": "bool",
1166
- "arguments": "halfvec, halfvec",
1167
- "type": "FUNCTION"
1168
- },
1169
- {
1170
- "name": "public.halfvec_in",
1171
- "return_type": "halfvec",
1172
- "arguments": "cstring, oid, integer",
1173
- "type": "FUNCTION"
1174
- },
1175
- {
1176
- "name": "public.halfvec_l2_squared_distance",
1177
- "return_type": "float8",
1178
- "arguments": "halfvec, halfvec",
1179
- "type": "FUNCTION"
1180
- },
1181
- {
1182
- "name": "public.halfvec_le",
1183
- "return_type": "bool",
1184
- "arguments": "halfvec, halfvec",
1185
- "type": "FUNCTION"
1186
- },
1187
- {
1188
- "name": "public.halfvec_lt",
1189
- "return_type": "bool",
1190
- "arguments": "halfvec, halfvec",
1191
- "type": "FUNCTION"
1192
- },
1193
- {
1194
- "name": "public.halfvec_mul",
1195
- "return_type": "halfvec",
1196
- "arguments": "halfvec, halfvec",
1197
- "type": "FUNCTION"
1198
- },
1199
- {
1200
- "name": "public.halfvec_ne",
1201
- "return_type": "bool",
1202
- "arguments": "halfvec, halfvec",
1203
- "type": "FUNCTION"
1204
- },
1205
- {
1206
- "name": "public.halfvec_negative_inner_product",
1207
- "return_type": "float8",
1208
- "arguments": "halfvec, halfvec",
1209
- "type": "FUNCTION"
1210
- },
1211
- {
1212
- "name": "public.halfvec_out",
1213
- "return_type": "cstring",
1214
- "arguments": "halfvec",
1215
- "type": "FUNCTION"
1216
- },
1217
- {
1218
- "name": "public.halfvec_recv",
1219
- "return_type": "halfvec",
1220
- "arguments": "internal, oid, integer",
1221
- "type": "FUNCTION"
1222
- },
1223
- {
1224
- "name": "public.halfvec_send",
1225
- "return_type": "bytea",
1226
- "arguments": "halfvec",
1227
- "type": "FUNCTION"
1228
- },
1229
- {
1230
- "name": "public.halfvec_spherical_distance",
1231
- "return_type": "float8",
1232
- "arguments": "halfvec, halfvec",
1233
- "type": "FUNCTION"
1234
- },
1235
- {
1236
- "name": "public.halfvec_sub",
1237
- "return_type": "halfvec",
1238
- "arguments": "halfvec, halfvec",
1239
- "type": "FUNCTION"
1240
- },
1241
- {
1242
- "name": "public.halfvec_to_float4",
1243
- "return_type": "_float4",
1244
- "arguments": "halfvec, integer, boolean",
1245
- "type": "FUNCTION"
1246
- },
1247
- {
1248
- "name": "public.halfvec_to_sparsevec",
1249
- "return_type": "sparsevec",
1250
- "arguments": "halfvec, integer, boolean",
1251
- "type": "FUNCTION"
1252
- },
1253
- {
1254
- "name": "public.halfvec_to_vector",
1255
- "return_type": "vector",
1256
- "arguments": "halfvec, integer, boolean",
1257
- "type": "FUNCTION"
1258
- },
1259
- {
1260
- "name": "public.halfvec_typmod_in",
1261
- "return_type": "int4",
1262
- "arguments": "cstring[]",
1263
- "type": "FUNCTION"
1264
- },
1265
- {
1266
- "name": "public.hamming_distance",
1267
- "return_type": "float8",
1268
- "arguments": "bit, bit",
1269
- "type": "FUNCTION"
1270
- },
1271
- {
1272
- "name": "public.hnsw_bit_support",
1273
- "return_type": "internal",
1274
- "arguments": "internal",
1275
- "type": "FUNCTION"
1276
- },
1277
- {
1278
- "name": "public.hnsw_halfvec_support",
1279
- "return_type": "internal",
1280
- "arguments": "internal",
1281
- "type": "FUNCTION"
1282
- },
1283
- {
1284
- "name": "public.hnsw_sparsevec_support",
1285
- "return_type": "internal",
1286
- "arguments": "internal",
1287
- "type": "FUNCTION"
1288
- },
1289
- {
1290
- "name": "public.hnswhandler",
1291
- "return_type": "index_am_handler",
1292
- "arguments": "internal",
1293
- "type": "FUNCTION"
1294
- },
1295
- {
1296
- "name": "public.inner_product",
1297
- "return_type": "float8",
1298
- "arguments": "halfvec, halfvec",
1299
- "type": "FUNCTION"
1300
- },
1301
- {
1302
- "name": "public.inner_product",
1303
- "return_type": "float8",
1304
- "arguments": "sparsevec, sparsevec",
1305
- "type": "FUNCTION"
1306
- },
1307
- {
1308
- "name": "public.inner_product",
1309
- "return_type": "float8",
1310
- "arguments": "vector, vector",
1311
- "type": "FUNCTION"
1312
- },
1313
- {
1314
- "name": "public.ivfflat_bit_support",
1315
- "return_type": "internal",
1316
- "arguments": "internal",
1317
- "type": "FUNCTION"
1318
- },
1319
- {
1320
- "name": "public.ivfflat_halfvec_support",
1321
- "return_type": "internal",
1322
- "arguments": "internal",
1323
- "type": "FUNCTION"
1324
- },
1325
- {
1326
- "name": "public.ivfflathandler",
1327
- "return_type": "index_am_handler",
1328
- "arguments": "internal",
1329
- "type": "FUNCTION"
1330
- },
1331
- {
1332
- "name": "public.jaccard_distance",
1333
- "return_type": "float8",
1334
- "arguments": "bit, bit",
1335
- "type": "FUNCTION"
1336
- },
1337
- {
1338
- "name": "public.l1_distance",
1339
- "return_type": "float8",
1340
- "arguments": "halfvec, halfvec",
1341
- "type": "FUNCTION"
1342
- },
1343
- {
1344
- "name": "public.l1_distance",
1345
- "return_type": "float8",
1346
- "arguments": "sparsevec, sparsevec",
1347
- "type": "FUNCTION"
1348
- },
1349
- {
1350
- "name": "public.l1_distance",
1351
- "return_type": "float8",
1352
- "arguments": "vector, vector",
1353
- "type": "FUNCTION"
1354
- },
1355
- {
1356
- "name": "public.l2_distance",
1357
- "return_type": "float8",
1358
- "arguments": "halfvec, halfvec",
1359
- "type": "FUNCTION"
1360
- },
1361
- {
1362
- "name": "public.l2_distance",
1363
- "return_type": "float8",
1364
- "arguments": "sparsevec, sparsevec",
1365
- "type": "FUNCTION"
1366
- },
1367
- {
1368
- "name": "public.l2_distance",
1369
- "return_type": "float8",
1370
- "arguments": "vector, vector",
1371
- "type": "FUNCTION"
1372
- },
1373
- {
1374
- "name": "public.l2_norm",
1375
- "return_type": "float8",
1376
- "arguments": "halfvec",
1377
- "type": "FUNCTION"
1378
- },
1379
- {
1380
- "name": "public.l2_norm",
1381
- "return_type": "float8",
1382
- "arguments": "sparsevec",
1383
- "type": "FUNCTION"
1384
- },
1385
- {
1386
- "name": "public.l2_normalize",
1387
- "return_type": "halfvec",
1388
- "arguments": "halfvec",
1389
- "type": "FUNCTION"
1390
- },
1391
- {
1392
- "name": "public.l2_normalize",
1393
- "return_type": "sparsevec",
1394
- "arguments": "sparsevec",
1395
- "type": "FUNCTION"
1396
- },
1397
- {
1398
- "name": "public.l2_normalize",
1399
- "return_type": "vector",
1400
- "arguments": "vector",
1401
- "type": "FUNCTION"
1402
- },
1403
- {
1404
- "name": "public.set_limit",
1405
- "return_type": "float4",
1406
- "arguments": "real",
1407
- "type": "FUNCTION"
1408
- },
1409
- {
1410
- "name": "public.show_limit",
1411
- "return_type": "float4",
1412
- "arguments": "",
1413
- "type": "FUNCTION"
1414
- },
1415
- {
1416
- "name": "public.show_trgm",
1417
- "return_type": "_text",
1418
- "arguments": "text",
1419
- "type": "FUNCTION"
1420
- },
1421
- {
1422
- "name": "public.similarity",
1423
- "return_type": "float4",
1424
- "arguments": "text, text",
1425
- "type": "FUNCTION"
1426
- },
1427
- {
1428
- "name": "public.similarity_dist",
1429
- "return_type": "float4",
1430
- "arguments": "text, text",
1431
- "type": "FUNCTION"
1432
- },
1433
- {
1434
- "name": "public.similarity_op",
1435
- "return_type": "bool",
1436
- "arguments": "text, text",
1437
- "type": "FUNCTION"
1438
- },
1439
- {
1440
- "name": "public.sparsevec",
1441
- "return_type": "sparsevec",
1442
- "arguments": "sparsevec, integer, boolean",
1443
- "type": "FUNCTION"
1444
- },
1445
- {
1446
- "name": "public.sparsevec_cmp",
1447
- "return_type": "int4",
1448
- "arguments": "sparsevec, sparsevec",
1449
- "type": "FUNCTION"
1450
- },
1451
- {
1452
- "name": "public.sparsevec_eq",
1453
- "return_type": "bool",
1454
- "arguments": "sparsevec, sparsevec",
1455
- "type": "FUNCTION"
1456
- },
1457
- {
1458
- "name": "public.sparsevec_ge",
1459
- "return_type": "bool",
1460
- "arguments": "sparsevec, sparsevec",
1461
- "type": "FUNCTION"
1462
- },
1463
- {
1464
- "name": "public.sparsevec_gt",
1465
- "return_type": "bool",
1466
- "arguments": "sparsevec, sparsevec",
1467
- "type": "FUNCTION"
1468
- },
1469
- {
1470
- "name": "public.sparsevec_in",
1471
- "return_type": "sparsevec",
1472
- "arguments": "cstring, oid, integer",
1473
- "type": "FUNCTION"
1474
- },
1475
- {
1476
- "name": "public.sparsevec_l2_squared_distance",
1477
- "return_type": "float8",
1478
- "arguments": "sparsevec, sparsevec",
1479
- "type": "FUNCTION"
1480
- },
1481
- {
1482
- "name": "public.sparsevec_le",
1483
- "return_type": "bool",
1484
- "arguments": "sparsevec, sparsevec",
1485
- "type": "FUNCTION"
1486
- },
1487
- {
1488
- "name": "public.sparsevec_lt",
1489
- "return_type": "bool",
1490
- "arguments": "sparsevec, sparsevec",
1491
- "type": "FUNCTION"
1492
- },
1493
- {
1494
- "name": "public.sparsevec_ne",
1495
- "return_type": "bool",
1496
- "arguments": "sparsevec, sparsevec",
1497
- "type": "FUNCTION"
1498
- },
1499
- {
1500
- "name": "public.sparsevec_negative_inner_product",
1501
- "return_type": "float8",
1502
- "arguments": "sparsevec, sparsevec",
1503
- "type": "FUNCTION"
1504
- },
1505
- {
1506
- "name": "public.sparsevec_out",
1507
- "return_type": "cstring",
1508
- "arguments": "sparsevec",
1509
- "type": "FUNCTION"
1510
- },
1511
- {
1512
- "name": "public.sparsevec_recv",
1513
- "return_type": "sparsevec",
1514
- "arguments": "internal, oid, integer",
1515
- "type": "FUNCTION"
1516
- },
1517
- {
1518
- "name": "public.sparsevec_send",
1519
- "return_type": "bytea",
1520
- "arguments": "sparsevec",
1521
- "type": "FUNCTION"
1522
- },
1523
- {
1524
- "name": "public.sparsevec_to_halfvec",
1525
- "return_type": "halfvec",
1526
- "arguments": "sparsevec, integer, boolean",
1527
- "type": "FUNCTION"
1528
- },
1529
- {
1530
- "name": "public.sparsevec_to_vector",
1531
- "return_type": "vector",
1532
- "arguments": "sparsevec, integer, boolean",
1533
- "type": "FUNCTION"
1534
- },
1535
- {
1536
- "name": "public.sparsevec_typmod_in",
1537
- "return_type": "int4",
1538
- "arguments": "cstring[]",
1539
- "type": "FUNCTION"
1540
- },
1541
- {
1542
- "name": "public.strict_word_similarity",
1543
- "return_type": "float4",
1544
- "arguments": "text, text",
1545
- "type": "FUNCTION"
1546
- },
1547
- {
1548
- "name": "public.strict_word_similarity_commutator_op",
1549
- "return_type": "bool",
1550
- "arguments": "text, text",
1551
- "type": "FUNCTION"
1552
- },
1553
- {
1554
- "name": "public.strict_word_similarity_dist_commutator_op",
1555
- "return_type": "float4",
1556
- "arguments": "text, text",
1557
- "type": "FUNCTION"
1558
- },
1559
- {
1560
- "name": "public.strict_word_similarity_dist_op",
1561
- "return_type": "float4",
1562
- "arguments": "text, text",
1563
- "type": "FUNCTION"
1564
- },
1565
- {
1566
- "name": "public.strict_word_similarity_op",
1567
- "return_type": "bool",
1568
- "arguments": "text, text",
1569
- "type": "FUNCTION"
1570
- },
1571
- {
1572
- "name": "public.subvector",
1573
- "return_type": "halfvec",
1574
- "arguments": "halfvec, integer, integer",
1575
- "type": "FUNCTION"
1576
- },
1577
- {
1578
- "name": "public.subvector",
1579
- "return_type": "vector",
1580
- "arguments": "vector, integer, integer",
1581
- "type": "FUNCTION"
1582
- },
1583
- {
1584
- "name": "public.sum",
1585
- "return_type": "halfvec",
1586
- "arguments": "halfvec",
1587
- "type": "a"
1588
- },
1589
- {
1590
- "name": "public.sum",
1591
- "return_type": "vector",
1592
- "arguments": "vector",
1593
- "type": "a"
1594
- },
1595
- {
1596
- "name": "public.vector",
1597
- "return_type": "vector",
1598
- "arguments": "vector, integer, boolean",
1599
- "type": "FUNCTION"
1600
- },
1601
- {
1602
- "name": "public.vector_accum",
1603
- "return_type": "_float8",
1604
- "arguments": "double precision[], vector",
1605
- "type": "FUNCTION"
1606
- },
1607
- {
1608
- "name": "public.vector_add",
1609
- "return_type": "vector",
1610
- "arguments": "vector, vector",
1611
- "type": "FUNCTION"
1612
- },
1613
- {
1614
- "name": "public.vector_avg",
1615
- "return_type": "vector",
1616
- "arguments": "double precision[]",
1617
- "type": "FUNCTION"
1618
- },
1619
- {
1620
- "name": "public.vector_cmp",
1621
- "return_type": "int4",
1622
- "arguments": "vector, vector",
1623
- "type": "FUNCTION"
1624
- },
1625
- {
1626
- "name": "public.vector_combine",
1627
- "return_type": "_float8",
1628
- "arguments": "double precision[], double precision[]",
1629
- "type": "FUNCTION"
1630
- },
1631
- {
1632
- "name": "public.vector_concat",
1633
- "return_type": "vector",
1634
- "arguments": "vector, vector",
1635
- "type": "FUNCTION"
1636
- },
1637
- {
1638
- "name": "public.vector_dims",
1639
- "return_type": "int4",
1640
- "arguments": "halfvec",
1641
- "type": "FUNCTION"
1642
- },
1643
- {
1644
- "name": "public.vector_dims",
1645
- "return_type": "int4",
1646
- "arguments": "vector",
1647
- "type": "FUNCTION"
1648
- },
1649
- {
1650
- "name": "public.vector_eq",
1651
- "return_type": "bool",
1652
- "arguments": "vector, vector",
1653
- "type": "FUNCTION"
1654
- },
1655
- {
1656
- "name": "public.vector_ge",
1657
- "return_type": "bool",
1658
- "arguments": "vector, vector",
1659
- "type": "FUNCTION"
1660
- },
1661
- {
1662
- "name": "public.vector_gt",
1663
- "return_type": "bool",
1664
- "arguments": "vector, vector",
1665
- "type": "FUNCTION"
1666
- },
1667
- {
1668
- "name": "public.vector_in",
1669
- "return_type": "vector",
1670
- "arguments": "cstring, oid, integer",
1671
- "type": "FUNCTION"
1672
- },
1673
- {
1674
- "name": "public.vector_l2_squared_distance",
1675
- "return_type": "float8",
1676
- "arguments": "vector, vector",
1677
- "type": "FUNCTION"
1678
- },
1679
- {
1680
- "name": "public.vector_le",
1681
- "return_type": "bool",
1682
- "arguments": "vector, vector",
1683
- "type": "FUNCTION"
1684
- },
1685
- {
1686
- "name": "public.vector_lt",
1687
- "return_type": "bool",
1688
- "arguments": "vector, vector",
1689
- "type": "FUNCTION"
1690
- },
1691
- {
1692
- "name": "public.vector_mul",
1693
- "return_type": "vector",
1694
- "arguments": "vector, vector",
1695
- "type": "FUNCTION"
1696
- },
1697
- {
1698
- "name": "public.vector_ne",
1699
- "return_type": "bool",
1700
- "arguments": "vector, vector",
1701
- "type": "FUNCTION"
1702
- },
1703
- {
1704
- "name": "public.vector_negative_inner_product",
1705
- "return_type": "float8",
1706
- "arguments": "vector, vector",
1707
- "type": "FUNCTION"
1708
- },
1709
- {
1710
- "name": "public.vector_norm",
1711
- "return_type": "float8",
1712
- "arguments": "vector",
1713
- "type": "FUNCTION"
1714
- },
1715
- {
1716
- "name": "public.vector_out",
1717
- "return_type": "cstring",
1718
- "arguments": "vector",
1719
- "type": "FUNCTION"
1720
- },
1721
- {
1722
- "name": "public.vector_recv",
1723
- "return_type": "vector",
1724
- "arguments": "internal, oid, integer",
1725
- "type": "FUNCTION"
1726
- },
1727
- {
1728
- "name": "public.vector_send",
1729
- "return_type": "bytea",
1730
- "arguments": "vector",
1731
- "type": "FUNCTION"
1732
- },
1733
- {
1734
- "name": "public.vector_spherical_distance",
1735
- "return_type": "float8",
1736
- "arguments": "vector, vector",
1737
- "type": "FUNCTION"
1738
- },
1739
- {
1740
- "name": "public.vector_sub",
1741
- "return_type": "vector",
1742
- "arguments": "vector, vector",
1743
- "type": "FUNCTION"
1744
- },
1745
- {
1746
- "name": "public.vector_to_float4",
1747
- "return_type": "_float4",
1748
- "arguments": "vector, integer, boolean",
1749
- "type": "FUNCTION"
1750
- },
1751
- {
1752
- "name": "public.vector_to_halfvec",
1753
- "return_type": "halfvec",
1754
- "arguments": "vector, integer, boolean",
1755
- "type": "FUNCTION"
1756
- },
1757
- {
1758
- "name": "public.vector_to_sparsevec",
1759
- "return_type": "sparsevec",
1760
- "arguments": "vector, integer, boolean",
1761
- "type": "FUNCTION"
1762
- },
1763
- {
1764
- "name": "public.vector_typmod_in",
1765
- "return_type": "int4",
1766
- "arguments": "cstring[]",
1767
- "type": "FUNCTION"
1768
- },
1769
- {
1770
- "name": "public.word_similarity",
1771
- "return_type": "float4",
1772
- "arguments": "text, text",
1773
- "type": "FUNCTION"
1774
- },
1775
- {
1776
- "name": "public.word_similarity_commutator_op",
1777
- "return_type": "bool",
1778
- "arguments": "text, text",
1779
- "type": "FUNCTION"
1780
- },
1781
- {
1782
- "name": "public.word_similarity_dist_commutator_op",
1783
- "return_type": "float4",
1784
- "arguments": "text, text",
1785
- "type": "FUNCTION"
1786
- },
1787
- {
1788
- "name": "public.word_similarity_dist_op",
1789
- "return_type": "float4",
1790
- "arguments": "text, text",
1791
- "type": "FUNCTION"
1792
- },
1793
- {
1794
- "name": "public.word_similarity_op",
1795
- "return_type": "bool",
1796
- "arguments": "text, text",
1797
- "type": "FUNCTION"
1798
- }
1799
- ],
1800
- "driver": {
1801
- "name": "postgres",
1802
- "database_version": "PostgreSQL 17.7 (Homebrew) on aarch64-apple-darwin25.1.0, compiled by Apple clang version 17.0.0 (clang-1700.4.4.1), 64-bit",
1803
- "meta": {
1804
- "current_schema": "public",
1805
- "search_paths": [
1806
- "dewayne",
1807
- "public"
1808
- ],
1809
- "dict": {
1810
- "Functions": "Stored procedures and functions"
1811
- }
1812
- }
1813
- }
1814
- }