-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enhance Azure AI support and docs consistency ✨
- Loading branch information
Showing
5 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
script({ | ||
model: "azure_serverless_models:AI21-Jamba-1-5-Large-etzun", | ||
files: "docs/src/content/docs/reference/**/*.{md,mdx}", | ||
title: "check consistency", | ||
system: ["system.assistant", "system.annotations"], | ||
}) | ||
|
||
const files = env.files | ||
.slice() | ||
.filter((f) => !!f.content && f.content.length < 30000) // avoid massive autogenerated files | ||
.sort((l, r) => l.content.length - r.content.length) // for rendering purposes | ||
|
||
console.log( | ||
files | ||
.map((file) => `${file.filename}: ${(file.content.length / 1e3) | 0}kb`) | ||
.join("\n") | ||
) | ||
def("DOC", files) | ||
|
||
$` | ||
You are a technical documentation expert. | ||
- Analyze the consistency, grammar, spell checking, writing quality of the content in DOC | ||
- Analyze the consistency of all code snippets | ||
- Report all issues using annotation format for all file. Be systematic and consistent in your analysis. | ||
` |
This file contains 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