feat(codegen): generate embedder config reference for CLI docs#940
Merged
pyramation merged 1 commit intomainfrom Mar 31, 2026
Merged
feat(codegen): generate embedder config reference for CLI docs#940pyramation merged 1 commit intomainfrom
pyramation merged 1 commit intomainfrom
Conversation
Add a one-time embedder configuration skill reference (embedder.md) that is generated alongside context.md, auth.md, and config.md when any table in the schema has Vector fields. Includes two examples: - Ollama with nomic-embed-text on localhost (open-source) - OpenAI with API key Supports both single-target (generateSkills) and multi-target (generateMultiTargetSkills) codegen paths.
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a one-time
embedder.mdskill reference to the CLI docs generator, produced alongside the existingcontext.md,auth.md, andconfig.mdinfrastructure references. The reference is only generated when any table in the schema has Vector fields (detected viacategorizeSpecialFieldswithcategory === 'embedding').Both codegen paths are updated:
generateSkills(single-target CLIs)generateMultiTargetSkills(multi-target CLIs likecsdk)The generated reference includes two examples:
Review & Testing Checklist for Human
openaias a supported provider andembedder.apiKeyas a config key, buttemplates/embedder.tsonly handlesollamainbuildEmbedder()andEmbedderConfighas noapiKeyfield. Decide whether these examples should be aspirational or removed until runtime support lands.embedder.mdappears exactly once in the skill references directory, not duplicated per-table.tables[0]access in single-target path: WhenhasEmbeddingsis true,tables[0]is used for the example command. This should always be safe (embedding implies ≥1 table), but worth a glance.Notes
Link to Devin session: https://app.devin.ai/sessions/dadc6f4634e844739846793b8c75ca86
Requested by: @pyramation