File tree Expand file tree Collapse file tree 13 files changed +5
-37
lines changed Expand file tree Collapse file tree 13 files changed +5
-37
lines changed Original file line number Diff line number Diff line change @@ -26,16 +26,12 @@ class App(BaseModel):
26
26
port : int = 8000
27
27
28
28
with_cache : bool = True
29
- cache_backend : InstanceOf [pw .persistence .Backend ] = (
30
- pw .persistence .Backend .filesystem ("./Cache" )
31
- )
32
29
terminate_on_error : bool = False
33
30
34
31
def run (self ) -> None :
35
32
server = QASummaryRestServer (self .host , self .port , self .question_answerer )
36
33
server .run (
37
34
with_cache = self .with_cache ,
38
- cache_backend = self .cache_backend ,
39
35
terminate_on_error = self .terminate_on_error ,
40
36
)
41
37
Original file line number Diff line number Diff line change @@ -69,8 +69,6 @@ question_answerer: !pw.xpacks.llm.question_answering.AdaptiveRAGQuestionAnswerer
69
69
70
70
# Cache configuration
71
71
# with_cache: true
72
- # cache_backend: !pw.persistence.Backend.filesystem
73
- # path: ".Cache"
74
72
75
73
# Set `terminate_on_error` to true if you want the program to terminate whenever any error is encountered
76
74
# terminate_on_error: false
Original file line number Diff line number Diff line change @@ -26,16 +26,12 @@ class App(BaseModel):
26
26
port : int = 8000
27
27
28
28
with_cache : bool = True
29
- cache_backend : InstanceOf [pw .persistence .Backend ] = (
30
- pw .persistence .Backend .filesystem ("./Cache" )
31
- )
32
29
terminate_on_error : bool = False
33
30
34
31
def run (self ) -> None :
35
32
server = DocumentStoreServer (self .host , self .port , self .document_store )
36
33
server .run (
37
34
with_cache = self .with_cache ,
38
- cache_backend = self .cache_backend ,
39
35
terminate_on_error = self .terminate_on_error ,
40
36
)
41
37
Original file line number Diff line number Diff line change @@ -56,8 +56,6 @@ document_store: !pw.xpacks.llm.document_store.DocumentStore
56
56
57
57
# Cache configuration
58
58
# with_cache: true
59
- # cache_backend: !pw.persistence.Backend.filesystem
60
- # path: ".Cache"
61
59
62
60
# Set `terminate_on_error` to true if you want the program to terminate whenever any error is encountered
63
61
# terminate_on_error: false
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -26,16 +26,12 @@ class App(BaseModel):
26
26
port : int = 8000
27
27
28
28
with_cache : bool = True
29
- cache_backend : InstanceOf [pw .persistence .Backend ] = (
30
- pw .persistence .Backend .filesystem ("./Cache" )
31
- )
32
29
terminate_on_error : bool = False
33
30
34
31
def run (self ) -> None :
35
32
server = QASummaryRestServer (self .host , self .port , self .question_answerer )
36
33
server .run (
37
34
with_cache = self .with_cache ,
38
- cache_backend = self .cache_backend ,
39
35
terminate_on_error = self .terminate_on_error ,
40
36
)
41
37
Original file line number Diff line number Diff line change @@ -65,8 +65,6 @@ question_answerer: !pw.xpacks.llm.question_answering.BaseRAGQuestionAnswerer
65
65
66
66
# Cache configuration
67
67
# with_cache: true
68
- # cache_backend: !pw.persistence.Backend.filesystem
69
- # path: ".Cache"
70
68
71
69
# Set `terminate_on_error` to true if you want the program to terminate whenever any error is encountered
72
70
# terminate_on_error: false
Original file line number Diff line number Diff line change @@ -36,16 +36,12 @@ class App(BaseModel):
36
36
port : int = 8000
37
37
38
38
with_cache : bool = True
39
- cache_backend : InstanceOf [pw .persistence .Backend ] = (
40
- pw .persistence .Backend .filesystem ("./Cache" )
41
- )
42
39
terminate_on_error : bool = False
43
40
44
41
def run (self ) -> None :
45
42
server = QASummaryRestServer (self .host , self .port , self .question_answerer )
46
43
server .run (
47
44
with_cache = self .with_cache ,
48
- cache_backend = self .cache_backend ,
49
45
terminate_on_error = self .terminate_on_error ,
50
46
)
51
47
Original file line number Diff line number Diff line change @@ -77,8 +77,6 @@ question_answerer: !pw.xpacks.llm.question_answering.BaseRAGQuestionAnswerer
77
77
78
78
# Cache configuration
79
79
# with_cache: true
80
- # cache_backend: !pw.persistence.Backend.filesystem
81
- # path: ".Cache"
82
80
83
81
# Set `terminate_on_error` to true if you want the program to terminate whenever any error is encountered
84
82
# terminate_on_error: false
Original file line number Diff line number Diff line change @@ -26,16 +26,12 @@ class App(BaseModel):
26
26
port : int = 8000
27
27
28
28
with_cache : bool = True
29
- cache_backend : InstanceOf [pw .persistence .Backend ] = (
30
- pw .persistence .Backend .filesystem ("./Cache" )
31
- )
32
29
terminate_on_error : bool = False
33
30
34
31
def run (self ) -> None :
35
32
server = QASummaryRestServer (self .host , self .port , self .question_answerer )
36
33
server .run (
37
34
with_cache = self .with_cache ,
38
- cache_backend = self .cache_backend ,
39
35
terminate_on_error = self .terminate_on_error ,
40
36
)
41
37
You can’t perform that action at this time.
0 commit comments