-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
split docs/produtct dependencies #621
Changes from all commits
2139bcd
5b8345e
fd7731e
b3fd339
ee36074
7c8d065
96f0f74
29ac4dc
e6f60b9
90dde36
f9f99af
48ebef7
d6abf83
ba9327e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,10 +84,10 @@ | |
-rmo, --remove-out remove output folder if it exists | ||
--cli <string> override path to the cli | ||
-tp, --test-provider <string> test provider | ||
-td, --test-delay <string> delay between tests in seconds | ||
--no-cache disable LLM result cache | ||
-v, --verbose verbose output | ||
-pv, --promptfoo-version [version] promptfoo version, default is ^0.75.2 | ||
-pv, --promptfoo-version [version] promptfoo version, default is 0.78.0 | ||
-os, --out-summary <file> append output summary in file | ||
-h, --help display help for command | ||
``` | ||
|
@@ -291,11 +291,11 @@ | |
Options: | ||
-h, --help display help for command | ||
|
||
Commands: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The command usage for
|
||
fence <language> Extracts a code fenced regions of the given type | ||
fence <language> <file> Extracts a code fenced regions of the given type | ||
pdf <file> Parse a PDF into text | ||
docx <file> Parse a DOCX into texts | ||
html-to-text [file] Parse an HTML file into text | ||
html-to-text <file> Parse an HTML file into text | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The command usage for
|
||
code <file> [query] Parse code using tree sitter and executes a | ||
query | ||
tokens [options] <files...> Count tokens in a set of files | ||
|
@@ -305,7 +305,7 @@ | |
### `parse fence` | ||
|
||
``` | ||
Usage: genaiscript parse fence [options] <language> | ||
Usage: genaiscript parse fence [options] <language> <file> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The command usage for
|
||
|
||
Extracts a code fenced regions of the given type | ||
|
||
|
@@ -338,7 +338,7 @@ | |
### `parse html-to-text` | ||
|
||
``` | ||
Usage: genaiscript parse html-to-text [options] [file] | ||
Usage: genaiscript parse html-to-text [options] <file> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The command usage for
|
||
|
||
Parse an HTML file into text | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,6 +79,14 @@ | |
const data = await workspace.readJSON("data.json") | ||
``` | ||
|
||
### `readXML` | ||
|
||
Reads the content of a file as XML. | ||
|
||
```ts | ||
const data = await workspace.readXML("data.xml") | ||
``` | ||
Check notice on line 88 in docs/src/content/docs/reference/scripts/files.md GitHub Actions / build
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A new
|
||
|
||
### `writeText` | ||
|
||
Writes text to a file, relative to the workspace root. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,10 +100,21 @@ | |
|
||
## XML | ||
|
||
The `parsers.XML` function parses for the [XML format](https://en.wikipedia.org/wiki/XML). | ||
|
||
```js | ||
const res = parsers.XML("<xml></xml>") | ||
const res = parsers.XML('<xml attr="1"><child /></xml>') | ||
``` | ||
|
||
Attribute names are prepended with "@_". | ||
|
||
```json | ||
{ | ||
"xml": { | ||
"@_attr": "1", | ||
"child": {} | ||
} | ||
} | ||
Check notice on line 117 in docs/src/content/docs/reference/scripts/parsers.md GitHub Actions / build
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The code fence around the JSON example should be
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The example provided for
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
|
||
``` | ||
|
||
## front matter | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The option name
--promptfoo-version
seems incorrect. It should likely be--prompt-version
.