From 390ad3dfcf79a88fc654bced4398224f16dcfbe6 Mon Sep 17 00:00:00 2001 From: noman bhimani Date: Fri, 18 Jul 2025 18:30:30 +0530 Subject: [PATCH] Update populate_database.py In LangChain 0.2.9, the built-in Chroma vector store was deprecated. Future releases (1.0 and later) will completely remove the class. Required Change: You now need to install and import the Chroma class from the new separate package langchain-chroma rather than from the core LangChain package. --- populate_database.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/populate_database.py b/populate_database.py index 3d2a1ab8a..9b581842d 100644 --- a/populate_database.py +++ b/populate_database.py @@ -5,7 +5,8 @@ from langchain_text_splitters import RecursiveCharacterTextSplitter from langchain.schema.document import Document from get_embedding_function import get_embedding_function -from langchain.vectorstores.chroma import Chroma +from langchain_chroma import Chroma + CHROMA_PATH = "chroma"