Skip to content

Commit cd0fe83

Browse files
committed
Replace CLI codegen references with @constructive-io/graphql-codegen package + skill links
1 parent d91dc5c commit cd0fe83

3 files changed

Lines changed: 4 additions & 8 deletions

File tree

skills/constructive-ai/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Use this skill when:
2323

2424
```
2525
1. Provision → SDK creates vector(N) column + HNSW index on your table
26-
2. Codegen → cnc codegen --orm generates typed ORM with vector query support
26+
2. Codegen → @constructive-io/graphql-codegen generates typed ORM (see constructive-graphql skill)
2727
3. Embed → Application code generates embeddings (Ollama, OpenAI, etc.)
2828
4. Store → ORM or SDK inserts embeddings into the vector column
2929
5. Query → ORM queries with vectorEmbedding filter + distance ordering

skills/constructive-ai/references/rag-pipeline.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Query -> Embedding -> ORM Vector Search -> Context Retrieval -> LLM Response
1515
### Components
1616

1717
1. **Provision**: SDK creates vector columns + HNSW indexes on your tables
18-
2. **Codegen**: `cnc codegen --orm` generates typed ORM with vector query support
18+
2. **Codegen**: `@constructive-io/graphql-codegen` generates typed ORM with vector query support (see `constructive-graphql` skill — [codegen.md](../../constructive-graphql/references/codegen.md))
1919
3. **Ingestion**: Embed documents with Ollama, store via ORM
2020
4. **Retrieval**: ORM `vectorEmbedding` filter + distance ordering
2121
5. **Generation**: Feed retrieved context to LLM for response
@@ -70,11 +70,7 @@ await db.index.create({
7070

7171
## Step 2: Generate ORM
7272

73-
```bash
74-
cnc codegen --orm --react-query
75-
```
76-
77-
This generates typed ORM methods including vector search support. See `constructive-graphql` skill ([codegen.md](../../constructive-graphql/references/codegen.md)) for full setup.
73+
Use `@constructive-io/graphql-codegen` to generate a typed ORM client with vector search support (ORM and React Query hooks are both available). See the `constructive-graphql` skill ([codegen.md](../../constructive-graphql/references/codegen.md)) for full setup and options.
7874

7975
---
8076

skills/constructive-graphql/references/search-rag.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Use the codegen'd ORM to build Retrieval-Augmented Generation (RAG) pipelines. T
66

77
1. **Vector column** provisioned on your table (via `@constructive-io/sdk` — see `constructive-ai` skill)
88
2. **HNSW index** created on the embedding column
9-
3. **Codegen'd SDK** generated with `cnc codegen --orm`
9+
3. **Codegen'd SDK** generated via `@constructive-io/graphql-codegen` (see `constructive-graphql` skill — [codegen.md](./codegen.md))
1010
4. **Ollama** (or another provider) running for embeddings and chat
1111

1212
## Vector Search via ORM

0 commit comments

Comments
 (0)