You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d16dc4b
Browse filesBrowse the repository at this point in the historyBrowse files
docs(skills): objectstack-ai teaches knowledge sources over business objects
Long free text only, one source per corpus with sourceIds, attachment text
through a text field. One eval case; the token ratchet row follows the
measurement.
Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP
Co-authored-by: Claude <noreply@anthropic.com>
docs(skills): `objectstack-ai` teaches knowledge sources over business objects, not only a document library
6
+
7
+
Clause-②: no
8
+
Metadata-protocol: none
9
+
10
+
`skills/objectstack-ai` § Knowledge Sources (RAG) gains three rules, one example each:
11
+
12
+
-**Long free text only.**`content` lists prose fields (an article body, a ticket's `description`, a note). Numbers, dates, statuses and short names stay out, and counts and filters go to the record tools.
13
+
-**One source per corpus.** A skill's `instructions` say which source to pass in `sourceIds`, the argument of `search_knowledge`; omitted, every exposed source is scanned.
14
+
-**Attachment text goes through a field.** No source reads a file, and a `file` field in `content` adds no file text: write the extracted text to a `textarea` field and list that field.
Copy file name to clipboardExpand all lines: skills/objectstack-ai/SKILL.md
+19-3Lines changed: 19 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -258,7 +258,7 @@ object or field, when you may not search that object or query a field it reads.
258
258
|`adapter`| Optional store id (`pgvector`, `turso`, `memory`). Omitted: the deployment's store (`pgvector` on PostgreSQL, `turso` otherwise), else the only one registered; several and none the deployment's is refused, naming them |
259
259
|`source.kind`|`'object'`, the one kind |
260
260
|`source.object`| The object whose records are indexed |
261
-
|`source.content`| Non-empty list of the fields whose text is indexed, in order. `'*'` is refused: it would also send fields added later. Meaningful text only, never ids or system fields|
261
+
|`source.content`| Non-empty list of the fields whose text is indexed, in order. `'*'` is refused: it would also send fields added later |
262
262
|`source.metadataFields`| Fields kept for search-time filtering (`status`, `owner_id`, `tags`) |
263
263
|`source.where`| ObjectQL `where`: keeps drafts and archived rows out |
264
264
|`source.split`| How documents are cut into passages (below) |
@@ -270,7 +270,7 @@ Retired in 19, each refused with its fix: `id` (use `name`), `contentFields`
270
270
deployment configures one embedder), `vectorStore` (the store is `adapter`),
| Retired key | Removed in 17, tombstone gone in 18 — why, and what replaces it |
462
478
|:--|:--|
463
479
|`agent.tools`| The inline slot resolved names against the *full* registry with no surface check. Not a rename: the strict schema refuses the key as unknown; re-declare each tool in a `defineSkill` under the stack's `skills` (ADR-0064) |
464
-
|`agent.knowledge`| Declaring sources/indexes on an agent never scoped retrieval — `search_knowledge` takes `sourceIds` from the model's tool-call arguments. Restrict on the knowledge source (`aiExposed`, `source.where`); describe intended grounding in `instructions`|
480
+
|`agent.knowledge`| Declaring sources/indexes on an agent never scoped retrieval — `search_knowledge` takes `sourceIds` from the model's tool-call arguments. Restrict on the knowledge source (`aiExposed`, `source.where`) |
"prompt": "Our support app has `kb_article` (`title`, `body`) and `support_ticket` (`subject`, `description` as a textarea, `priority`, `status`, `amount`, and a `contract_pdf` file field holding a signed PDF). The assistant should answer from article bodies, from ticket descriptions and from what the PDFs say, and also tell us how many open tickets there are per priority. Design the knowledge sources and say how a skill should search them. None of the project's files are in this directory: write the files in your answer.",
160
+
"expected_output": "Writes two `knowledge_source` items, one per corpus (articles, tickets), each `source: { kind: 'object', … }` with an explicit `content` list of long free-text fields only: `title` / `body` for articles, `subject` / `description` for tickets. `priority`, `status` and `amount` are not in `content` (at most `metadataFields`), and the count of open tickets per priority is answered by a record tool (`aggregate_records` / `query_records`), not by `search_knowledge`. The PDF is not indexed from the `contract_pdf` file field and no `kind: 'file'` or `'http'` source is written (both retired): the extracted text is first written to a text field on the record (a `textarea`, filled by a flow, hook or import) and that field is listed in `content`. The skill's `instructions` tell the model which source to search by passing `sourceIds` to `search_knowledge`, so a question does not scan every source; no second argument shape and no `knowledge` key on the skill is invented.",
0 commit comments