Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please provide a complete example of combining langgraph4j with langchain4j. Thank you #21

Open
smileyboy2019 opened this issue Sep 4, 2024 · 5 comments
Labels
discussion question Further information is requested wait feedback

Comments

@smileyboy2019
Copy link

According to the document description, it is not possible to create an example. I hope to learn through a complete example. Thank you

@bsorrentino
Copy link
Owner

bsorrentino commented Sep 6, 2024

Hi @smileyboy2019 thanks for interest

However Agent Executor and Adaptive RAG are already available as such example.

Let me know if this is what you were looking for

@smileyboy2019
Copy link
Author

Can you submit the complete demo to langchain4j? For example, the following address is for writing RAG code
https://github.com/langchain4j/langchain4j-examples/blob/main/rag-examples/src/main/java/_4_low_level/_01_Low_Level_Naive_RAG_Example.java

@bsorrentino
Copy link
Owner

@smileyboy2019 just a consideration about suggested example:

it is a simple sequence of steps without cycle and branch (where langgraph4j comes to play), so a chain is perfect fit to purpose.

what do you think about ?

@bsorrentino bsorrentino added question Further information is requested discussion labels Oct 31, 2024
@baijuexzz
Copy link

I don't think langGraph has much to do with langChain
langGraph is more of an orchestration job
Langchain is a development tool that simplifies large language models
Some components of langChain can serve as nodes of langGraph
The Node of langGraph may not be langChian

@bsorrentino
Copy link
Owner

bsorrentino commented Nov 16, 2024

Hi @baijuexzz

Your summary is essentially correct but not complete, Langgraph is an orchestration tool thought for implementing Agentic Architectures, both simple and complex

Overview

It is a library for building stateful, multi-actor applications with LLMs, used to create agent and multi-agent workflows. Compared to other LLM frameworks, it offers these core benefits: cycles, controllability, and persistence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion question Further information is requested wait feedback
Projects
None yet
Development

No branches or pull requests

3 participants