Short course "AI Agents in LangGraph" needs to be fixed in Lesson 4

Hi!

Lesson 4: Persistence and Streaming in short course: AI Agents in LangGraph

is broken in several places. Please take care to fix it.

1st ::
from langgraph.checkpoint.sqlite import SqliteSaver

memory = SqliteSaver.from_conn_string(“:memory:”)

results in ModuleNotFoundError: No module named ‘langgraph.checkpoint.sqlite’

I updated my notebook in order to be able to run it successfully according to the feedback here:

2nd :: Streaming tokens is not working. I could fix the code to execute but it never returns the tokens but only this part:
Calling: {‘name’: ‘tavily_search_results_json’, ‘args’: {‘query’: ‘current weather in Sofia’}, ‘id’: ‘call_uLoGSgAOu2xBmduJAnHPyQCq’, ‘type’: ‘tool_call’}
Back to the model!

Please update the code to show how to get the actual tokens or update the lesson.

According to my debugging with the help of gpt-o1:
Based on your debug output, your model is sending only a single chunk with either an empty content or the full final content—i.e. no incremental tokens at all.

Thanks!
Jenya

here’s a link to github repo where I have fixed this issue. Take a look at the requirements.txt.

1 Like

@Sangy , that’s nice but it would be even better if the DeepLearning.AI people fix the Notebooks for everyone who attempts to take the course and is not aware that there are issues.

@Jenys absolutely, I have requested them to let us know the package versions here

1 Like

This thread would be far more noticeable if it was placed in the forum area for the course it is discussing.

The “Learning Platform Feedback” topic is a bit of a ghost town.

@TMosh ,The whole community platform structure is a mess for me. It could have been done better. Can you please share a link to the place you suggest. Thanks!

For reference, see the “Short Courses” link in the left-side menu. There, each course has a dedicated forum area.

You can move this thread by using the “pencil” icon in the thread title. Scroll all the way to the top of this page. Click on the “pencil”. Pick the correct forum using the drop-down list and search tool. Then add a week number tag or topic name.

1 Like

You mean the Short Course Q&A, where I need to read all the tiles to fine the course I am looking for :slight_smile: I will know for the future but imagine if they add more courses to this page where you can’t search by course name…

There is a search bar to find a specific course.

Yes, I found one on the home page and then it is gone as soon as you enter any of the categories :slight_smile: Sorry, I don’t mean to complain but do believe a better organisation of the content and the navigation could be helpful.

I’ll move the thread myself.

I don’t disagree that the discussion organization is a bit complex.

1 Like