---
title: "Comment by Star Ali on \"Build a chatbot with custom knowledge base using Python and GPT-3\" | Hashnode"
description: "Hello, Could someone please help here, I am encountering the following error: ImportError: cannot import name &#39;BaseLanguageModel&#39; from &#39;langchain.sc"
url: "https://hashnode.com/posts/build-a-chatbot-with-custom-knowledge-base-using-python-and-gpt-3/6422ca85eb0636e9a590e7a6/comment/647f88f87fef2032a2441a79"
---

[Discussion](https://hashnode.com/posts/build-a-chatbot-with-custom-knowledge-base-using-python-and-gpt-3/6422ca85eb0636e9a590e7a6)

Comment [Build a chatbot with custom knowledge base using Python and GPT-3](https://hashnode.com/posts/build-a-chatbot-with-custom-knowledge-base-using-python-and-gpt-3/6422ca85eb0636e9a590e7a6)

[Star Ali](https://hashnode.com/@istar007)

[Jun 6, 2023](https://hashnode.com/posts/build-a-chatbot-with-custom-knowledge-base-using-python-and-gpt-3/6422ca85eb0636e9a590e7a6/comment/647f88f87fef2032a2441a79)

Hello,

Could someone please help here, I am encountering the following error:

ImportError: cannot import name 'BaseLanguageModel' from 'langchain.schema

Tried resolving the issue by: Updating libraries Updating pip< bu no soultion
