Skip to content

Commit fb31ec5

Browse files
szymondudyczKamilPiechowiak
authored andcommitted
Functions in YAML are not called if no arguments are provided (#8737)
Co-authored-by: Kamil Piechowiak <32928185+KamilPiechowiak@users.noreply.github.com> GitOrigin-RevId: 1c78a9c0bea82c80593844cf4120f8797643140e
1 parent f65904e commit fb31ec5

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

examples/pipelines/adaptive-rag/app.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,22 +50,22 @@ $llm: !pw.xpacks.llm.llms.OpenAIChat
5050
model: "gpt-4o-mini"
5151
retry_strategy: !pw.udfs.ExponentialBackoffRetryStrategy
5252
max_retries: 6
53-
cache_strategy: !pw.udfs.DefaultCache
53+
cache_strategy: !pw.udfs.DefaultCache {}
5454
temperature: 0
5555
capacity: 8
5656

5757
# Specifies the embedder model for converting text into embeddings.
5858
$embedder: !pw.xpacks.llm.embedders.OpenAIEmbedder
5959
model: "text-embedding-ada-002"
60-
cache_strategy: !pw.udfs.DefaultCache
60+
cache_strategy: !pw.udfs.DefaultCache {}
6161

6262
# Defines the splitter settings for dividing text into smaller chunks.
6363
$splitter: !pw.xpacks.llm.splitters.TokenCountSplitter
6464
max_tokens: 400
6565

6666
# Configures the parser for processing and extracting information from documents.
6767
$parser: !pw.xpacks.llm.parsers.DoclingParser
68-
cache_strategy: !pw.udfs.DefaultCache
68+
cache_strategy: !pw.udfs.DefaultCache {}
6969

7070
# Sets up the retriever factory for indexing and retrieving documents.
7171
$retriever_factory: !pw.stdlib.indexing.BruteForceKnnFactory

examples/pipelines/demo-document-indexing/app.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ $splitter: !pw.xpacks.llm.splitters.TokenCountSplitter
5252

5353
# Configures the parser for processing and extracting information from documents.
5454
$parser: !pw.xpacks.llm.parsers.UnstructuredParser
55-
cache_strategy: !pw.udfs.DefaultCache
55+
cache_strategy: !pw.udfs.DefaultCache {}
5656

5757
# Sets up the retriever factory for indexing and retrieving documents.
5858
$retriever_factory: !pw.stdlib.indexing.BruteForceKnnFactory

examples/pipelines/demo-question-answering/app.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ $llm: !pw.xpacks.llm.llms.OpenAIChat
4949
model: "gpt-4o"
5050
retry_strategy: !pw.udfs.ExponentialBackoffRetryStrategy
5151
max_retries: 6
52-
cache_strategy: !pw.udfs.DefaultCache
52+
cache_strategy: !pw.udfs.DefaultCache {}
5353
temperature: 0
5454
capacity: 8
5555

5656
# Specifies the embedder model for converting text into embeddings.
5757
$embedder: !pw.xpacks.llm.embedders.OpenAIEmbedder
5858
model: "text-embedding-ada-002"
59-
cache_strategy: !pw.udfs.DefaultCache
59+
cache_strategy: !pw.udfs.DefaultCache {}
6060

6161
# Defines the splitter settings for dividing text into smaller chunks.
6262
$splitter: !pw.xpacks.llm.splitters.TokenCountSplitter

examples/pipelines/gpt_4o_multimodal_rag/app.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,21 +50,21 @@ $llm: !pw.xpacks.llm.llms.OpenAIChat
5050
model: "gpt-3.5-turbo"
5151
retry_strategy: !pw.udfs.ExponentialBackoffRetryStrategy
5252
max_retries: 6
53-
cache_strategy: !pw.udfs.DefaultCache
53+
cache_strategy: !pw.udfs.DefaultCache {}
5454
temperature: 0
5555
capacity: 8
5656

5757
# Specifies the embedder model for converting text into embeddings.
5858
$embedder: !pw.xpacks.llm.embedders.OpenAIEmbedder
5959
model: "text-embedding-ada-002"
60-
cache_strategy: !pw.udfs.DefaultCache
60+
cache_strategy: !pw.udfs.DefaultCache {}
6161

6262
# Defines the splitter settings for dividing text into smaller chunks.
6363
$parsing_llm: !pw.xpacks.llm.llms.OpenAIChat
6464
model: "gpt-4o"
6565
retry_strategy: !pw.udfs.ExponentialBackoffRetryStrategy
6666
max_retries: 6
67-
cache_strategy: !pw.udfs.DefaultCache
67+
cache_strategy: !pw.udfs.DefaultCache {}
6868

6969
# Configures the parser for processing and extracting information from documents.
7070
$parser: !pw.xpacks.llm.parsers.DoclingParser

examples/pipelines/private-rag/app.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ $llm: !pw.xpacks.llm.llms.LiteLLMChat
5353
model: $llm_model
5454
retry_strategy: !pw.udfs.ExponentialBackoffRetryStrategy
5555
max_retries: 6
56-
cache_strategy: !pw.udfs.DefaultCache
56+
cache_strategy: !pw.udfs.DefaultCache {}
5757
temperature: 0
5858
api_base: "http://localhost:11434"
5959
# api_base: "http://host.docker.internal:11434" # use this when you are running the app in the Docker on Mac or Windows
@@ -72,7 +72,7 @@ $splitter: !pw.xpacks.llm.splitters.TokenCountSplitter
7272

7373
# Configures the parser for processing and extracting information from documents.
7474
$parser: !pw.xpacks.llm.parsers.UnstructuredParser
75-
cache_strategy: !pw.udfs.DefaultCache
75+
cache_strategy: !pw.udfs.DefaultCache {}
7676

7777
# Sets up the retriever factory for indexing and retrieving documents.
7878
$retriever_factory: !pw.stdlib.indexing.BruteForceKnnFactory

examples/pipelines/slides_ai_search/app.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ llm: !pw.xpacks.llm.llms.OpenAIChat
5050
max_retries: 6
5151
initial_delay: 2500
5252
backoff_factor: 2.5
53-
cache_strategy: !pw.udfs.DefaultCache
53+
cache_strategy: !pw.udfs.DefaultCache {}
5454
temperature: 0.0
5555
capacity: 8 # reduce this in case you are hitting API throttle limits
5656

5757
# Specifies the embedder model for converting text into embeddings.
5858
$embedder: !pw.xpacks.llm.embedders.OpenAIEmbedder
59-
cache_strategy: !pw.udfs.DefaultCache
59+
cache_strategy: !pw.udfs.DefaultCache {}
6060

6161
# Sets up the retriever factory for indexing and retrieving documents.
6262
retriever_factory: !pw.indexing.BruteForceKnnFactory

0 commit comments

Comments
 (0)