The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
community: Register pandas df in duckdb when creating vector_store (#23690)
Tim Van Wassenhove24916c670311
diff --git a/libs/community/langchain_community/vectorstores/duckdb.py b/libs/community/langchain_community/vectorstores/duckdb.pyindex e949d6ac1a..de333693ff 100644--- a/libs/community/langchain_community/vectorstores/duckdb.py+++ b/libs/community/langchain_community/vectorstores/duckdb.py@@ -191,6 +191,7 @@ class DuckDB(VectorStore):if have_pandas:# noinspection PyUnusedLocaldf = pd.DataFrame.from_dict(data) # noqa: F841+ self._connection.register("df", df)self._connection.execute(f"INSERT INTO {self._table_name} SELECT * FROM df",)