Skip to content

Commit

Permalink
fix slides app args (#7889)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: da1276e94a8b18f0ff36a0ab2daff71d8d1e05f6
  • Loading branch information
berkecanrizai authored and Manul from Pathway committed Dec 19, 2024
1 parent ab8d3ce commit 8238697
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/pipelines/slides_ai_search/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG PATHWAY_SRC_IMAGE=pathwaycom/pathway:0.15.3
ARG PATHWAY_SRC_IMAGE=pathwaycom/pathway:latest

FROM ${PATHWAY_SRC_IMAGE}

Expand Down
5 changes: 2 additions & 3 deletions examples/pipelines/slides_ai_search/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import pathway as pw
from dotenv import load_dotenv
from pathway.xpacks import llm
from pathway_slides_ai_search import CustomDeckRetriever, add_slide_id, get_model
from pathway_slides_ai_search import DeckRetrieverWithFileSave, add_slide_id, get_model
from pydantic import BaseModel, ConfigDict, FilePath, InstanceOf


Expand Down Expand Up @@ -53,8 +53,7 @@ def run(self) -> None:
doc_post_processors=[add_slide_id],
)

app = CustomDeckRetriever(
llm=self.llm,
app = DeckRetrieverWithFileSave(
indexer=doc_store,
search_topk=self.search_topk,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def add_slide_id(text: str, metadata: dict) -> tuple[str, dict]:
return (text, metadata)


class CustomDeckRetriever(DeckRetriever):
class DeckRetrieverWithFileSave(DeckRetriever):
def dump_img_callback(self, key, row, time, is_addition):
# save images parsed by the Pathway
metadata = row["data"]
Expand Down

0 comments on commit 8238697

Please sign in to comment.