This is a gradle powered SpringAI hello world project, fixes https://github.com/spring-projects/spring-ai/issues/245.

Also, there are mostly maven examples, so I attempted to create a gradle project.

Comment From: markpollack

Hi, I'd like to get this committed into a different repository related to spring-cli.

Spring CLI has the idea of project catalogs,

$ spring project-catalog list
┌────────┬───────────────────────┬──────────────────────────────────────────────┬────────────────────────────────┐
│Name    │Description            │URL                                           │Tags                            │
├────────┼───────────────────────┼──────────────────────────────────────────────┼────────────────────────────────┤
│gs      │Getting Started Catalog│https://github.com/rd-1-2022/spring-gs-catalog│[java-17, boot-3.1]             │
├────────┼───────────────────────┼──────────────────────────────────────────────┼────────────────────────────────┤
│ai-azure│Azure OpenAI Catalog.  │https://github.com/rd-1-2022/ai-azure-catalog │[java-17, boot-3.1.x, ai, azure]│
└────────┴───────────────────────┴──────────────────────────────────────────────┴────────────────────────────────┘

Adding the ai-azure catalog gives you these additional projects you can create

│ai-azure-hello-world      │AI - Hello, World                  │https://github.com/rd-1-2022/ai-azure-openai-helloworld             │ai-azure│[java-17, boot-3.1.x, ai,    │
│                          │                                   │                                                                    │        │azure, web]                  │
├──────────────────────────┼───────────────────────────────────┼────────────────────────────────────────────────────────────────────┼────────┼─────────────────────────────┤
│ai-azure-prompt-templating│AI - Prompt Templating             │https://github.com/rd-1-2022/ai-azure-prompt-template               │ai-azure│[java-17, boot-3.1.x, ai,    │
│                          │                                   │                                                                    │        │azure, prompt templating]    │
├──────────────────────────┼───────────────────────────────────┼────────────────────────────────────────────────────────────────────┼────────┼─────────────────────────────┤
│ai-azure-prompt-roles     │AI - Prompt Templating             │https://github.com/rd-1-2022/ai-azure-openai-prompt-roles           │ai-azure│[java-17, boot-3.1.x, ai,    │
│                          │                                   │                                                                    │        │azure, prompt roles]         │
├──────────────────────────┼───────────────────────────────────┼────────────────────────────────────────────────────────────────────┼────────┼─────────────────────────────┤
│ai-azure-output-parser    │AI - Output Parser                 │https://github.com/rd-1-2022/ai-azure-openai-output-parser          │ai-azure│[java-17, boot-3.1.x, ai,    │
│                          │                                   │                                                                    │        │azure, output parser]        │
├──────────────────────────┼───────────────────────────────────┼────────────────────────────────────────────────────────────────────┼────────┼─────────────────────────────┤
│ai-azure-stuff-prompt     │AI - Stuff the prompt              │https://github.com/rd-1-2022/ai-azure-stuff-prompt                  │ai-azure│[java-17, boot-3.1.x, ai,    │
│                          │                                   │                                                                    │        │azure, prompt stuff]         │
├──────────────────────────┼───────────────────────────────────┼────────────────────────────────────────────────────────────────────┼────────┼─────────────────────────────┤
│ai-azure-prompt-rag       │AI - Retrieval Augmented Generation│https://github.com/rd-1-2022/ai-azure-retrieval-augmented-generation│ai-azure│[java-17, boot-3.1.x, ai,    │
│                          │                                   │                                                                    │        │azure, retrieval]            │
└──────────────────────────┴───────────────────────────────────┴────────────────────────────────────────────────────────────────────┴────────┴─────────────────────────────┘

So running spring boot new aiapp ai-azure-prompt-rag will generate the RAG example. These are all maven based.

So long story short, the repositories with the code backing this catalog needs to also have gradle branches. The code for this is now in an org called https://github.com/rd-1-2022 which will be moved to https://github.com/spring-cli-projects

Then we can merge your code in there as it is part of that type of ecosystem of examples.

If you made a much more higher level or sophisticated example application, I'd be happy to put it on the page.

Comment From: ThomasVitale

I have many Spring AI examples in this repo and they are all using Gradle. https://github.com/ThomasVitale/llm-apps-java-spring-ai Sharing here in case it might useful to people working with Gradle.

Comment From: markpollack

I don't think we can accurately maintain a list of community sample applications, so closing.