Skip to content

[#910] Guide: Chat bot application example using langchain4j-cdi and RAG#911

Merged
rhusar merged 1 commit into
wildfly:mainfrom
yersan:chat-bot-guide
Jul 23, 2026
Merged

[#910] Guide: Chat bot application example using langchain4j-cdi and RAG#911
rhusar merged 1 commit into
wildfly:mainfrom
yersan:chat-bot-guide

Conversation

@yersan

@yersan yersan commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Fixes #910

Requires sample code available at wildfly-extras/guides#12

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

A preview of this PR is available at https://pr-911-wildfly-org.surge.sh

@yersan

yersan commented Jun 11, 2026

Copy link
Copy Markdown
Contributor Author

@ehsavoie Could you take a look at this one when you have a chance? thanks!

@yersan
yersan requested a review from ehsavoie June 11, 2026 13:42
@yersan

yersan commented Jun 22, 2026

Copy link
Copy Markdown
Contributor Author

Hello @ehsavoie any chance to take a look at this guide from your side soon?

@ehsavoie ehsavoie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should ensure consistency on the Chat Bot vs Chatbot wording. Otherwise it looks very good. Thanks a lot for writting that

include::../../templates/partials/guides/prerequisites.adoc[]
* Ollama installed and running with the `ollama serve` command. You can follow the instructions at https://docs.ollama.com/linux[Ollama installation guide, window=_blank] to install Ollama on your machine.

== A Simple Chat Bot example

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chat Bot or Chatbot ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, let's choose Chatbot

The source code of the application developed in this guide is available at https://github.com/wildfly-extras/guides/tree/main/wildfly-car-booking-chat-bot[wildfly-car-booking-chat-bot, window=_blank].

include::../../templates/partials/guides/prerequisites.adoc[]
* Ollama installed and running with the `ollama serve` command. You can follow the instructions at https://docs.ollama.com/linux[Ollama installation guide, window=_blank] to install Ollama on your machine.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May add the alternative to use docker to run ollama ?

I think the ollama pull qwen3.5:4b should be written somewhere

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May add the alternative to use docker to run ollama ?

I've added a link to point out the docker alternative

I think the ollama pull qwen3.5:4b should be written somewhere

There is a note in that regards at the "Configure and Run the Application" section

@yersan

yersan commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the review @ehsavoie , I've just addressed your points

@yersan

yersan commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

@bstansberry Any chance for merging this soon?

Comment thread src/main/resources/application.properties Outdated
@yersan
yersan requested a review from rhusar July 14, 2026 12:15
@rhusar

rhusar commented Jul 14, 2026

Copy link
Copy Markdown
Member

@bstansberry Any chance for merging this soon?

@yersan I can handle this.

I will do a final review. In the mean time, when do you want to publish this? ASAP or do you want to schedule it around/after WF 41 announcement?

@rhusar rhusar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yersan More quality polish needed.

Comment thread content/guides/langchain-ai-chat-bot.adoc Outdated
Comment thread content/guides/langchain-ai-chat-bot.adoc Outdated
Comment thread content/guides/langchain-ai-chat-bot.adoc Outdated
Comment thread content/guides/langchain-ai-chat-bot.adoc Outdated
Comment thread content/guides/langchain-ai-chat-bot.adoc
Comment thread content/guides/langchain-ai-chat-bot.adoc Outdated

@yersan yersan left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tnanks @rhusar , I've applied all your code change suggestions and followed the reviewed items

@yersan
yersan requested a review from rhusar July 14, 2026 14:20
@yersan

yersan commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

@rhusar

I will do a final review. In the mean time, when do you want to publish this? ASAP or do you want to schedule it around/after WF 41 announcement?

The archetype is using WF 40.0.0, maybe does it make sense to wait until WF 41 and change the default version? It doesn't matter at all ... WDYT?

@rhusar

rhusar commented Jul 14, 2026

Copy link
Copy Markdown
Member

@yersan Given where we are, close to releasing WF 41, I would recommend basing this on it and publishing shortly after the release for better reach. But up to U.

@yersan

yersan commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

Ok, thanks for the review @rhusar . I will update this guide to latest versions as soon as we have shipped WF41 and ping you back here when done

@rhusar rhusar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few more small changes needed.

Comment thread content/guides/langchain-ai-chat-bot.adoc Outdated
Comment thread content/guides/langchain-ai-chat-bot.adoc Outdated
Comment thread data/guides.yaml Outdated
Comment thread content/guides/langchain-ai-chat-bot.adoc Outdated
…di and RAG

Signed-off-by: Yeray Borges <yborgess@redhat.com>
@yersan

yersan commented Jul 21, 2026

Copy link
Copy Markdown
Contributor Author

I'm waiting for wildfly archetypes based on WF 41 to test this again locally, I'll ping here when done

@rhusar

rhusar commented Jul 22, 2026

Copy link
Copy Markdown
Member

@yersan They are still syncing as of this morning... maybe I can trigger it manually.

@rhusar

rhusar commented Jul 22, 2026

Copy link
Copy Markdown
Member

@yersan They are still syncing as of this morning... maybe I can trigger it manually.

@yersan finally synced... sigh! Give it a try now (for some reason I had to add -U...)

@yersan

yersan commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

@rhusar I ran the guide locally using WF41, all fine, I didn't find any errors, thanks for reviewing this!

@rhusar rhusar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Final 👍🏼

@rhusar
rhusar merged commit eae104d into wildfly:main Jul 23, 2026
1 check passed
@rhusar

rhusar commented Jul 23, 2026

Copy link
Copy Markdown
Member

Thanks you @yersan and @ehsavoie for the review!

@yersan
yersan deleted the chat-bot-guide branch July 23, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Guide: Chat bot application example using langchain4j-cdi and RAG

3 participants