Skip to content

Commit 666d0d5

Browse files
committed
refactor: update _prepare_texts_to_embed to return a list instead of a dictionary
1 parent f8e5f8a commit 666d0d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • integrations/google_genai/src/haystack_integrations/components/embedders/google_genai

integrations/google_genai/src/haystack_integrations/components/embedders/google_genai/document_embedder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def from_dict(cls, data: Dict[str, Any]) -> "GoogleGenAIDocumentEmbedder":
120120
deserialize_secrets_inplace(data["init_parameters"], keys=["api_key"])
121121
return default_from_dict(cls, data)
122122

123-
def _prepare_texts_to_embed(self, documents: List[Document]) -> Dict[str, str]:
123+
def _prepare_texts_to_embed(self, documents: List[Document]) -> List[str]:
124124
"""
125125
Prepare the texts to embed by concatenating the Document text with the metadata fields to embed.
126126
"""

0 commit comments

Comments
 (0)