From ca4562c5557cc8b0fb57ad502931971d54d2e27f Mon Sep 17 00:00:00 2001 From: Nicola Rohner <55987661+nicolarohner1337@users.noreply.github.com> Date: Thu, 29 Jan 2026 14:57:22 +0100 Subject: [PATCH] Update import statement for Document class Deprecated import path --- bertopic/representation/_langchain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bertopic/representation/_langchain.py b/bertopic/representation/_langchain.py index b80d9b77..1462ca56 100644 --- a/bertopic/representation/_langchain.py +++ b/bertopic/representation/_langchain.py @@ -1,5 +1,5 @@ import pandas as pd -from langchain.docstore.document import Document +from langchain_core.documents import Document from scipy.sparse import csr_matrix from typing import Callable, Mapping, List, Tuple, Union