Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

fix(dspy): run ruff

Anindyadeep6a9de6545a68
diff --git a/dsp/modules/sentence_vectorizer.py b/dsp/modules/sentence_vectorizer.py
index a2bfb16ef..3d8e0fd37 100644
--- a/dsp/modules/sentence_vectorizer.py
+++ b/dsp/modules/sentence_vectorizer.py
@@ -307,7 +307,7 @@ class PremAIVectorizer(BaseSentenceVectorizer):
end_idx = (cur_batch_idx + 1) * self.embed_batch_size
current_batch = text_to_vectorize[start_idx:end_idx]
embeddings = self.client.embeddings.create(
- project_id=self.project_id, model=self.model_name, input=current_batch
+ project_id=self.project_id, model=self.model_name, input=current_batch,
).data
current_batch_embeddings = [embedding.embedding for embedding in embeddings]
embedding_list.extend(current_batch_embeddings)