ValueError Self query retriever with Vector Store type <class 'langchain_community.vectorstores.chroma.Chroma'> not supported

Hi, I can’t run the below code from the ‘Retrieval’ chapter of the course:

document_content_description = “Lecture notes”
llm = OpenAI(model=‘gpt-3.5-turbo-instruct’, temperature=0)
retriever = SelfQueryRetriever.from_llm(
llm,
vectordb,
document_content_description,
metadata_field_info,
verbose=True
)

I get the following error: ValueError: Self query retriever with Vector Store type <class ‘langchain_community.vectorstores.chroma.Chroma’> not supported.

Can’t see any info in this Q&A or Chroma/Langchain docs.

Please can someone advise?

Thank you

Hi, facing the same issue,
have you found any solution to this ?

Hi, no I didn’t find a solution and had to give up!

Please change the way you import chroma.

Right way:

from langchain_community.vectorstores import Chroma