-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
40 changed files
with
2,667 additions
and
2,984 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.. currentmodule:: guidance | ||
|
||
.. _art_of_prompt_design: | ||
|
||
The Art of Prompt Design | ||
------------------------ | ||
|
||
These notebooks demonstrate how to design effective prompts and guidance programs, they also cover common useful | ||
design patterns. The source notebooks are `available on GitHub <https://github.com/guidance-ai/guidance/tree/master/notebooks/art_of_prompt_design>`_. | ||
|
||
|
||
.. toctree:: | ||
:glob: | ||
:maxdepth: 1 | ||
|
||
example_notebooks/art_of_prompt_design/use_clear_syntax.ipynb | ||
example_notebooks/art_of_prompt_design/prompt_boundaries_and_token_healing.ipynb | ||
example_notebooks/art_of_prompt_design/tool_use.ipynb | ||
example_notebooks/art_of_prompt_design/react.ipynb | ||
example_notebooks/art_of_prompt_design/rag.ipynb |
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,21 @@ | ||
.. currentmodule:: guidance | ||
|
||
.. _tutorials: | ||
|
||
Tutorials | ||
---------------- | ||
|
||
These notebooks demonstrate various features of `guidance``. The source notebooks | ||
are `available on GitHub <https://github.com/guidance-ai/guidance/tree/master/notebooks/api_examples>`_. | ||
|
||
|
||
.. toctree:: | ||
:glob: | ||
:maxdepth: 1 | ||
|
||
example_notebooks/tutorials/intro_to_guidance.ipynb | ||
example_notebooks/tutorials/token_healing.ipynb | ||
example_notebooks/tutorials/regex_constraints.ipynb | ||
example_notebooks/tutorials/guidance_acceleration.ipynb | ||
example_notebooks/tutorials/code_generation.ipynb | ||
example_notebooks/tutorials/chat.ipynb |
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 |
---|---|---|
@@ -1,12 +1,16 @@ | ||
from ._model import Model, Chat | ||
from .vertexai._vertexai import VertexAI, VertexAIChat, VertexAICompletion, VertexAIInstruct | ||
from ._azure_openai import AzureOpenAI, AzureOpenAIChat, AzureOpenAICompletion, AzureOpenAIInstruct | ||
from ._openai import OpenAI, OpenAIChat, OpenAIInstruct, OpenAICompletion | ||
from ._model import Model, Instruct, Chat | ||
|
||
# local models | ||
from .transformers._transformers import Transformers, TransformersChat | ||
from .llama_cpp import LlamaCpp, LlamaCppChat, MistralInstruct, MistralChat | ||
from ._mock import Mock, MockChat | ||
from ._lite_llm import LiteLLMChat, LiteLLMInstruct, LiteLLMCompletion | ||
from ._cohere import CohereCompletion, CohereInstruct | ||
from . import transformers | ||
from ._anthropic import AnthropicChat | ||
|
||
# remote models | ||
from ._remote import Remote | ||
from .vertexai._vertexai import VertexAI, VertexAIChat, VertexAICompletion, VertexAIInstruct | ||
from ._azure_openai import AzureOpenAI, AzureOpenAIChat, AzureOpenAICompletion, AzureOpenAIInstruct | ||
from ._openai import OpenAI, OpenAIChat, OpenAIInstruct, OpenAICompletion | ||
from ._lite_llm import LiteLLM, LiteLLMChat, LiteLLMInstruct, LiteLLMCompletion | ||
from ._cohere import Cohere,CohereCompletion, CohereInstruct | ||
from ._anthropic import Anthropic, AnthropicChat | ||
from ._googleai import GoogleAI, GoogleAIChat |
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
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
Oops, something went wrong.