Skip to content

Commit

Permalink
creating-custom-ingredients.md
Browse files Browse the repository at this point in the history
  • Loading branch information
parkervg committed Feb 26, 2024
1 parent 6ec14ad commit 61fe0ff
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
23 changes: 23 additions & 0 deletions docs/reference/ingredients/creating-custom-ingredients.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Creating Custom BlendSQL Ingredients

All the built-in LLM ingredients inherit from the base classes `QAIngredient`, `MapIngredient`, and `JoinIngredient`.

These are intended to be helpful abstractions, so that the user can easily implement their own functions to run within a BlendSQL script.

## QAIngredient

::: blendsql.ingredients.ingredient.QAIngredient.run
handler: python
show_source: true

## MapIngredient

::: blendsql.ingredients.ingredient.MapIngredient.run
handler: python
show_source: true

## JoinIngredient

::: blendsql.ingredients.ingredient.JoinIngredient.run
handler: python
show_source: true
8 changes: 5 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ nav:
- Execute a BlendSQL Query: reference/execute-blendsql.md
- Ingredients:
- reference/ingredients/ingredients.md
- MapIngredient: reference/ingredients/map-ingredient.md
- QAIngredient: reference/ingredients/qa-ingredient.md
- JoinIngredient: reference/ingredients/join-ingredient.md
- Creating Custom Ingredients: reference/ingredients/creating-custom-ingredients.md
- Built-in:
- MapIngredient: reference/ingredients/map-ingredient.md
- QAIngredient: reference/ingredients/qa-ingredient.md
- JoinIngredient: reference/ingredients/join-ingredient.md
- Blenders:
- reference/blenders/blenders.md
- OpenAI: reference/blenders/openai.md
Expand Down

0 comments on commit 61fe0ff

Please sign in to comment.