No Curso, creio que poderia trazer os recursos estudados anteriormente para uma melhor fixação do aprendizado.
Para a observabilidade dos Grafos, implementei o SET_DEBUG e o LangSmith. Super recomendo!
Por exemplo na Aula 6, "Orquestrano Multiagentes" - Grafo Completo, inseri no final o SET_DEBUG e repeti a pesquisa:
# >>>>> ----- Inserting DEBUG ------ <<<<<
from langchain_core.output_parsers import JsonOutputParser
from pydantic import Field, BaseModel
from langchain_core.globals import set_debug
# Calling DEBUG
# this command allows visualizing all the LLM chain flow
set_debug (True)
# Mesma pesquisa, porém com **SET DEBUG**
thread = {"configurable": {"thread_id": "1"}}
for s in graph.stream({
'task': "Qual é a diferença entre o LangChain e o LangSmith?",
"max_revisions": 2,
"revision_number": 1,
"content": [],
}, thread):
print(s)