1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
//! # Models
//!
//! ### Users
//!
//! **Note:** Some of the database models, particularily those around AI and any
//! models associated with them had to be lifted up to the main Conundrum
//! package. It hurts my soul deep down to leave logic distributed like this,
//! but the only alternative was to lift up the entire database package, which
//! may have been the best approach from the beginning, but there's no way I'm
//! doing that without AI to rewrite all the imports.
//!
//! For users of varying technical backgrounds, this is likely where you'll
//! want to start if you're vibe-coding your front-end. These modules contain
//! all of the models you have access to in your database, from which your
//! front-end can pull and store information. Everything from academic results,
//! to your personal pet have a structured, graph-centered data model that
//! allows AI to take advantage of several approaches to information retrieval
//! simultaneously.
//!
//! Where applications like openclaw take advantage of file-system based agent
//! descriptions, Conundrum provides a sort of 'notepad' for AI attached to many
//! of the models in your database. This should hopefully lead to the retrieval
//! of not only relevant information, but relevant agent memory at the right
//! times as orchestrated by the graph architecture, allowing much smaller
//! context windows than other approaches.
//!
//! Think about the way humans retrieve information: When you recall an event,
//! say 'a party with Steve', and somebody asks what time Steve left, you might
//! recall a dozen small, seemingly insignificant facts about the party before
//! you reach a recollection of what time Steve left. In that same way, we can
//! provide a notepad attached to many of the significant people, places and
//! things in a user's life that AI can use to write down these small details,
//! stored and retrieved right alongside the information that it's referencing.
//! As you, the user are much more likely to rememeber the large facts in the
//! long-term, even local AI should have no problem ballparking an approximation
//! to get within a single graph query away from the model containing as close
//! to an exact answer as exists within the user's knowledge base.
//!
//! While this is obviously useful in a general, life management context, the
//! academic potential is significant as well as these 'notepads' are context
//! aware in the sense that a model is not given the same instructions for all
//! notepads. A model should know to treat the notepad on a `MajorLifeEvent`
//! similary to the 'party with Steve', as it should know to treat the notepad
//! on a notebook file more academically, perhaps keeping a log of correlations
//! found with other data.
//!
//! ### Patterns
//!
//! #### Entities & Models
//!
//! A 'model' is more of a composed instance, an 'entity' of the same name is
//! that model in the form as close to how it appears in the database as
//! possible. In general, 'models' are more usable, but 'entities' are what
//! your dashboard will display (if you're using the default Conundrum
//! dashboard).
//!
//! If you're vibe-coding your front-end, it's important to note this
//! distinction as what AI will "see" will be a combination of these `entities`,
//! and a big part of what makes Conundrum capable is your ability to annotate
//! these entities directly within the dashboard, providing AI with
//! context-specific notes. Eventually tools will be available to handle this
//! via a prompt, but this direct access will always be available as part of the
//! default Conundrum dashboard.
//!
//! #### File Primitives
//!
//! These kind of wrap typical shapes like binary or text based files, as the
//! fields appear repeatedly. The `XYWVectorModel` is the same as `XYZModel`,
//! apart from the vector field. This is just because some items, like an image,
//! don't make sense to chunk the same way the text extracted from a pdf does.