-
Notifications
You must be signed in to change notification settings - Fork 51
/
mkdocs.yml
368 lines (363 loc) · 16.4 KB
/
mkdocs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
copyright: Copyright © 2023 Mirascope, Inc.
site_name: Mirascope
site_url: https://mirascope.com
site_description: Mirascope streamlines LLM development with a unified interface supporting major providers like OpenAI, Anthropic, Gemini, Mistral, and more. Build powerful AI applications faster with flexible, developer-friendly abstractions that aren't obstructions.
repo_name: mirascope
repo_url: https://github.com/Mirascope/mirascope/
strict: true
theme:
name: material
custom_dir: docs/overrides
icon:
repo: fontawesome/brands/github
logo: assets/brandmark.png
favicon: assets/favicon.png
features:
- content.tabs.link
- content.code.annotate
- content.code.copy
- content.code.link
- navigation.footer
- navigation.tabs
- navigation.tabs.sticky
- navigation.top
- navigation.sections
- search.highlight
- search.suggest
- toc.follow
language: en
palette:
- media: "(prefers-color-scheme)"
toggle:
icon: material/brightness-6
name: Switch to light mode
- media: "(prefers-color-scheme: light)"
scheme: default
primary: custom
accent: custom
toggle:
icon: material/brightness-7
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: custom
accent: custom
toggle:
icon: material/brightness-4
name: Switch to system preference
font:
text: Roboto
code: Roboto Mono
extra:
social:
- icon: fontawesome/brands/github-alt
link: https://github.com/Mirascope
- icon: fontawesome/brands/twitter
link: https://twitter.com/WilliamBakst
- icon: fontawesome/brands/linkedin
link: https://www.linkedin.com/in/wbakst/
analytics:
provider: google
property: G-DJHT1QG9GK
supported_llm_providers:
- OpenAI
- Anthropic
- Mistral
- Gemini
- Groq
- Cohere
- LiteLLM
- Azure AI
- Vertex AI
- Bedrock
prompt_writing_methods:
- shorthand
- messages
- string_template
- base_message_param
prompt_writing_method_titles:
- Shorthand
- Messages
- String Template
- BaseMessageParam
markdown_extensions:
- pymdownx.highlight:
anchor_linenums: true
- pymdownx.inlinehilite
- pymdownx.snippets
- admonition
- pymdownx.arithmatex:
generic: true
- footnotes
- pymdownx.details
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format ""
- pymdownx.tabbed:
alternate_style: true
- pymdownx.mark
- attr_list
- md_in_html
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
- pymdownx.tasklist:
custom_checkbox: true
- toc:
permalink: true
plugins:
- social
- search
- blog:
post_excerpt: required
post_readtime_words_per_minute: 265
post_url_format: "{slug}"
categories_url_format: "{slug}"
archive: false
categories_allowed:
- Tips & Inspiration
- Behind the Scenes
- Library Updates
- macros:
module_name: docs/macros
- mkdocs-jupyter:
execute: false
include_source: True
ignore: ["*.py"]
- mkdocstrings:
handlers:
python:
paths: [.]
options:
members_order: source
separate_signature: true
filters: ["!^_"]
show_root_heading: false
show_root_toc_entry: false
docstring_style: google
docstring_options:
ignore_init_summary: true
merge_init_into_class: true
show_signature_annotations: true
signature_crossrefs: true
show_symbol_type_heading: true
show_symbol_type_toc: true
extensions:
- docs/plugins/griffe_doclinks.py
import:
- https://docs.python.org/3/objects.inv
extra_css:
- "extra/tweaks.css"
validation:
omitted_files: warn
absolute_links: relative_to_docs
unrecognized_links: warn
not_found: warn
nav:
- Home: "index.md"
- Get Started:
- Welcome to Mirascope: "WELCOME.md"
- Why Use Mirascope: "WHY.md"
- Help: "HELP.md"
- Migration Guide: "MIGRATE.md"
- Contributing: "CONTRIBUTING.md"
- Tutorials:
- Getting Started:
- Quickstart: "tutorials/getting_started/quickstart.ipynb"
- Structured Outputs: "tutorials/getting_started/structured_outputs.ipynb"
- Dynamic Configuration & Chaining: "tutorials/getting_started/dynamic_configuration_and_chaining.ipynb"
- Tools & Agents: "tutorials/getting_started/tools_and_agents.ipynb"
- More Advanced:
- Text Classification: "tutorials/more_advanced/text_classification.ipynb"
- Text Translation: "tutorials/more_advanced/text_translation.ipynb"
- Text Summarization: "tutorials/more_advanced/text_summarization.ipynb"
- Search with Sources: "tutorials/more_advanced/search_with_sources.ipynb"
- LLM Validation With Retries: "tutorials/more_advanced/llm_validation_with_retries.ipynb"
- Extract from PDF: "tutorials/more_advanced/extract_from_pdf.ipynb"
- Knowledge Graph: "tutorials/more_advanced/knowledge_graph.ipynb"
- Generating Captions: "tutorials/more_advanced/generating_captions.ipynb"
- PII Scrubbing: "tutorials/more_advanced/pii_scrubbing.ipynb"
- Extraction using Vision: "tutorials/more_advanced/extraction_using_vision.ipynb"
- Code Generation and Execution: "tutorials/more_advanced/code_generation_and_execution.ipynb"
- Support Ticket Routing: "tutorials/more_advanced/support_ticket_routing.ipynb"
- Document Segmentation: "tutorials/more_advanced/document_segmentation.ipynb"
- Generating Synthetic Data: "tutorials/more_advanced/generating_synthetic_data.ipynb"
- Removing Semantic Duplicates: "tutorials/more_advanced/removing_semantic_duplicates.ipynb"
- Speech Transcription: "tutorials/more_advanced/speech_transcription.ipynb"
- Query Plan: "tutorials/more_advanced/query_plan.ipynb"
- Named Entity Recognition: "tutorials/more_advanced/named_entity_recognition.ipynb"
- o1 Style Thinking: "tutorials/more_advanced/o1_style_thinking.ipynb"
- Agents:
- Web Search Agent: "tutorials/agents/web_search_agent.ipynb"
- Qwant Search Agent With Sources: "tutorials/agents/qwant_search_agent_with_sources.ipynb"
- Blog Writing Agent: "tutorials/agents/blog_writing_agent.ipynb"
- SQL Agent: "tutorials/agents/sql_agent.ipynb"
- Localized Agent: "tutorials/agents/localized_agent.ipynb"
- Local Chat with Codebase: "tutorials/agents/local_chat_with_codebase.ipynb"
- Documentation Agent: "tutorials/agents/documentation_agent.ipynb"
- Prompt Engineering:
- Text Based:
- Self Ask: "tutorials/prompt_engineering/text_based/self_ask.ipynb"
- Plan and Solve: "tutorials/prompt_engineering/text_based/plan_and_solve.ipynb"
- Contrastive Chain of Thought: "tutorials/prompt_engineering/text_based/contrastive_chain_of_thought.ipynb"
- Tabular Chain of Thought: "tutorials/prompt_engineering/text_based/tabular_chain_of_thought.ipynb"
- Chain of Thought: "tutorials/prompt_engineering/text_based/chain_of_thought.ipynb"
- Thread of Thought: "tutorials/prompt_engineering/text_based/thread_of_thought.ipynb"
- Rereading: "tutorials/prompt_engineering/text_based/rereading.ipynb"
- Emotion Prompting: "tutorials/prompt_engineering/text_based/emotion_prompting.ipynb"
- Rephrase and Respond: "tutorials/prompt_engineering/text_based/rephrase_and_respond.ipynb"
- Common Phrases: "tutorials/prompt_engineering/text_based/common_phrases.ipynb"
- Role Prompting: "tutorials/prompt_engineering/text_based/role_prompting.ipynb"
- Chaining Based:
- Self-Refine: "tutorials/prompt_engineering/chaining_based/self_refine.ipynb"
- Self-Consistency: "tutorials/prompt_engineering/chaining_based/self_consistency.ipynb"
- Reverse Chain of Thought: "tutorials/prompt_engineering/chaining_based/reverse_chain_of_thought.ipynb"
- Prompt Paraphrasing: "tutorials/prompt_engineering/chaining_based/prompt_paraphrasing.ipynb"
- Mixture of Reasoning: "tutorials/prompt_engineering/chaining_based/mixture_of_reasoning.ipynb"
- Demonstration Ensembling: "tutorials/prompt_engineering/chaining_based/demonstration_ensembling.ipynb"
- Chain of Verification: "tutorials/prompt_engineering/chaining_based/chain_of_verification.ipynb"
- Least to Most: "tutorials/prompt_engineering/chaining_based/least_to_most.ipynb"
- DiVeRSe: "tutorials/prompt_engineering/chaining_based/diverse.ipynb"
- Decomposed Prompting: "tutorials/prompt_engineering/chaining_based/decomposed_prompting.ipynb"
- System to Attention (S2A): "tutorials/prompt_engineering/chaining_based/system_to_attention.ipynb"
- Step-back Prompting: "tutorials/prompt_engineering/chaining_based/step_back.ipynb"
- Skeleton of Thought: "tutorials/prompt_engineering/chaining_based/skeleton_of_thought.ipynb"
- Sim to M: "tutorials/prompt_engineering/chaining_based/sim_to_m.ipynb"
- Evaluations:
- Evaluating SQL Agent: "tutorials/evals/evaluating_sql_agent.ipynb"
- Evaluating Web Search Agent: "tutorials/evals/evaluating_web_search_agent.ipynb"
- Evaluating Documentation Agent: "tutorials/evals/evaluating_documentation_agent.ipynb"
- LangGraph vs. Mirascope:
- Quickstart: "tutorials/langgraph_vs_mirascope/quickstart.ipynb"
- Learn:
- Overview: "learn/index.md"
- Prompts: "learn/prompts.md"
- Calls: "learn/calls.md"
- Streams: "learn/streams.md"
- Chaining: "learn/chaining.md"
- Response Models: "learn/response_models.md"
- JSON Mode: "learn/json_mode.md"
- Output Parsers: "learn/output_parsers.md"
- Tools: "learn/tools.md"
- Agents: "learn/agents.md"
- Evals: "learn/evals.md"
- Async: "learn/async.md"
- Retries: "learn/retries.md"
- Provider-Specific Features:
- OpenAI: "learn/provider_specific_features/openai.md"
- Anthropic: "learn/provider_specific_features/anthropic.md"
- Extensions:
- Middleware: "learn/extensions/middleware.md"
- Custom LLM Provider: "learn/extensions/custom_provider.md"
- Integrations:
- OpenTelemetry: "integrations/otel.md"
- HyperDX: "integrations/hyperdx.md"
- Logfire: "integrations/logfire.md"
- Langfuse: "integrations/langfuse.md"
- API Reference:
- Core:
- Anthropic:
- call: "api/core/anthropic/call.md"
- call_params: "api/core/anthropic/call_params.md"
- call_response: "api/core/anthropic/call_response.md"
- call_response_chunk: "api/core/anthropic/call_response_chunk.md"
- dynamic_config: "api/core/anthropic/dynamic_config.md"
- stream: "api/core/anthropic/stream.md"
- tool: "api/core/anthropic/tool.md"
- Azure AI:
- call: "api/core/azure/call.md"
- call_params: "api/core/azure/call_params.md"
- call_response: "api/core/azure/call_response.md"
- call_response_chunk: "api/core/azure/call_response_chunk.md"
- dynamic_config: "api/core/azure/dynamic_config.md"
- stream: "api/core/azure/stream.md"
- tool: "api/core/azure/tool.md"
- Base:
- call_factory: "api/core/base/call_factory.md"
- call_params: "api/core/base/call_params.md"
- call_response: "api/core/base/call_response.md"
- call_response_chunk: "api/core/base/call_response_chunk.md"
- dynamic_config: "api/core/base/dynamic_config.md"
- merge_decorators: "api/core/base/merge_decorators.md"
- message_param: "api/core/base/message_param.md"
- metadata: "api/core/base/metadata.md"
- prompt: "api/core/base/prompt.md"
- stream: "api/core/base/stream.md"
- structured_stream: "api/core/base/structured_stream.md"
- tool: "api/core/base/tool.md"
- toolkit: "api/core/base/toolkit.md"
- Bedrock:
- call: "api/core/bedrock/call.md"
- call_params: "api/core/bedrock/call_params.md"
- call_response: "api/core/bedrock/call_response.md"
- call_response_chunk: "api/core/bedrock/call_response_chunk.md"
- dynamic_config: "api/core/bedrock/dynamic_config.md"
- stream: "api/core/bedrock/stream.md"
- tool: "api/core/bedrock/tool.md"
- Cohere:
- call: "api/core/cohere/call.md"
- call_params: "api/core/cohere/call_params.md"
- call_response: "api/core/cohere/call_response.md"
- call_response_chunk: "api/core/cohere/call_response_chunk.md"
- dynamic_config: "api/core/cohere/dynamic_config.md"
- stream: "api/core/cohere/stream.md"
- tool: "api/core/cohere/tool.md"
- Gemini:
- call: "api/core/gemini/call.md"
- call_params: "api/core/gemini/call_params.md"
- call_response: "api/core/gemini/call_response.md"
- call_response_chunk: "api/core/gemini/call_response_chunk.md"
- dynamic_config: "api/core/gemini/dynamic_config.md"
- stream: "api/core/gemini/stream.md"
- tool: "api/core/gemini/tool.md"
- Groq:
- call: "api/core/groq/call.md"
- call_params: "api/core/groq/call_params.md"
- call_response: "api/core/groq/call_response.md"
- call_response_chunk: "api/core/groq/call_response_chunk.md"
- dynamic_config: "api/core/groq/dynamic_config.md"
- stream: "api/core/groq/stream.md"
- tool: "api/core/groq/tool.md"
- LiteLLM:
- call: "api/core/litellm/call.md"
- Mistral:
- call: "api/core/mistral/call.md"
- call_params: "api/core/mistral/call_params.md"
- call_response: "api/core/mistral/call_response.md"
- call_response_chunk: "api/core/mistral/call_response_chunk.md"
- dynamic_config: "api/core/mistral/dynamic_config.md"
- stream: "api/core/mistral/stream.md"
- tool: "api/core/mistral/tool.md"
- OpenAI:
- call: "api/core/openai/call.md"
- call_params: "api/core/openai/call_params.md"
- call_response: "api/core/openai/call_response.md"
- call_response_chunk: "api/core/openai/call_response_chunk.md"
- dynamic_config: "api/core/openai/dynamic_config.md"
- stream: "api/core/openai/stream.md"
- tool: "api/core/openai/tool.md"
- Vertex AI:
- call: "api/core/vertex/call.md"
- call_params: "api/core/vertex/call_params.md"
- call_response: "api/core/vertex/call_response.md"
- call_response_chunk: "api/core/vertex/call_response_chunk.md"
- dynamic_config: "api/core/vertex/dynamic_config.md"
- stream: "api/core/vertex/stream.md"
- tool: "api/core/vertex/tool.md"
- Tools:
- DuckDuckGo: "api/tools/web/duckduckgo.md"
- HTTPX: "api/tools/web/httpx.md"
- ParseURLContent: "api/tools/web/parse_url_content.md"
- Requests: "api/tools/web/requests.md"
- FileSystem: "api/tools/system/file_system.md"
- DockerOperation: "api/tools/system/docker_operation.md"
- Integrations:
- Langfuse: "api/integrations/langfuse.md"
- Logfire: "api/integrations/logfire.md"
- Middleware: "api/integrations/middleware.md"
- OpenTelemetry: "api/integrations/otel.md"
- Tenacity: "api/integrations/tenacity.md"
- Blog:
- "blog/index.md"