Build AI methods with your coding agent, then run them anywhere: as an MCP for chatbots, as a webapp for people, or via API for your software.
Tweaks go deck and stuff (#275)
Louis Choquelbf0bb3c61535
diff --git a/.pipelex/create/build_pipelines.md b/.pipelex/create/build_pipelines.mdindex 717c735f7..c1cfdc5ef 100644--- a/.pipelex/create/build_pipelines.md+++ b/.pipelex/create/build_pipelines.md@@ -136,6 +136,7 @@ To blueprint:"output": "Page", // Output is always Page concept"page_images": true,"page_views": true+ "ocr_handle": "mistral/mistral-ocr-latest"}```diff --git a/.pipelex/inference/backends.toml b/.pipelex/inference/backends.tomlindex 674a44d4a..ebf1509b5 100644--- a/.pipelex/inference/backends.toml+++ b/.pipelex/inference/backends.toml@@ -3,45 +3,45 @@ endpoint = "https://inference.pipelex.com/v1"api_key = "${PIPELEX_INFERENCE_API_KEY}"[blackboxai]-enabled = false+enabled = trueendpoint = "https://api.blackbox.ai/v1"api_key = "${BLACKBOX_API_KEY}"[openai]-enabled = false+enabled = trueapi_key = "${OPENAI_API_KEY}"[azure_openai]-enabled = false+enabled = trueendpoint = "${AZURE_API_BASE}"api_key = "${AZURE_API_KEY}"api_version = "${AZURE_API_VERSION}"[anthropic]-enabled = false+enabled = trueapi_key = "${ANTHROPIC_API_KEY}"claude_4_tokens_limit = 8192[ollama]-enabled = false+enabled = trueendpoint = "http://localhost:11434/v1"[xai]-enabled = false+enabled = trueendpoint = "https://api.x.ai/v1"api_key = "${XAI_API_KEY}"[bedrock]-enabled = false+enabled = trueaws_region = "${AWS_REGION}"[vertexai]-enabled = false+enabled = truegcp_project_id = "${GCP_PROJECT_ID}"gcp_location = "${GCP_LOCATION}"gcp_credentials_file_path = "${GCP_CREDENTIALS_FILE_PATH}"[mistral]-enabled = false+enabled = trueapi_key = "${MISTRAL_API_KEY}"diff --git a/.pipelex/inference/deck/base_deck.toml b/.pipelex/inference/deck/base_deck.tomlindex 0736f0347..76e436a87 100644--- a/.pipelex/inference/deck/base_deck.toml+++ b/.pipelex/inference/deck/base_deck.toml@@ -1,5 +1,5 @@-# LLM Deck base+# Base model deck##################################################################################################### Aliases@@ -56,32 +56,31 @@ llm_for_creative_writing = { llm_handle = "claude-4-sonnet", temperature = 0.9 }# Reasoning skillsllm_to_reason_short = { llm_handle = "base-claude", temperature = 0.5, max_tokens = 500 }llm_to_reason = { llm_handle = "base-claude", temperature = 1 }-llm_to_reason_on_diagram = { llm_handle = "best-claude", temperature = 0.5 }+llm_to_reason_on_diagram = { llm_handle = "base-claude", temperature = 0.5 }# Search and answer skills-llm_to_answer = { llm_handle = "best-claude", temperature = 0.1 }-llm_to_retrieve = { llm_handle = "best-gemini", temperature = 0.1 }+llm_to_answer = { llm_handle = "base-claude", temperature = 0.1 }+llm_to_retrieve = { llm_handle = "base-gemini", temperature = 0.1 }llm_for_enrichment = { llm_handle = "gpt-4o", temperature = 0.1 }-llm_to_enrich = { llm_handle = "best-claude", temperature = 0.1 }+llm_to_enrich = { llm_handle = "base-claude", temperature = 0.1 }llm_for_question_and_excerpt_reformulation = { llm_handle = "gpt-4o", temperature = 0.9 }# Engineering skills-llm_to_engineer = { llm_handle = "best-claude", temperature = 0.2 }-llm_to_pipelex = { llm_handle = "best-claude", temperature = 0.2 }-# llm_to_pipelex = { llm_handle = "gpt-5-mini", temperature = 0.2 }+llm_to_engineer = { llm_handle = "base-claude", temperature = 0.2 }+llm_to_pipelex = { llm_handle = "base-claude", temperature = 0.2 }# Image skills-llm_to_write_imgg_prompt = { llm_handle = "best-claude", temperature = 0.2 }-llm_to_describe_img = { llm_handle = "best-claude", temperature = 0.5 }-llm_to_design_fashion = { llm_handle = "best-claude", temperature = 0.7 }-llm_for_img_to_text = { llm_handle = "best-claude", temperature = 0.1 }+llm_to_write_imgg_prompt = { llm_handle = "base-claude", temperature = 0.2 }+llm_to_describe_img = { llm_handle = "base-claude", temperature = 0.5 }+llm_to_design_fashion = { llm_handle = "base-claude", temperature = 0.7 }+llm_for_img_to_text = { llm_handle = "base-claude", temperature = 0.1 }# Extraction skills-llm_to_extract_diagram = { llm_handle = "best-claude", temperature = 0.5 }-llm_to_extract_invoice = { llm_handle = "claude-3-7-sonnet", temperature = 0.1 }-llm_to_extract_invoice_from_scan = { llm_handle = "best-claude", temperature = 0.5 }-llm_to_extract_legal_terms = { llm_handle = "best-claude", temperature = 0.1 }-llm_to_extract_tables = { llm_handle = "best-claude", temperature = 0.1 }+llm_to_extract_diagram = { llm_handle = "base-claude", temperature = 0.5 }+llm_to_extract_invoice = { llm_handle = "claude-4-sonnet", temperature = 0.1 }+llm_to_extract_invoice_from_scan = { llm_handle = "base-claude", temperature = 0.5 }+llm_to_extract_legal_terms = { llm_handle = "base-claude", temperature = 0.1 }+llm_to_extract_tables = { llm_handle = "base-claude", temperature = 0.1 }##################################################################################################### LLM Choices@@ -90,4 +89,3 @@ llm_to_extract_tables = { llm_handle = "best-claude", temperature = 0.1 }[llm_choice_defaults]for_text = "cheap_llm_for_text"for_object = "cheap_llm_for_object"-diff --git a/Makefile b/Makefileindex e4bd1d57e..5f85e0565 100644--- a/Makefile+++ b/Makefile@@ -188,7 +188,12 @@ cleanlibraries:@find . -type d -wholename './pipelex_libraries' -exec rm -rf {} + && \echo "Cleaned up pipelex_libraries";-cleanall: cleanderived cleanenv cleanlibraries+cleanconfig:+ $(call PRINT_TITLE,"Erasing config files and directories")+ @find . -type d -wholename './.pipelex' -exec rm -rf {} + && \+ echo "Cleaned up .pipelex";++cleanall: cleanderived cleanenv cleanlibraries cleanconfig@echo "Cleaned up all derived files and directories";##########################################################################################diff --git a/docs/pages/build-reliable-ai-workflows-with-pipelex/pipe-controllers/PipeSequence.md b/docs/pages/build-reliable-ai-workflows-with-pipelex/pipe-controllers/PipeSequence.mdindex 288647577..f844109d8 100644--- a/docs/pages/build-reliable-ai-workflows-with-pipelex/pipe-controllers/PipeSequence.md+++ b/docs/pages/build-reliable-ai-workflows-with-pipelex/pipe-controllers/PipeSequence.md@@ -44,6 +44,7 @@ Let's imagine a pipeline that first extracts text from an image, then summarizestype = "PipeOcr"definition = "Extract text from an image"output = "Text"+ocr_handle = "mistral/mistral-ocr-latest"[pipe.summarize_text]type = "PipeLLM"diff --git a/docs/pages/build-reliable-ai-workflows-with-pipelex/pipe-operators/PipeOcr.md b/docs/pages/build-reliable-ai-workflows-with-pipelex/pipe-operators/PipeOcr.mdindex 29d3eda81..59e912b4c 100644--- a/docs/pages/build-reliable-ai-workflows-with-pipelex/pipe-operators/PipeOcr.md+++ b/docs/pages/build-reliable-ai-workflows-with-pipelex/pipe-operators/PipeOcr.md@@ -53,6 +53,7 @@ inputs = { ocr_input = "ScannedDocument" }output = "Page"page_views = truepage_views_dpi = 200+ocr_handle = "mistral/mistral-ocr-latest"```The output of the PipeOcr must be exactly the native `Page` concept.diff --git a/pipelex/config_template/inference/deck/base_deck.toml b/pipelex/config_template/inference/deck/base_deck.tomlindex 0736f0347..76e436a87 100644--- a/pipelex/config_template/inference/deck/base_deck.toml+++ b/pipelex/config_template/inference/deck/base_deck.toml@@ -1,5 +1,5 @@-# LLM Deck base+# Base model deck##################################################################################################### Aliases@@ -56,32 +56,31 @@ llm_for_creative_writing = { llm_handle = "claude-4-sonnet", temperature = 0.9 }# Reasoning skillsllm_to_reason_short = { llm_handle = "base-claude", temperature = 0.5, max_tokens = 500 }llm_to_reason = { llm_handle = "base-claude", temperature = 1 }-llm_to_reason_on_diagram = { llm_handle = "best-claude", temperature = 0.5 }+llm_to_reason_on_diagram = { llm_handle = "base-claude", temperature = 0.5 }# Search and answer skills-llm_to_answer = { llm_handle = "best-claude", temperature = 0.1 }-llm_to_retrieve = { llm_handle = "best-gemini", temperature = 0.1 }+llm_to_answer = { llm_handle = "base-claude", temperature = 0.1 }+llm_to_retrieve = { llm_handle = "base-gemini", temperature = 0.1 }llm_for_enrichment = { llm_handle = "gpt-4o", temperature = 0.1 }-llm_to_enrich = { llm_handle = "best-claude", temperature = 0.1 }+llm_to_enrich = { llm_handle = "base-claude", temperature = 0.1 }llm_for_question_and_excerpt_reformulation = { llm_handle = "gpt-4o", temperature = 0.9 }# Engineering skills-llm_to_engineer = { llm_handle = "best-claude", temperature = 0.2 }-llm_to_pipelex = { llm_handle = "best-claude", temperature = 0.2 }-# llm_to_pipelex = { llm_handle = "gpt-5-mini", temperature = 0.2 }+llm_to_engineer = { llm_handle = "base-claude", temperature = 0.2 }+llm_to_pipelex = { llm_handle = "base-claude", temperature = 0.2 }# Image skills-llm_to_write_imgg_prompt = { llm_handle = "best-claude", temperature = 0.2 }-llm_to_describe_img = { llm_handle = "best-claude", temperature = 0.5 }-llm_to_design_fashion = { llm_handle = "best-claude", temperature = 0.7 }-llm_for_img_to_text = { llm_handle = "best-claude", temperature = 0.1 }+llm_to_write_imgg_prompt = { llm_handle = "base-claude", temperature = 0.2 }+llm_to_describe_img = { llm_handle = "base-claude", temperature = 0.5 }+llm_to_design_fashion = { llm_handle = "base-claude", temperature = 0.7 }+llm_for_img_to_text = { llm_handle = "base-claude", temperature = 0.1 }# Extraction skills-llm_to_extract_diagram = { llm_handle = "best-claude", temperature = 0.5 }-llm_to_extract_invoice = { llm_handle = "claude-3-7-sonnet", temperature = 0.1 }-llm_to_extract_invoice_from_scan = { llm_handle = "best-claude", temperature = 0.5 }-llm_to_extract_legal_terms = { llm_handle = "best-claude", temperature = 0.1 }-llm_to_extract_tables = { llm_handle = "best-claude", temperature = 0.1 }+llm_to_extract_diagram = { llm_handle = "base-claude", temperature = 0.5 }+llm_to_extract_invoice = { llm_handle = "claude-4-sonnet", temperature = 0.1 }+llm_to_extract_invoice_from_scan = { llm_handle = "base-claude", temperature = 0.5 }+llm_to_extract_legal_terms = { llm_handle = "base-claude", temperature = 0.1 }+llm_to_extract_tables = { llm_handle = "base-claude", temperature = 0.1 }##################################################################################################### LLM Choices@@ -90,4 +89,3 @@ llm_to_extract_tables = { llm_handle = "best-claude", temperature = 0.1 }[llm_choice_defaults]for_text = "cheap_llm_for_text"for_object = "cheap_llm_for_object"-