Skip to content

Commit

Permalink
update batch size
Browse files Browse the repository at this point in the history
  • Loading branch information
baptiste-pasquier committed Mar 25, 2024
1 parent 1ddee16 commit 62da81c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/rag_components/summarization.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async def generate_text_summaries(
text_list: list[str],
prompt_template: str,
model: BaseChatModel,
batch_size: int = 50,
batch_size: int = 10,
) -> list[str]:
"""Generate summaries for a list of texts.
Expand Down Expand Up @@ -79,7 +79,7 @@ async def generate_image_summaries(
img_mime_type_list: list[str],
prompt: str,
model: BaseChatModel,
batch_size: int = 50,
batch_size: int = 10,
) -> list[str]:
"""Generate summaries for a list of images encoded in base64.
Expand Down

0 comments on commit 62da81c

Please sign in to comment.