-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
102 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# OpenAI | ||
|
||
!!! note | ||
|
||
In order to use this LLM as a Blender, we expect that you have a .env file created with all auth variables. | ||
|
||
## OpenaiLLM | ||
|
||
::: blendsql.llms.remote._openai.OpenaiLLM | ||
handler: python | ||
show_source: false | ||
|
||
### Example Usage | ||
Given the following `.env` file in the current directory: | ||
```text | ||
OPENAI_API_KEY=my_api_key | ||
``` | ||
|
||
```python | ||
from blendsql.llms import OpenaiLLM | ||
|
||
blender = OpenaiLLM("text-davinci-003", env=".") | ||
``` | ||
## AzureOpenaiLLM | ||
|
||
::: blendsql.llms.remote._openai.AzureOpenaiLLM | ||
handler: python | ||
show_source: false | ||
|
||
### Example Usage | ||
Given the following `.env` file in the current directory: | ||
```text | ||
TENANT_ID=my_tenant_id | ||
CLIENT_ID=my_client_id | ||
CLIENT_SECRET=my_client_secret | ||
``` | ||
|
||
```python | ||
from blendsql.llms import AzureOpenaiLLM | ||
|
||
blender = AzureOpenaiLLM("text-davinci-003", env=".") | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Transformers | ||
|
||
## TransformersLLM | ||
|
||
::: blendsql.llms.local._transformers.TransformersLLM | ||
handler: python | ||
show_source: false | ||
|
||
### Example Usage | ||
```python | ||
from blendsql.llms import TransformersLLM | ||
|
||
blender = TransformersLLM("openai-community/gpt2") | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
## Execute a BlendSQL Query | ||
## blend() | ||
|
||
::: blendsql.blendsql.blend | ||
handler: python | ||
show_source: false | ||
|
2 changes: 1 addition & 1 deletion
2
docs/reference/ingredients.md → docs/reference/ingredients/ingredients.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters