0
0
LangChainframework~10 mins

LangChain ecosystem (LangSmith, LangGraph, LangServe) - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to import the LangSmith client correctly.

LangChain
from langchain.[1] import LangSmithClient
Drag options to blanks, or click blank then click option'
Alangsmith
Blanggraph
Clangserve
Dcore
Attempts:
3 left
💡 Hint
Common Mistakes
Importing LangSmithClient from langgraph or langserve modules.
Using incorrect module names like 'core'.
2fill in blank
medium

Complete the code to create a LangGraph client instance.

LangChain
client = [1]()
Drag options to blanks, or click blank then click option'
ALangServeClient
BLangGraphClient
CLangSmithClient
DLangChainClient
Attempts:
3 left
💡 Hint
Common Mistakes
Using LangSmithClient or LangServeClient instead of LangGraphClient.
Trying to instantiate a non-existent LangChainClient.
3fill in blank
hard

Fix the error in this LangServe server start code by filling the blank.

LangChain
from langchain.[1] import start_server

start_server()
Drag options to blanks, or click blank then click option'
Alanggraph
Blangsmith
Clangserve
Dcore
Attempts:
3 left
💡 Hint
Common Mistakes
Importing start_server from langsmith or langgraph modules.
Forgetting to import start_server before calling it.
4fill in blank
hard

Fill both blanks to create a LangSmith client and log a run.

LangChain
client = [1]()
run = client.[2](name="test_run")
Drag options to blanks, or click blank then click option'
ALangSmithClient
BLangGraphClient
Cstart_server
Dlog_run
Attempts:
3 left
💡 Hint
Common Mistakes
Using LangGraphClient instead of LangSmithClient.
Calling start_server instead of log_run on the client.
5fill in blank
hard

Fill all three blanks to import LangGraphClient, create it, and visualize a graph.

LangChain
from langchain.[1] import [2]
client = [2]()
client.[3]()
Drag options to blanks, or click blank then click option'
Alanggraph
BLangGraphClient
Cvisualize
Dlangsmith
Attempts:
3 left
💡 Hint
Common Mistakes
Importing from langsmith or using LangSmithClient here.
Calling wrong methods like start_server instead of visualize.