Skip to content

Commit cdd6fc6

Browse files
szymondudyczManul from Pathway
authored andcommitted
Fix cannot pickle error (#7598)
GitOrigin-RevId: 811d7277db2729321f7135140142303668de912e
1 parent c31390e commit cdd6fc6

File tree

13 files changed

+5
-37
lines changed

13 files changed

+5
-37
lines changed

examples/pipelines/adaptive-rag/app.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,12 @@ class App(BaseModel):
2626
port: int = 8000
2727

2828
with_cache: bool = True
29-
cache_backend: InstanceOf[pw.persistence.Backend] = (
30-
pw.persistence.Backend.filesystem("./Cache")
31-
)
3229
terminate_on_error: bool = False
3330

3431
def run(self) -> None:
3532
server = QASummaryRestServer(self.host, self.port, self.question_answerer)
3633
server.run(
3734
with_cache=self.with_cache,
38-
cache_backend=self.cache_backend,
3935
terminate_on_error=self.terminate_on_error,
4036
)
4137

examples/pipelines/adaptive-rag/app.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ question_answerer: !pw.xpacks.llm.question_answering.AdaptiveRAGQuestionAnswerer
6969

7070
# Cache configuration
7171
# with_cache: true
72-
# cache_backend: !pw.persistence.Backend.filesystem
73-
# path: ".Cache"
7472

7573
# Set `terminate_on_error` to true if you want the program to terminate whenever any error is encountered
7674
# terminate_on_error: false

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,12 @@ class App(BaseModel):
2626
port: int = 8000
2727

2828
with_cache: bool = True
29-
cache_backend: InstanceOf[pw.persistence.Backend] = (
30-
pw.persistence.Backend.filesystem("./Cache")
31-
)
3229
terminate_on_error: bool = False
3330

3431
def run(self) -> None:
3532
server = DocumentStoreServer(self.host, self.port, self.document_store)
3633
server.run(
3734
with_cache=self.with_cache,
38-
cache_backend=self.cache_backend,
3935
terminate_on_error=self.terminate_on_error,
4036
)
4137

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ document_store: !pw.xpacks.llm.document_store.DocumentStore
5656

5757
# Cache configuration
5858
# with_cache: true
59-
# cache_backend: !pw.persistence.Backend.filesystem
60-
# path: ".Cache"
6159

6260
# Set `terminate_on_error` to true if you want the program to terminate whenever any error is encountered
6361
# terminate_on_error: false

examples/pipelines/demo-question-answering/.env

Lines changed: 0 additions & 1 deletion
This file was deleted.

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,12 @@ class App(BaseModel):
2626
port: int = 8000
2727

2828
with_cache: bool = True
29-
cache_backend: InstanceOf[pw.persistence.Backend] = (
30-
pw.persistence.Backend.filesystem("./Cache")
31-
)
3229
terminate_on_error: bool = False
3330

3431
def run(self) -> None:
3532
server = QASummaryRestServer(self.host, self.port, self.question_answerer)
3633
server.run(
3734
with_cache=self.with_cache,
38-
cache_backend=self.cache_backend,
3935
terminate_on_error=self.terminate_on_error,
4036
)
4137

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ question_answerer: !pw.xpacks.llm.question_answering.BaseRAGQuestionAnswerer
6565

6666
# Cache configuration
6767
# with_cache: true
68-
# cache_backend: !pw.persistence.Backend.filesystem
69-
# path: ".Cache"
7068

7169
# Set `terminate_on_error` to true if you want the program to terminate whenever any error is encountered
7270
# terminate_on_error: false

examples/pipelines/gpt_4o_multimodal_rag/app.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,12 @@ class App(BaseModel):
3636
port: int = 8000
3737

3838
with_cache: bool = True
39-
cache_backend: InstanceOf[pw.persistence.Backend] = (
40-
pw.persistence.Backend.filesystem("./Cache")
41-
)
4239
terminate_on_error: bool = False
4340

4441
def run(self) -> None:
4542
server = QASummaryRestServer(self.host, self.port, self.question_answerer)
4643
server.run(
4744
with_cache=self.with_cache,
48-
cache_backend=self.cache_backend,
4945
terminate_on_error=self.terminate_on_error,
5046
)
5147

examples/pipelines/gpt_4o_multimodal_rag/app.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ question_answerer: !pw.xpacks.llm.question_answering.BaseRAGQuestionAnswerer
7777

7878
# Cache configuration
7979
# with_cache: true
80-
# cache_backend: !pw.persistence.Backend.filesystem
81-
# path: ".Cache"
8280

8381
# Set `terminate_on_error` to true if you want the program to terminate whenever any error is encountered
8482
# terminate_on_error: false

examples/pipelines/private-rag/app.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,12 @@ class App(BaseModel):
2626
port: int = 8000
2727

2828
with_cache: bool = True
29-
cache_backend: InstanceOf[pw.persistence.Backend] = (
30-
pw.persistence.Backend.filesystem("./Cache")
31-
)
3229
terminate_on_error: bool = False
3330

3431
def run(self) -> None:
3532
server = QASummaryRestServer(self.host, self.port, self.question_answerer)
3633
server.run(
3734
with_cache=self.with_cache,
38-
cache_backend=self.cache_backend,
3935
terminate_on_error=self.terminate_on_error,
4036
)
4137

0 commit comments

Comments
 (0)