Skip to content

Commit

Permalink
New docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ddebowczyk committed Jun 19, 2024
1 parent 83fc416 commit 02d0157
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
9 changes: 2 additions & 7 deletions docs_mintlify/concepts/overview.mdx
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
## What is Instructor?

Instructor is a library that allows you to extract structured, validated data from multiple types of inputs:

- text,
- images,
- or OpenAI style chat sequence arrays.

Instructor is powered by Large Language Models (LLMs).
Instructor is a library that allows you to get structured, validated data from multiple types of inputs: text,
chat messages, or images. It is powered by Large Language Models (LLMs).

The library is inspired by the [Instructor](https://jxnl.github.io/instructor/) for Python created by [Jason Liu](https://twitter.com/jxnlco).

Expand Down
11 changes: 7 additions & 4 deletions docs_mintlify/concepts/why.mdx
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
## Why use Instructor?
---
title: Why use Instructor?
description: 'Key capabilities of Instructor'
---


Our library introduces three key enhancements:

- **Response Mode:** Specify a PHP model to streamline data extraction.
- **Validation:** Validates response generated by LLM.
- **Max Retries:** Set your desired number of retry attempts for requests.
- **Response Model:** Specify a data model to be returned by LLM to simplify your code.
- **Validation:** Automatically validate response generated by LLM before you start using it.
- **Max Retries:** Automated retry attempts for invalid responses.


## A Glimpse into Instructor's Capabilities
Expand Down
7 changes: 5 additions & 2 deletions docs_mintlify/essentials/installation.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
## Installation
---
title: Installation
description: 'Installing Instructor via Composer'
---

Installing Instructor is simple. Run following command in your terminal, and you're on your way to a smoother data handling experience!
Run following command in your terminal, and you're on your way to a smoother data handling experience!

```bash
composer install cognesy/instructor-php
Expand Down
4 changes: 2 additions & 2 deletions docs_mintlify/llm_providers.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Supported LLM Providers
description: 'Instructor support a number of LLM API providers via a set of preconfigured clients.'
title: LLM API Providers
description: 'Instructor supports a number of LLM API providers via a set of preconfigured clients.'
---

Only tested providers with examples are listed here.
Expand Down

0 comments on commit 02d0157

Please sign in to comment.