The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
community[pathch]: Add missing custom content_key handling in Redis vector store (#27736)
Qier LU8d8e38b090fc
diff --git a/libs/community/langchain_community/vectorstores/redis/base.py b/libs/community/langchain_community/vectorstores/redis/base.pyindex e88938ce2c..e18660a6e3 100644--- a/libs/community/langchain_community/vectorstores/redis/base.py+++ b/libs/community/langchain_community/vectorstores/redis/base.py@@ -866,7 +866,8 @@ class Redis(VectorStore):metadata = {"id": result.id}metadata.update(self._collect_metadata(result))- doc = Document(page_content=result.content, metadata=metadata)+ content_key = self._schema.content_key+ doc = Document(page_content=getattr(result, content_key), metadata=metadata)distance = self._calculate_fp_distance(result.distance)docs_with_scores.append((doc, distance))