Skip to content

Commit 61327b5

Browse files
committed
#7233 3 queries in action
1 parent f74ec5f commit 61327b5

1 file changed

Lines changed: 72 additions & 0 deletions

File tree

learn/blog/ai-native-platform-answers-questions.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,78 @@ We call this the "JSON Blueprint" advantage. For an AI, this is its native langu
6464

6565
Finally, the platform's unique multi-threaded architecture, where the application, VDOM, and data logic all run in separate web workers, provides the perfect environment for AI-driven development. Heavy operations, like asking an AI to generate a complex component or process a large amount of data, can be offloaded to a worker without ever blocking the main UI thread. This ensures the user experience remains fluid and responsive, no matter what the AI is doing in the background.
6666

67+
### A Query in Action: Understanding Reactivity
68+
69+
Talk is cheap. Let's see what happens when we ask the platform to explain its own reactivity model. We'll run the same query three times, asking for a guide, a blog post, and the source code.
70+
71+
**First, we ask for a high-level guide:**
72+
73+
```bash readonly
74+
> npm run ai:query -- -q "reactivity" -t guide
75+
76+
Querying for: "reactivity" (type: guide)...
77+
78+
79+
Most relevant source files (by weighted score):
80+
- /Users/Shared/github/neomjs/neo/learn/guides/fundamentals/ConfigSystemDeepDive.md (Score: 458)
81+
- /Users/Shared/github/neomjs/neo/learn/guides/datahandling/Records.md (Score: 454)
82+
- /Users/Shared/github/neomjs/neo/learn/guides/datahandling/Collections.md (Score: 353)
83+
- /Users/Shared/github/neomjs/neo/learn/guides/fundamentals/DeclarativeComponentTreesVsImperativeVdom.md (Score: 245)
84+
- /Users/Shared/github/neomjs/neo/learn/guides/datahandling/StateProviders.md (Score: 239)
85+
- /Users/Shared/github/neomjs/neo/learn/guides/uibuildingblocks/CustomComponents.md (Score: 89)
86+
- /Users/Shared/github/neomjs/neo/learn/guides/userinteraction/events/CustomEvents.md (Score: 82)
87+
- /Users/Shared/github/neomjs/neo/learn/guides/uibuildingblocks/WorkingWithVDom.md (Score: 82)
88+
- /Users/Shared/github/neomjs/neo/learn/guides/fundamentals/ExtendingNeoClasses.md (Score: 65)
89+
- /Users/Shared/github/neomjs/neo/learn/guides/fundamentals/DeclarativeVDOMWithEffects.md (Score: 48)
90+
- /Users/Shared/github/neomjs/neo/learn/guides/uibuildingblocks/StylingAndTheming.md (Score: 34)
91+
92+
Top result: /Users/Shared/github/neomjs/neo/learn/guides/fundamentals/ConfigSystemDeepDive.md
93+
```
94+
95+
The system immediately points us to the primary guide for the config system, which is the heart of reactivity in Neo.mjs.
96+
97+
**Next, let's ask for a more narrative explanation from the blog:**
98+
99+
```bash readonly
100+
> npm run ai:query -- -q "reactivity" -t blog
101+
102+
Querying for: "reactivity" (type: blog)...
103+
104+
105+
Most relevant source files (by weighted score):
106+
- /Users/Shared/github/neomjs/neo/learn/blog/v10-deep-dive-reactivity.md (Score: 3175)
107+
- /Users/Shared/github/neomjs/neo/learn/blog/v10-deep-dive-state-provider.md (Score: 447)
108+
- /Users/Shared/github/neomjs/neo/learn/blog/v10-deep-dive-functional-components.md (Score: 263)
109+
- /Users/Shared/github/neomjs/neo/learn/blog/v10-post1-love-story.md (Score: 152)
110+
- /Users/Shared/github/neomjs/neo/learn/blog/v10-deep-dive-vdom-revolution.md (Score: 118)
111+
- /Users/Shared/github/neomjs/neo/learn/blog/benchmarking-frontends-2025.md (Score: 81)
112+
113+
Top result: /Users/Shared/github/neomjs/neo/learn/blog/v10-deep-dive-reactivity.md
114+
```
115+
116+
As expected, it returns the specific blog post dedicated to a deep dive on reactivity, with a massive score indicating high relevance.
117+
118+
**Finally, let's find the source of truth:**
119+
120+
```bash readonly
121+
> npm run ai:query -- -q "reactivity" -t src
122+
123+
Querying for: "reactivity" (type: src)...
124+
125+
126+
Most relevant source files (by weighted score):
127+
- /Users/Shared/github/neomjs/neo/src/core/Base.mjs (Score: 92)
128+
- /Users/Shared/github/neomjs/neo/src/core/Effect.mjs (Score: 13)
129+
- /Users/Shared/github/neomjs/neo/src/state/Provider.mjs (Score: 10)
130+
- /Users/Shared/github/neomjs/neo/src/button/Effect.mjs (Score: 9)
131+
- /Users/Shared/github/neomjs/neo/src/core/Config.mjs (Score: 8)
132+
- /Users/Shared/github/neomjs/neo/src/Neo.mjs (Score: 6)
133+
134+
Top result: /Users/Shared/github/neomjs/neo/src/core/Base.mjs
135+
```
136+
137+
Perfect. The query engine correctly identifies `src/core/Base.mjs` as the epicenter of the reactivity system, where the config hooks are implemented. This single query gives a developer the conceptual guide, the narrative context, and the core implementation file in seconds.
138+
67139
## What This Means for Developers & AI Tools
68140

69141
This AI-native architecture isn't just a theoretical advantage; it fundamentally changes the daily workflow for the better.

0 commit comments

Comments
 (0)