Creating and Using Custom Graphs

7. Creating and Using Custom Graphs#

7.1. Creating Custom Graphs#

Maeser uses LangGraph compiled state graph objects. Refer to the LangGraph documentation for reference and tutorials on how to create custom graphs.

7.2. Using Custom Graphs in Maeser#

As shown in the example application documentation you register compiled state graph objects as branches to the chat sessions manager with its name and label:

compiled_graph = graph_builder.compile()

sessions_manager.register_branch("rag", "Simple RAG", simple_rag)