Skip to content

The agent engineering platform.

comminuty[patch]:Fix Error in apache doris insert (#19989)

Guangdong Liue3c2431c5b99
diff --git a/libs/community/langchain_community/vectorstores/apache_doris.py b/libs/community/langchain_community/vectorstores/apache_doris.py
index 12e9b58304..79c85581a1 100644
--- a/libs/community/langchain_community/vectorstores/apache_doris.py
+++ b/libs/community/langchain_community/vectorstores/apache_doris.py
@@ -167,7 +167,7 @@ CREATE TABLE IF NOT EXISTS {self.config.database}.{self.config.table}(
(
f"'{self.escape_str(str(_n))}'"
if idx != embed_tuple_index
- else f"array<float>{str(_n)}"
+ else f"{str(_n)}"
)
for (idx, _n) in enumerate(n)
]