When executing the notebook L2-lcel-student locally I got an error at the following step,
vectorstore = DocArrayInMemorySearch.from_texts(
["harrison worked at kensho", "bears like to eat honey"],
retriever = vectorstore.as_retriever()
retriever.get_relevant_documents("where did harrison work?")
get_relevant_documents throws an error:
langchain vector store retriever validation errors for DocArrayDoc.
The following version work without error:
Could you share the versions that are used in the notebook on the course page?
I’ve tried running
!pip list in the notebook hosted at the course, but it says that pip is not installed.
I’ve downloaded and successfully run the notebook file on my local machine without any issues. My package versions for
langchain are 1.10.12 and 0.0.314, respectively.
If you’re still encountering problems, how about considering downloading and running it on your local machine?
Hi Taekyo, yes it works for me too on local machine with the following versions
My question was which versions that are run on the hosted notebook.
Oh I got it. You can check it on the hosted notebook by executing the following command.
My result is
I hope it will be helpful.
Keep it up~
What about openai version ?
I am having trouble making openai 1.2.3, langchain 0.0.335 and pydantic 2.5.0 nicely working together
I am answering to myself
I had sucess using versions mentioned in Adam’s post and downgrading openai to 0.28.1. It seems there are breaking changes in openai v1+ & pydantic v2+