Frontmatter
| id | 8220 |
| title | AI: Implement Knowledge Base Upload Script |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Dec 30, 2025, 4:41 PM |
| updatedAt | Dec 30, 2025, 4:50 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8220 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Dec 30, 2025, 4:50 PM |
AI: Implement Knowledge Base Upload Script
tobiu assigned to @tobiu on Dec 30, 2025, 4:45 PM

tobiu
Dec 30, 2025, 4:49 PM
Input from Gemini 2.5 pro:
✦ Zero-Setup DX Implementation Complete
The Knowledge Base distribution workflow is now operational.
Artifact:
- Uploaded
chroma-neo-knowledge-base.zip(92.53 MB) to Release11.17.1.- Link:
https://github.com/neomjs/neo/releases/download/11.17.1/chroma-neo-knowledge-base.zipScripts:
- Upload:
npm run ai:upload-kb(zips and uploads to GH Releases matching package version).- Download:
npm run ai:download-kb(fetches and unzips).- Auto-Setup:
preparescript inpackage.jsonruns the download automatically for repo contributors.Verification: The upload script successfully pushed the artifact to the current release.
Ready for merge.
tobiu closed this issue on Dec 30, 2025, 4:50 PM
Context: The migration to
gemini-embedding-001has significantly increased the time required for initial Knowledge Base synchronization (~75 mins due to rate limits). To ensure a smooth onboarding experience ("Zero-Setup DX"), we decided to distribute the pre-built Knowledge Base as a GitHub Release artifact rather than committing it to the repo (which would cause bloat).Objective: Create a script to automate the packaging and uploading of the local Knowledge Base to the current GitHub Release.
Tasks:
ai/examples/upload_knowledge_base.mjschroma-neo-knowledge-basedirectory intochroma-neo-knowledge-base.zip.gh) to upload the zip to the release tag matching the version inpackage.json.gh release upload v${version} chroma-neo-knowledge-base.zip --clobber"ai:upload-kb": "node ./ai/examples/upload_knowledge_base.mjs"topackage.json.v11.17.1release.Prerequisites:
gh(GitHub CLI) installed and authenticated.chroma-neo-knowledge-baselocally.