Skip to content

manekinekko/genaiscript

 
 

Repository files navigation

GenAIScript logo a yellow square with genai text

GenAIScript

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

// metadata and model configuration
script({ title: "Title Extractor", model: "gpt4" })
// define the context
def("FILE", env.files, { endsWith: ".pdf" })
// define the data
const schema = 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.

About

Generative AI Scripting

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 62.2%
  • TypeScript 29.6%
  • JavaScript 6.0%
  • Bicep 1.6%
  • TLA 0.4%
  • Gherkin 0.2%