## JigsawStack 🧩

<br />

[JigsawStack](https://jigsawstack.com/) is a powerful AI SDK designed to integrate into any backend, automating tasks such as web scraping, Optical Character Recognition (OCR), translation, and more, using 
Large Language Models (LLMs). By plugging JigsawStack into your existing application infrastructure, you can offload the heavy lifting and focus on building.

The [JigsawStack Prompt Engine]() is a feature that allows you to not only leverage LLMs but automatically choose the best LLM for every one of your prompts, delivering fast inference speed and performance
powered by Groq with features including:

- **Mixture-of-Agents (MoA) Approach:** Automatically selects optimized LLMs for your task, combining outputs for higher quality and faster results.
- **Prompt Caching:** Optimizes performance for repeated prompt runs.
- **Automatic Prompt Optimization:** Improves performance without manual intervention.
- **Response Schema Validation:** Ensures accuracy and consistency in outputs.

The Propt Engine also comes with a built-in prompt guard feature via Llama Guard 3 powered by Groq, which helps prevent prompt injection and a wide range of unsafe categories when activated, such as:
- Privacy Protection
- Hate Speech Filtering
- Sexual Content Blocking
- Election Misinformation Prevention
- Code Interpreter Abuse Protection
- Unauthorized Professional Advice Prevention

<br />

To get started, refer to the JigsawStack documentation [here](https://docs.jigsawstack.com/integration/groq) and learn how to set up your Prompt 
Engine [here](https://github.com/groq/groq-api-cookbook/tree/main/tutorials/jigsawstack-prompt-engine).

---

## Script: Code Examples (ts)