genaiscript

1.32.0 • Public • Published

GenAIScript

Scripting environment with convinient tooling for file ingestion, prompt development and structured data extraction.

// define the context
def("FILE", env.files, { endsWith: ".pdf" })
// define the data
const chema = defSchema("DATA", 
  { type: "array", items: { type: "string" } })
// define the task
$`Analyze FILE and
  extract titles to JSON compliant with ${schema}.`

Contributing

We accept contributions! Checkout the CONTRIBUTING page for details and developer setup.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

Package Sidebar

Install

npm i genaiscript

Weekly Downloads

236

Version

1.32.0

License

MIT

Unpacked Size

11.4 MB

Total Files

71

Last publish

Collaborators

  • genaiscript