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.
fix missing space
thomashebrarde0923816c4cd
diff --git a/.cursor/rules/pipelex.mdc b/.cursor/rules/pipelex.mdcindex 60dff15fa..ccbe7e05d 100644--- a/.cursor/rules/pipelex.mdc+++ b/.cursor/rules/pipelex.mdc@@ -23,7 +23,7 @@ A pipeline file has three main sections:### Domain Statement```plxdomain = "domain_name"-description ="Description of the domain" # Optional+description = "Description of the domain" # Optional```Note: The domain name usually matches the plx filename for single-file domains. For multi-file domains, use the subdirectory name.@@ -46,7 +46,7 @@ yes```plx[pipe.your_pipe_name]type = "PipeLLM"-description ="A description of what your pipe does"+description = "A description of what your pipe does"inputs = { input_1 = "ConceptName1", input_2 = "ConceptName2" }output = "ConceptName"```@@ -62,7 +62,7 @@ But it should be:```plx[pipe.your_pipe_name]type = "PipeSequence"-description ="....."+description = "....."```The pipes will all have at least this base structure.@@ -178,7 +178,7 @@ PipeSequence executes multiple pipes in a defined order, where each step can use```plx[pipe.your_sequence_name]type = "PipeSequence"-description ="Description of what this sequence does"+description = "Description of what this sequence does"inputs = { input_name = "InputType" } # All the inputs of the sub pipes, except the ones generated by intermediate stepsoutput = "OutputType"steps = [@@ -226,7 +226,7 @@ The PipeCondition controller allows you to implement conditional logic in your p```plx[pipe.conditional_operation]type = "PipeCondition"-description ="A conditonal pipe to decide wheter..."+description = "A conditonal pipe to decide wheter..."inputs = { input_data = "CategoryInput" }output = "native.Text"expression = "input_data.category"@@ -240,7 +240,7 @@ or```plx[pipe.conditional_operation]type = "PipeCondition"-description ="A conditonal pipe to decide wheter..."+description = "A conditonal pipe to decide wheter..."inputs = { input_data = "CategoryInput" }output = "native.Text"expression_template = "{{ input_data.category }}" # Jinja2 code@@ -268,7 +268,7 @@ The PipeBatch controller allows you to apply a pipe operation to each element in```plx[pipe.sequence_with_batch]type = "PipeSequence"-description ="A Sequence of pipes"+description = "A Sequence of pipes"inputs = { input_data = "ConceptName" }output = "OutputConceptName"steps = [@@ -297,7 +297,7 @@ PipeLLM is used to:```plx[pipe.write_story]type = "PipeLLM"-description ="Write a short story"+description = "Write a short story"output = "Text"prompt_template = """Write a short story about a programmer.@@ -308,7 +308,7 @@ Write a short story about a programmer.```plx[pipe.extract_info]type = "PipeLLM"-description ="Extract information"+description = "Extract information"inputs = { text = "Text" }output = "PersonInfo"prompt_template = """@@ -322,7 +322,7 @@ Add system-level instructions:```plx[pipe.expert_analysis]type = "PipeLLM"-description ="Expert analysis"+description = "Expert analysis"output = "Analysis"system_prompt = "You are a data analysis expert"prompt_template = "Analyze this data"@@ -333,7 +333,7 @@ Generate multiple results:```plx[pipe.generate_ideas]type = "PipeLLM"-description ="Generate ideas"+description = "Generate ideas"output = "Idea"nb_output = 3 # Generate exactly 3 ideas# OR@@ -345,7 +345,7 @@ Process images with VLMs:```plx[pipe.analyze_image]type = "PipeLLM"-description ="Analyze image"+description = "Analyze image"inputs = { image = "Image" } # `image` is the name of the stuff that contains the Image. If its in a stuff, you can add something like `{ "page.image": "Image" }output = "ImageAnalysis"prompt_template = "Describe what you see in this image"@@ -363,7 +363,7 @@ The PipeOcr operator is used to extract text and images from an image or a PDF```plx[pipe.extract_info]type = "PipeOcr"-description ="extract the information"+description = "extract the information"inputs = { document = "PDF" } # or { image = "Image" } if it's an image. This is the only input.output = "Page"```@@ -397,7 +397,7 @@ The PipeCompose operator is used to compose text using Jinja2 templates. It supp```plx[pipe.compose_report]type = "PipeCompose"-description ="Compose a report using template"+description = "Compose a report using template"inputs = { data = "ReportData" }output = "Text"jinja2 = """@@ -414,7 +414,7 @@ Generated on: {{ current_date }}```plx[pipe.use_template]type = "PipeCompose"-description ="Use a predefined template"+description = "Use a predefined template"inputs = { content = "Text" }output = "Text"jinja2_name = "standard_report_template"@@ -424,7 +424,7 @@ jinja2_name = "standard_report_template"```plx[pipe.compose_follow_up_email]type = "PipeCompose"-description ="Compose a personalized follow-up email for CRM"+description = "Compose a personalized follow-up email for CRM"inputs = { customer = "Customer", deal = "Deal", sales_rep = "SalesRep" }output = "Text"template_category = "html"@@ -485,7 +485,7 @@ The PipeImgGen operator is used to generate images using AI image generation mod```plx[pipe.generate_image]type = "PipeImgGen"-description ="Generate an image from prompt"+description = "Generate an image from prompt"inputs = { prompt = "ImgGenPrompt" }output = "Image"```@@ -494,7 +494,7 @@ output = "Image"```plx[pipe.generate_photo]type = "PipeImgGen"-description ="Generate a high-quality photo"+description = "Generate a high-quality photo"inputs = { prompt = "ImgGenPrompt" }output = "Photo"img_gen = { img_gen_handle = "dall-e-3", quality = "hd" }@@ -506,7 +506,7 @@ nb_steps = 8```plx[pipe.generate_variations]type = "PipeImgGen"-description ="Generate multiple image variations"+description = "Generate multiple image variations"inputs = { prompt = "ImgGenPrompt" }output = "Image"nb_output = 3@@ -517,7 +517,7 @@ seed = "auto"```plx[pipe.generate_custom]type = "PipeImgGen"-description ="Generate image with custom settings"+description = "Generate image with custom settings"inputs = { prompt = "ImgGenPrompt" }output = "Image"img_gen = "img_gen_preset_name" # Use predefined preset@@ -570,7 +570,7 @@ The PipeFunc operator is used to run custom Python functions within a pipeline.```plx[pipe.process_data]type = "PipeFunc"-description ="Process data using custom function"+description = "Process data using custom function"inputs = { input_data = "DataType" }output = "ProcessedData"function_name = "process_data_function"@@ -580,7 +580,7 @@ function_name = "process_data_function"```plx[pipe.read_file]type = "PipeFunc"-description ="Read file content"+description = "Read file content"inputs = { file_path = "FilePath" }output = "FileContent"function_name = "read_file_content"@@ -942,7 +942,7 @@ Here is an example of using an llm_handle to specify which LLM to use in a PipeL```plx[pipe.hello_world]type = "PipeLLM"-description ="Write text about Hello World."+description = "Write text about Hello World."output = "Text"llm = { llm_handle = "gpt-5", temperature = 0.9 }prompt_template = """@@ -967,7 +967,7 @@ The interest is that these presets can be used to set the LLM choice in a PipeLL```plx[pipe.extract_invoice]type = "PipeLLM"-description ="Extract invoice information from an invoice text transcript"+description = "Extract invoice information from an invoice text transcript"inputs = { invoice_text = "InvoiceText" }output = "Invoice"llm = "llm_to_extract_invoice"diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.mdindex 8a2143914..38231fed6 100644--- a/.github/copilot-instructions.md+++ b/.github/copilot-instructions.md@@ -146,7 +146,7 @@ A pipeline file has three main sections:### Domain Statement```plxdomain = "domain_name"-description ="Description of the domain" # Optional+description = "Description of the domain" # Optional```Note: The domain name usually matches the plx filename for single-file domains. For multi-file domains, use the subdirectory name.@@ -169,7 +169,7 @@ yes```plx[pipe.your_pipe_name]type = "PipeLLM"-description ="A description of what your pipe does"+description = "A description of what your pipe does"inputs = { input_1 = "ConceptName1", input_2 = "ConceptName2" }output = "ConceptName"```@@ -185,7 +185,7 @@ But it should be:```plx[pipe.your_pipe_name]type = "PipeSequence"-description ="....."+description = "....."```The pipes will all have at least this base structure.@@ -298,7 +298,7 @@ Purpose: PipeSequence executes multiple pipes in a defined order, where each ste```plx[pipe.your_sequence_name]type = "PipeSequence"-description ="Description of what this sequence does"+description = "Description of what this sequence does"inputs = { input_name = "InputType" } # All the inputs of the sub pipes, except the ones generated by intermediate stepsoutput = "OutputType"steps = [@@ -344,7 +344,7 @@ The PipeCondition controller allows you to implement conditional logic in your p```plx[pipe.conditional_operation]type = "PipeCondition"-description ="A conditonal pipe to decide wheter..."+description = "A conditonal pipe to decide wheter..."inputs = { input_data = "CategoryInput" }output = "native.Text"expression = "input_data.category"@@ -358,7 +358,7 @@ or```plx[pipe.conditional_operation]type = "PipeCondition"-description ="A conditonal pipe to decide wheter..."+description = "A conditonal pipe to decide wheter..."inputs = { input_data = "CategoryInput" }output = "native.Text"expression_template = "{{ input_data.category }}" # Jinja2 code@@ -389,7 +389,7 @@ Simple Text Generation:```plx[pipe.write_story]type = "PipeLLM"-description ="Write a short story"+description = "Write a short story"output = "Text"prompt_template = """Write a short story about a programmer.@@ -400,7 +400,7 @@ Structured Data Extraction:```plx[pipe.extract_info]type = "PipeLLM"-description ="Extract information"+description = "Extract information"inputs = { text = "Text" }output = "PersonInfo"prompt_template = """@@ -413,7 +413,7 @@ Supports system instructions:```plx[pipe.expert_analysis]type = "PipeLLM"-description ="Expert analysis"+description = "Expert analysis"output = "Analysis"system_prompt = "You are a data analysis expert"prompt_template = "Analyze this data"@@ -425,7 +425,7 @@ Generate multiple outputs (fixed number):```plx[pipe.generate_ideas]type = "PipeLLM"-description ="Generate ideas"+description = "Generate ideas"output = "Idea"nb_output = 3 # Generate exactly 3 ideas```@@ -434,7 +434,7 @@ Generate multiple outputs (variable number):```plx[pipe.generate_ideas]type = "PipeLLM"-description ="Generate ideas"+description = "Generate ideas"output = "Idea"multiple_output = true # Let the LLM decide how many to generate```@@ -445,7 +445,7 @@ Process images with VLMs:```plx[pipe.analyze_image]type = "PipeLLM"-description ="Analyze image"+description = "Analyze image"inputs = { image = "Image" } # `image` is the name of the stuff that contains the Image. If its in an attribute within a stuff, you can add something like `{ "page.image": "Image" }output = "ImageAnalysis"prompt_template = "Describe what you see in this image"@@ -503,7 +503,7 @@ The PipeOcr operator is used to extract text and images from an image or a PDF```plx[pipe.extract_info]type = "PipeOcr"-description ="extract the information"+description = "extract the information"inputs = { document = "PDF" } # or { image = "Image" } if it's an image. This is the only input.output = "Page"```@@ -535,7 +535,7 @@ Simple Template Composition:```plx[pipe.compose_report]type = "PipeCompose"-description ="Compose a report using template"+description = "Compose a report using template"inputs = { data = "ReportData" }output = "Text"jinja2 = """@@ -552,7 +552,7 @@ Using Named Templates:```plx[pipe.use_template]type = "PipeCompose"-description ="Use a predefined template"+description = "Use a predefined template"inputs = { content = "Text" }output = "Text"jinja2_name = "standard_report_template"@@ -562,7 +562,7 @@ CRM Email Template:```plx[pipe.compose_follow_up_email]type = "PipeCompose"-description ="Compose a personalized follow-up email for CRM"+description = "Compose a personalized follow-up email for CRM"inputs = { customer = "Customer", deal = "Deal", sales_rep = "SalesRep" }output = "Text"template_category = "html"@@ -621,7 +621,7 @@ Simple Image Generation:```plx[pipe.generate_image]type = "PipeImgGen"-description ="Generate an image from prompt"+description = "Generate an image from prompt"inputs = { prompt = "ImgGenPrompt" }output = "Image"```@@ -630,7 +630,7 @@ Using Image Generation Settings:```plx[pipe.generate_photo]type = "PipeImgGen"-description ="Generate a high-quality photo"+description = "Generate a high-quality photo"inputs = { prompt = "ImgGenPrompt" }output = "Photo"img_gen = { img_gen_handle = "dall-e-3", quality = "hd" }@@ -642,7 +642,7 @@ Multiple Image Generation:```plx[pipe.generate_variations]type = "PipeImgGen"-description ="Generate multiple image variations"+description = "Generate multiple image variations"inputs = { prompt = "ImgGenPrompt" }output = "Image"nb_output = 3@@ -653,7 +653,7 @@ Advanced Configuration:```plx[pipe.generate_custom]type = "PipeImgGen"-description ="Generate image with custom settings"+description = "Generate image with custom settings"inputs = { prompt = "ImgGenPrompt" }output = "Image"img_gen = "img_gen_preset_name" # Use predefined preset@@ -704,7 +704,7 @@ Simple Function Call:```plx[pipe.process_data]type = "PipeFunc"-description ="Process data using custom function"+description = "Process data using custom function"inputs = { input_data = "DataType" }output = "ProcessedData"function_name = "process_data_function"@@ -714,7 +714,7 @@ File Processing Example:```plx[pipe.read_file]type = "PipeFunc"-description ="Read file content"+description = "Read file content"inputs = { file_path = "FilePath" }output = "FileContent"function_name = "read_file_content"@@ -813,7 +813,7 @@ Here is an example of using an llm_handle to specify which LLM to use in a PipeL```plx[pipe.hello_world]type = "PipeLLM"-description ="Write text about Hello World."+description = "Write text about Hello World."output = "Text"llm = { llm_handle = "gpt-5", temperature = 0.9 }prompt_template = """@@ -838,7 +838,7 @@ The interest is that these presets can be used to set the LLM choice in a PipeLL```plx[pipe.extract_invoice]type = "PipeLLM"-description ="Extract invoice information from an invoice text transcript"+description = "Extract invoice information from an invoice text transcript"inputs = { invoice_text = "InvoiceText" }output = "Invoice"llm = "llm_to_extract_invoice"diff --git a/CLAUDE.md b/CLAUDE.mdindex 8a2143914..d65280668 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -146,7 +146,7 @@ A pipeline file has three main sections:### Domain Statement```plxdomain = "domain_name"-description ="Description of the domain" # Optional+description = "Description of the domain" # Optional```Note: The domain name usually matches the plx filename for single-file domains. For multi-file domains, use the subdirectory name.@@ -169,7 +169,7 @@ yes```plx[pipe.your_pipe_name]type = "PipeLLM"-description ="A description of what your pipe does"+description = "A description of what your pipe does"inputs = { input_1 = "ConceptName1", input_2 = "ConceptName2" }output = "ConceptName"```@@ -185,7 +185,7 @@ But it should be:```plx[pipe.your_pipe_name]type = "PipeSequence"-description ="....."+description = "....."```The pipes will all have at least this base structure.@@ -298,7 +298,7 @@ Purpose: PipeSequence executes multiple pipes in a defined order, where each ste```plx[pipe.your_sequence_name]type = "PipeSequence"-description ="Description of what this sequence does"+description = "Description of what this sequence does"inputs = { input_name = "InputType" } # All the inputs of the sub pipes, except the ones generated by intermediate stepsoutput = "OutputType"steps = [@@ -344,7 +344,7 @@ The PipeCondition controller allows you to implement conditional logic in your p```plx[pipe.conditional_operation]type = "PipeCondition"-description ="A conditonal pipe to decide wheter..."+description = "A conditonal pipe to decide wheter..."inputs = { input_data = "CategoryInput" }output = "native.Text"expression = "input_data.category"@@ -358,7 +358,7 @@ or```plx[pipe.conditional_operation]type = "PipeCondition"-description ="A conditonal pipe to decide wheter..."+description = "A conditonal pipe to decide wheter..."inputs = { input_data = "CategoryInput" }output = "native.Text"expression_template = "{{ input_data.category }}" # Jinja2 code@@ -389,7 +389,7 @@ Simple Text Generation:```plx[pipe.write_story]type = "PipeLLM"-description ="Write a short story"+description = "Write a short story"output = "Text"prompt_template = """Write a short story about a programmer.@@ -400,7 +400,7 @@ Structured Data Extraction:```plx[pipe.extract_info]type = "PipeLLM"-description ="Extract information"+description = "Extract information"inputs = { text = "Text" }output = "PersonInfo"prompt_template = """@@ -413,7 +413,7 @@ Supports system instructions:```plx[pipe.expert_analysis]type = "PipeLLM"-description ="Expert analysis"+description = "Expert analysis"output = "Analysis"system_prompt = "You are a data analysis expert"prompt_template = "Analyze this data"@@ -425,7 +425,7 @@ Generate multiple outputs (fixed number):```plx[pipe.generate_ideas]type = "PipeLLM"-description ="Generate ideas"+description = "Generate ideas"output = "Idea"nb_output = 3 # Generate exactly 3 ideas```@@ -434,7 +434,7 @@ Generate multiple outputs (variable number):```plx[pipe.generate_ideas]type = "PipeLLM"-description ="Generate ideas"+description = "Generate ideas"output = "Idea"multiple_output = true # Let the LLM decide how many to generate```@@ -445,7 +445,7 @@ Process images with VLMs:```plx[pipe.analyze_image]type = "PipeLLM"-description ="Analyze image"+description = "Analyze image"inputs = { image = "Image" } # `image` is the name of the stuff that contains the Image. If its in an attribute within a stuff, you can add something like `{ "page.image": "Image" }output = "ImageAnalysis"prompt_template = "Describe what you see in this image"@@ -503,7 +503,7 @@ The PipeOcr operator is used to extract text and images from an image or a PDF```plx[pipe.extract_info]type = "PipeOcr"-description ="extract the information"+description = "extract the information"inputs = { document = "PDF" } # or { image = "Image" } if it's an image. This is the only input.output = "Page"```@@ -535,7 +535,7 @@ Simple Template Composition:```plx[pipe.compose_report]type = "PipeCompose"-description ="Compose a report using template"+description = "Compose a report using template"inputs = { data = "ReportData" }output = "Text"jinja2 = """@@ -552,7 +552,7 @@ Using Named Templates:```plx[pipe.use_template]type = "PipeCompose"-description ="Use a predefined template"+description = "Use a predefined template"inputs = { content = "Text" }output = "Text"jinja2_name = "standard_report_template"@@ -562,7 +562,7 @@ CRM Email Template:```plx[pipe.compose_follow_up_email]type = "PipeCompose"-description ="Compose a personalized follow-up email for CRM"+description = "Compose a personalized follow-up email for CRM"inputs = { customer = "Customer", deal = "Deal", sales_rep = "SalesRep" }output = "Text"template_category = "html"@@ -621,7 +621,7 @@ Simple Image Generation:```plx[pipe.generate_image]type = "PipeImgGen"-description ="Generate an image from prompt"+description = "Generate an image from prompt"inputs = { prompt = "ImgGenPrompt" }output = "Image"```@@ -630,7 +630,7 @@ Using Image Generation Settings:```plx[pipe.generate_photo]type = "PipeImgGen"-description ="Generate a high-quality photo"+description = "Generate a high-quality photo"inputs = { prompt = "ImgGenPrompt" }output = "Photo"img_gen = { img_gen_handle = "dall-e-3", quality = "hd" }@@ -642,7 +642,7 @@ Multiple Image Generation:```plx[pipe.generate_variations]type = "PipeImgGen"-description ="Generate multiple image variations"+description = "Generate multiple image variations"inputs = { prompt = "ImgGenPrompt" }output = "Image"nb_output = 3@@ -653,7 +653,7 @@ Advanced Configuration:```plx[pipe.generate_custom]type = "PipeImgGen"-description ="Generate image with custom settings"+description = "Generate image with custom settings"inputs = { prompt = "ImgGenPrompt" }output = "Image"img_gen = "img_gen_preset_name" # Use predefined preset@@ -704,7 +704,7 @@ Simple Function Call:```plx[pipe.process_data]type = "PipeFunc"-description ="Process data using custom function"+description = "Process data using custom function"inputs = { input_data = "DataType" }output = "ProcessedData"function_name = "process_data_function"@@ -714,7 +714,7 @@ File Processing Example:```plx[pipe.read_file]type = "PipeFunc"-description ="Read file content"+description = "Read file content"inputs = { file_path = "FilePath" }output = "FileContent"function_name = "read_file_content"@@ -813,7 +813,7 @@ Here is an example of using an llm_handle to specify which LLM to use in a PipeL```plx[pipe.hello_world]type = "PipeLLM"-description ="Write text about Hello World."+description = "Write text about Hello World."output = "Text"llm = { llm_handle = "gpt-5", temperature = 0.9 }prompt_template = """@@ -838,7 +838,7 @@ The interest is that these presets can be used to set the LLM choice in a PipeLL```plx[pipe.extract_invoice]type = "PipeLLM"-description ="Extract invoice information from an invoice text transcript"+description = "Extract invoice information from an invoice text transcript"inputs = { invoice_text = "InvoiceText" }output = "Invoice"llm = "llm_to_extract_invoice"diff --git a/README.md b/README.mdindex 6f23ed3a4..90c745287 100644--- a/README.md+++ b/README.md@@ -164,7 +164,7 @@ Example with the extension you can download now on Cursor, Windsurf or another V```plxdomain = "tech_tweet"-description ="A pipeline for optimizing tech tweets using Twitter/X best practices"+description = "A pipeline for optimizing tech tweets using Twitter/X best practices"[concept]DraftTweet = "A draft version of a tech tweet that needs optimization"@@ -175,7 +175,7 @@ WritingStyle = "A style of writing"[pipe][pipe.analyze_tweet]type = "PipeLLM"-description ="Analyze the draft tweet and identify areas for improvement"+description = "Analyze the draft tweet and identify areas for improvement"inputs = { draft_tweet = "DraftTweet" }output = "TweetAnalysis"llm = "llm_for_writing_analysis"@@ -204,7 +204,7 @@ without providing an actual rewrite[pipe.optimize_tweet]type = "PipeLLM"-description ="Optimize the tweet based on the analysis"+description = "Optimize the tweet based on the analysis"inputs = { draft_tweet = "DraftTweet", tweet_analysis = "TweetAnalysis", writing_style = "WritingStyle" }output = "OptimizedTweet"llm = "llm_for_social_post_writing"@@ -239,7 +239,7 @@ Keep the core meaning of the original tweet.[pipe.optimize_tweet_sequence]type = "PipeSequence"-description ="Analyze and optimize a tech tweet in sequence"+description = "Analyze and optimize a tech tweet in sequence"inputs = { draft_tweet = "DraftTweet", writing_style = "WritingStyle" }output = "OptimizedTweet"steps = [diff --git a/docs/pages/build-reliable-ai-workflows-with-pipelex/define_your_concepts.md b/docs/pages/build-reliable-ai-workflows-with-pipelex/define_your_concepts.mdindex 0d64c1e7c..00117026a 100644--- a/docs/pages/build-reliable-ai-workflows-with-pipelex/define_your_concepts.md+++ b/docs/pages/build-reliable-ai-workflows-with-pipelex/define_your_concepts.md@@ -221,7 +221,7 @@ For example, a pipe that processes `Document` can also process `Contract` or `Em```plx[pipe.extract_key_points]type = "PipeLLM"-description ="Extract main points from any document"+description = "Extract main points from any document"inputs = { doc = "Document" } # Can accept Document, Contract, or EmploymentContractoutput = "KeyPoints"```@@ -308,21 +308,21 @@ Native concepts can be used directly in your pipeline definitions without any ad```plx[pipe.analyze_document]type = "PipeLLM"-description ="Analyze a PDF document"+description = "Analyze a PDF document"inputs = { document = "PDF" }output = "Text"prompt_template = "Analyze this document and provide a summary"[pipe.process_image]type = "PipeLLM"-description ="Describe an image"+description = "Describe an image"inputs = { photo = "Image" }output = "Text"prompt_template = "Describe what you see in this image"[pipe.extract_from_page]type = "PipeLLM"-description ="Extract information from a document page"+description = "Extract information from a document page"inputs = { page_content = "Page" }output = "ExtractedInfo"prompt_template = "Extract key information from this page content"@@ -334,15 +334,15 @@ You can create more specific concepts by refining native ones:```plx[concept.Invoice]-description ="A commercial document issued by a seller to a buyer"+description = "A commercial document issued by a seller to a buyer"refines = "PDF"[concept.ProductPhoto]-description ="A photograph of a product for marketing purposes"+description = "A photograph of a product for marketing purposes"refines = "Image"[concept.ContractPage]-description ="A page from a legal contract document"+description = "A page from a legal contract document"refines = "Page"```diff --git a/docs/pages/build-reliable-ai-workflows-with-pipelex/pipe-controllers/PipeCondition.md b/docs/pages/build-reliable-ai-workflows-with-pipelex/pipe-controllers/PipeCondition.mdindex 489b35041..e71addcf0 100644--- a/docs/pages/build-reliable-ai-workflows-with-pipelex/pipe-controllers/PipeCondition.md+++ b/docs/pages/build-reliable-ai-workflows-with-pipelex/pipe-controllers/PipeCondition.md@@ -59,7 +59,7 @@ large = "process_large"# Define the pipes that PipeCondition can route to[pipe.process_small]type = "PipeLLM"-description ="Handle small category"+description = "Handle small category"output = "native.Text"prompt_template = """Output this only: "small"@@ -67,7 +67,7 @@ Output this only: "small"[pipe.process_medium]type = "PipeLLM"-description ="Handle medium category"+description = "Handle medium category"output = "native.Text"prompt_template = """Output this only: "medium"@@ -75,7 +75,7 @@ Output this only: "medium"[pipe.process_large]type = "PipeLLM"-description ="Handle large category"+description = "Handle large category"output = "native.Text"prompt_template = """Output this only: "large"@@ -94,7 +94,7 @@ How this works:```plx[pipe.route_with_fallback]type = "PipeCondition"-description ="Route with default handling"+description = "Route with default handling"inputs = { classification = "DocumentType" }output = "ProcessedDocument"expression = "classification.type"@@ -106,7 +106,7 @@ receipt = "process_receipt"[pipe.process_invoice]type = "PipeLLM"-description ="Process invoice documents"+description = "Process invoice documents"inputs = { classification = "DocumentType" }output = "ProcessedDocument"prompt_template = """@@ -115,7 +115,7 @@ Process this invoice document...[pipe.process_receipt]type = "PipeLLM"-description ="Process receipt documents"+description = "Process receipt documents"inputs = { classification = "DocumentType" }output = "ProcessedDocument"prompt_template = """@@ -124,7 +124,7 @@ Process this receipt document...[pipe.process_unknown]type = "PipeLLM"-description ="Handle unknown document types"+description = "Handle unknown document types"inputs = { classification = "DocumentType" }output = "ProcessedDocument"prompt_template = """diff --git a/docs/pages/build-reliable-ai-workflows-with-pipelex/pipe-operators/PipeLLM.md b/docs/pages/build-reliable-ai-workflows-with-pipelex/pipe-operators/PipeLLM.mdindex 24698ff8f..9a54cb136 100644--- a/docs/pages/build-reliable-ai-workflows-with-pipelex/pipe-operators/PipeLLM.md+++ b/docs/pages/build-reliable-ai-workflows-with-pipelex/pipe-operators/PipeLLM.md@@ -41,7 +41,7 @@ You can use any concept that refines `Image` as an input, and choose descriptive```plx[pipe.analyze_wedding]type = "PipeLLM"-description ="Analyze wedding photo"+description = "Analyze wedding photo"inputs = { wedding_photo = "images.Photo" }output = "PhotoAnalysis"prompt_template = """@@ -56,7 +56,7 @@ When working with structured content that contains image fields (like `PageConte```plx[pipe.analyze_page_view]type = "PipeLLM"-description ="Analyze the visual layout of a page"+description = "Analyze the visual layout of a page"inputs = { "page_content.page_view" = "Image" }output = "LayoutAnalysis"prompt_template = """@@ -77,7 +77,7 @@ You can include multiple images in a single prompt by listing them in the inputs```plx[pipe.compare_images]type = "PipeLLM"-description ="Compare two images"+description = "Compare two images"inputs = {first_image = "Image",second_image = "Image"@@ -95,7 +95,7 @@ You can mix any stuff and image inputs in the same pipe:```plx[pipe.analyze_document_with_context]type = "PipeLLM"-description ="Analyze a document page with additional context"+description = "Analyze a document page with additional context"inputs = {context = "Text",document.page_view = "Image"@@ -149,7 +149,7 @@ This pipe takes no input and writes a poem.```plx[pipe.write_poem]type = "PipeLLM"-description ="Write a short poem"+description = "Write a short poem"output = "Text"llm = "llm_for_creative_writing"prompt = """@@ -164,7 +164,7 @@ This pipe summarizes an input text, using a `prompt_template` to inject the inpu```plx[pipe.summarize_text]type = "PipeLLM"-description ="Summarize a text"+description = "Summarize a text"inputs = { text = "TextToSummarize" }output = "TextSummary"prompt_template = """@@ -183,7 +183,7 @@ This pipe takes an image of a table and uses a VLM to extract the content as an```plx[pipe.extract_table_from_image]type = "PipeLLM"-description ="Extract table data from an image"+description = "Extract table data from an image"inputs = { image = "TableScreenshot" }output = "TableData"prompt_template = """@@ -201,7 +201,7 @@ structure = "Expense" # Assumes a Pydantic model 'Expense' is defined[pipe.process_expense_report]type = "PipeLLM"-description ="Process an expense report"+description = "Process an expense report"inputs = { report = "ExpenseReport" }output = "ProcessedExpenseReport"prompt_template = """