Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix:embedding_model class SILICONFLOWEmbed(Base)Function reusing json (#8378)

Stephen Huef5e7d8c448a
diff --git a/rag/llm/embedding_model.py b/rag/llm/embedding_model.py
index b9a40bbd06..25cbc5250e 100644
--- a/rag/llm/embedding_model.py
+++ b/rag/llm/embedding_model.py
@@ -762,7 +762,7 @@ class SILICONFLOWEmbed(Base):
"input": text,
"encoding_format": "float",
}
- response = requests.post(self.base_url, json=payload, headers=self.headers).json()
+ response = requests.post(self.base_url, json=payload, headers=self.headers)
try:
res = response.json()
return np.array(res["data"][0]["embedding"]), self.total_token_count(res)