{"id":"6b08c24c38c84264c2027464","slug":"ai-in-java","title":"AI w Javie: oficjalne SDK, Spring AI i LangChain4j w praktyce","summary":"Mapa ekosystemu AI na JVM – kiedy wystarczy oficjalne SDK Anthropic, kiedy Spring AI, a kiedy LangChain4j – oraz strumieniowanie, ustrukturyzowane odpowiedzi w rekordach, narzędzia, RAG z pgvector i testy z atrapą modelu.","servedLang":"pl","availableLangs":["pl","en"],"topics":["ai-in-java","rag","tool-use","embeddings-vector-db"],"techs":["java"],"tags":["java","spring-ai","spring-boot","langchain4j","anthropic-sdk","pgvector","structured-outputs","claude"],"level":"intermediate","kind":"article","access":"members","status":"published","cover":null,"author":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","community":false},"readingMinutes":17,"stats":{"views":2,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-26T23:35:40.204Z","updatedAt":"2026-11-27T10:04:55.686Z","requestedLang":"pl","theme":{"hero":"classic","heroMedia":null,"accent":"rose","background":"tint","weaveResources":true,"toc":"right"},"seoDescription":"AI w Javie: Anthropic Java SDK (streaming, structured outputs, tool runner), Spring AI 2.1 (ChatClient, @Tool, QuestionAnswerAdvisor, pgvector) i LangChain4j (AiServices, RAG), testy i produkcja.","wordCount":3228,"doc":{"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"Większość systemów, które obsługują zamówienia, płatności i magazyny, działa na JVM – i to tam najczęściej trafia funkcja AI, a nie do osobnej usługi w Pythonie. Ekosystem Javy dojrzał do tego zadania: jest "},{"type":"text","text":"oficjalne SDK Anthropic","marks":[{"type":"bold"}]},{"type":"text","text":", "},{"type":"text","text":"Spring AI","marks":[{"type":"bold"}]},{"type":"text","text":" z integracją ze Spring Boot i "},{"type":"text","text":"LangChain4j","marks":[{"type":"bold"}]},{"type":"text","text":" z deklaratywnymi „usługami AI”. Ten przewodnik pokazuje te same zadania we wszystkich trzech podejściach i podpowiada, kiedy które wybrać."}]},{"type":"stats","attrs":{"items":[{"value":"3","label":"drogi na JVM","hint":"oficjalne SDK, Spring AI, LangChain4j"},{"value":"1","label":"rekord Javy","hint":"opisuje kształt odpowiedzi modelu i zamienia się w JSON Schema"},{"value":"2.1","label":"wersja Spring AI","hint":"GA w listopadzie 2026, na Spring Boot 4"}]}},{"type":"callout","attrs":{"variant":"info","title":"W skrócie"},"content":[{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Oficjalne SDK","marks":[{"type":"bold"}]},{"type":"text","text":" ("},{"type":"text","text":"com.anthropic:anthropic-java","marks":[{"type":"code"}]},{"type":"text","text":") daje pełny dostęp do API: strumieniowanie, ustrukturyzowane odpowiedzi mapowane na rekordy, tool runner, cache promptów i batch."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Spring AI","marks":[{"type":"bold"}]},{"type":"text","text":" wpina modele w świat Springa: "},{"type":"text","text":"ChatClient","marks":[{"type":"code"}]},{"type":"text","text":", narzędzia z adnotacją "},{"type":"text","text":"@Tool","marks":[{"type":"code"}]},{"type":"text","text":", doradców ("},{"type":"text","text":"advisors","marks":[{"type":"italic"}]},{"type":"text","text":") do RAG i logowania, autokonfigurację i obserwowalność przez Micrometer."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"LangChain4j","marks":[{"type":"bold"}]},{"type":"text","text":" buduje implementację Twojego interfejsu ("},{"type":"text","text":"AiServices","marks":[{"type":"code"}]},{"type":"text","text":") z pamięcią rozmowy, narzędziami i RAG – niezależnie od frameworka, także w Quarkusie i Helidonie."}]}]}]}]},{"type":"heading","attrs":{"level":2,"id":"problem-resttemplate-i-recznie-skladany-json"},"content":[{"type":"text","text":"Problem: RestTemplate i ręcznie składany JSON"}]},{"type":"paragraph","content":[{"type":"text","text":"Platforma zamówień Pierogarni Haliny to monolit w Spring Boot. Pierwszą funkcję AI – podsumowywanie reklamacji – zespół napisał na "},{"type":"text","text":"RestTemplate","marks":[{"type":"code"}]},{"type":"text","text":": JSON żądania składany ze stringów, odpowiedź parsowana przez "},{"type":"text","text":"ObjectMapper","marks":[{"type":"code"}]},{"type":"text","text":" do "},{"type":"text","text":"Map<String, Object>","marks":[{"type":"code"}]},{"type":"text","text":", a wynik wyciągany z tekstu wyrażeniem regularnym. Po miesiącu:"}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"zmiana formatu odpowiedzi modelu psuła parser raz w tygodniu,"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"każde wywołanie blokowało wątek serwera na kilkanaście sekund, więc pula wątków Tomcata wyczerpywała się w godzinach szczytu,"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"nikt nie wiedział, ile tokenów zużywa która funkcja, bo nie było metryk ani logów zużycia,"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"testy integracyjne wymagały klucza API, więc wyłączono je w CI."}]}]}]},{"type":"paragraph","content":[{"type":"text","text":"Każdy z tych problemów ma w ekosystemie Javy gotowe rozwiązanie – pod warunkiem, że wybierzesz właściwą warstwę."}]},{"type":"heading","attrs":{"level":2,"id":"mapa-ekosystemu"},"content":[{"type":"text","text":"Mapa ekosystemu"}]},{"type":"table","content":[{"type":"tableRow","content":[{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Warstwa"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Biblioteki"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Do czego"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"SDK dostawców"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"com.anthropic:anthropic-java","marks":[{"type":"code"}]},{"type":"text","text":", "},{"type":"text","text":"com.openai:openai-java","marks":[{"type":"code"}]}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"pełne API: streaming, structured outputs, tool runner, cache, batch, pliki"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Integracja ze Springiem"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Spring AI ("},{"type":"text","text":"spring-ai-starter-model-anthropic","marks":[{"type":"code"}]},{"type":"text","text":", "},{"type":"text","text":"spring-ai-client-chat","marks":[{"type":"code"}]},{"type":"text","text":")"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"ChatClient","marks":[{"type":"code"}]},{"type":"text","text":", "},{"type":"text","text":"@Tool","marks":[{"type":"code"}]},{"type":"text","text":", doradcy, autokonfiguracja, Micrometer"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Framework niezależny"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"LangChain4j ("},{"type":"text","text":"langchain4j","marks":[{"type":"code"}]},{"type":"text","text":", "},{"type":"text","text":"langchain4j-anthropic","marks":[{"type":"code"}]},{"type":"text","text":"), Quarkus LangChain4j"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"AiServices","marks":[{"type":"code"}]},{"type":"text","text":", pamięć, narzędzia, RAG, agenci"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Bazy wektorowe"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"pgvector, Qdrant, Elasticsearch, Redis – przez "},{"type":"text","text":"VectorStore","marks":[{"type":"code"}]},{"type":"text","text":" (Spring AI) lub "},{"type":"text","text":"EmbeddingStore","marks":[{"type":"code"}]},{"type":"text","text":" (LangChain4j)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"wyszukiwanie semantyczne – patrz "},{"type":"text","text":"embeddingi i bazy wektorowe","marks":[{"type":"link","attrs":{"href":"/pl/topics/embeddings-vector-db"}}]}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Embeddingi lokalne"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"spring-ai-transformers","marks":[{"type":"code"}]},{"type":"text","text":", "},{"type":"text","text":"langchain4j-embeddings-*","marks":[{"type":"code"}]},{"type":"text","text":" (ONNX)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"embeddingi w procesie JVM, bez wysyłania danych na zewnątrz"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Modele lokalne"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Ollama (moduły Spring AI i LangChain4j)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"otwarte modele na własnym sprzęcie – patrz "},{"type":"text","text":"lokalne modele","marks":[{"type":"link","attrs":{"href":"/pl/topics/local-llms"}}]}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Protokół"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"MCP Java SDK, starter MCP w Spring AI"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"serwery i klienci "},{"type":"text","text":"MCP","marks":[{"type":"link","attrs":{"href":"/pl/topics/mcp"}}]}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Obserwowalność i testy"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Micrometer, OpenTelemetry, JUnit, Testcontainers"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"metryki tokenów, tracing, testy z atrapą modelu"}]}]}]}]},{"type":"packageCard","attrs":{"eco":"maven","name":"org.springframework.ai:spring-ai-client-chat"}},{"type":"packageCard","attrs":{"eco":"maven","name":"dev.langchain4j:langchain4j"}},{"type":"diagram","attrs":{"kind":"mermaid","code":"flowchart TB\n  A[\"Nowa funkcja AI w aplikacji JVM\"] --> B([\"Aplikacja na Spring Boot?\"])\n  B -->|\"tak\"| C([\"Potrzebujesz funkcji API,<br/>których Spring AI nie wystawia?\"])\n  C -->|\"nie\"| D[\"Spring AI:<br/>ChatClient, @Tool, advisors\"]\n  C -->|\"tak\"| E[\"Oficjalne SDK<br/>(np. batch, nowe parametry)\"]\n  B -->|\"nie\"| F([\"Chcesz deklaratywnych usług AI<br/>z pamięcią i RAG?\"])\n  F -->|\"tak\"| G[\"LangChain4j AiServices<br/>(też Quarkus, Helidon)\"]\n  F -->|\"nie\"| E","caption":"Którą warstwę wybrać? Zacznij od najprostszej, która pasuje do Twojego stosu"}},{"type":"section","attrs":{"background":"dots","width":"wide","padding":"m"},"content":[{"type":"heading","attrs":{"level":2,"id":"jak-dojrzewal-ekosystem-jvm"},"content":[{"type":"text","text":"Jak dojrzewał ekosystem JVM"}]},{"type":"columns","attrs":{"layout":"1-1","valign":"top"},"content":[{"type":"column","content":[{"type":"paragraph","content":[{"type":"text","text":"Jeszcze w 2023 roku programiści Javy pisali integracje z modelami ręcznie albo przenosili pomysły z pythonowego LangChaina. Dziś wszystkie trzy drogi mają stabilne wersje, a Spring AI w module Anthropic korzysta pod spodem z oficjalnego SDK – więc nowe funkcje API trafiają do Springa szybciej niż kiedyś."}]},{"type":"paragraph","content":[{"type":"text","text":"Kod w tym artykule jest skompilowany z wersjami aktualnymi w listopadzie 2026: "},{"type":"text","text":"anthropic-java","marks":[{"type":"code"}]},{"type":"text","text":" 3.14, Spring AI 2.1 na Spring Boot 4.2 i LangChain4j 1.24. Starsze tutoriale często używają nazw API, które zmieniły się przy przejściu na wersje 1.x i 2.x."}]}]},{"type":"column","content":[{"type":"timeline","attrs":{"items":[{"date":"2023","title":"LangChain4j","text":"pierwsze wydania biblioteki inspirowanej LangChainem, ale projektowanej od zera dla Javy."},{"date":"2023","title":"Spring AI","text":"start projektu w ekosystemie Springa."},{"date":"2025","title":"Stabilne API","text":"marzec: anthropic-java 1.0; maj: LangChain4j 1.0 i Spring AI 1.0 GA."},{"date":"2026","title":"Spring AI 2.0","text":"czerwiec: nowa główna wersja na Spring Framework 7."},{"date":"2026","title":"anthropic-java 3.0","text":"październik: nowa główna wersja SDK razem z nową wersją API."},{"date":"2026","title":"Spring AI 2.1","text":"listopad: m.in. potwierdzanie wywołań narzędzi przez człowieka."}]}}]}]}]},{"type":"heading","attrs":{"level":2,"id":"oficjalne-sdk-strumieniowanie-i-odpowiedz-w-rekordzie"},"content":[{"type":"text","text":"Oficjalne SDK: strumieniowanie i odpowiedź w rekordzie"}]},{"type":"paragraph","content":[{"type":"text","text":"SDK Anthropic dla Javy ma budowniczych ("},{"type":"text","text":"builders","marks":[{"type":"italic"}]},{"type":"text","text":") dla każdego żądania i jeden klient, który jest bezpieczny wątkowo – tworzysz go raz, np. jako bean. Dla ustrukturyzowanych odpowiedzi wystarczy przekazać klasę rekordu do "},{"type":"text","text":"outputConfig(...)","marks":[{"type":"code"}]},{"type":"text","text":": SDK wygeneruje z niej JSON Schema, a odpowiedź zwróci jako gotowy obiekt."}]},{"type":"codeGroup","attrs":{"title":"Strumieniowanie i ekstrakcja zamówienia do rekordu"},"content":[{"type":"codeBlock","attrs":{"language":"java","filename":"StreamAnswer.java"},"content":[{"type":"text","text":"import com.anthropic.client.AnthropicClient;\nimport com.anthropic.client.okhttp.AnthropicOkHttpClient;\nimport com.anthropic.core.http.StreamResponse;\nimport com.anthropic.models.messages.MessageCreateParams;\nimport com.anthropic.models.messages.OutputConfig;\nimport com.anthropic.models.messages.RawMessageStreamEvent;\n\npublic class StreamAnswer {\n    public static void main(String[] args) {\n        // Reads ANTHROPIC_API_KEY from the environment; the client is thread-safe - create it once.\n        AnthropicClient client = AnthropicOkHttpClient.fromEnv();\n\n        MessageCreateParams params = MessageCreateParams.builder()\n                .model(\"claude-opus-5-5\")\n                .maxTokens(64000L)\n                .outputConfig(OutputConfig.builder().effort(OutputConfig.Effort.LOW).build())\n                .system(\"You are the support assistant of Halina's Pierogi. Answer briefly.\")\n                .addUserMessage(\"How long do you cook frozen pierogi?\")\n                .build();\n\n        // try-with-resources closes the HTTP stream even if the consumer stops early.\n        try (StreamResponse<RawMessageStreamEvent> stream = client.messages().createStreaming(params)) {\n            stream.stream()\n                    .flatMap(event -> event.contentBlockDelta().stream())\n                    .flatMap(delta -> delta.delta().text().stream())\n                    .forEach(text -> System.out.print(text.text()));\n        }\n    }\n}"}]},{"type":"codeBlock","attrs":{"language":"java","filename":"ExtractOrder.java"},"content":[{"type":"text","text":"import com.anthropic.client.AnthropicClient;\nimport com.anthropic.client.okhttp.AnthropicOkHttpClient;\nimport com.anthropic.models.messages.MessageCreateParams;\nimport com.anthropic.models.messages.StructuredMessageCreateParams;\nimport com.fasterxml.jackson.annotation.JsonPropertyDescription;\nimport java.util.List;\n\npublic class ExtractOrder {\n    enum Dish { RUSKIE, CABBAGE, MEAT, SPINACH }\n\n    record OrderLine(Dish dish, int quantity) {}\n\n    record OrderDraft(\n            List<OrderLine> lines,\n            @JsonPropertyDescription(\"HH:MM, or null when not given\") String pickupTime,\n            String notes) {}\n\n    public static void main(String[] args) {\n        AnthropicClient client = AnthropicOkHttpClient.fromEnv();\n\n        // outputConfig(Class) derives the JSON schema from the record and returns a typed builder.\n        StructuredMessageCreateParams<OrderDraft> params = MessageCreateParams.builder()\n                .model(\"claude-opus-5-5\")\n                .maxTokens(16000L)\n                .system(\"Turn the customer's message into an order draft. Do not invent dishes.\")\n                .outputConfig(OrderDraft.class)\n                .addUserMessage(\"2x ruskie and one cabbage for 18:30, no onion please\")\n                .build();\n\n        client.messages().create(params).content().stream()\n                .flatMap(block -> block.text().stream())\n                .forEach(typed -> {\n                    OrderDraft draft = typed.text(); // already deserialized\n                    draft.lines().forEach(l -> System.out.println(l.quantity() + \"x \" + l.dish()));\n                    System.out.println(\"pickup: \" + draft.pickupTime());\n                });\n    }\n}"}]}]},{"type":"paragraph","content":[{"type":"text","text":"Na co uważać:"}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Strumień trzeba zamknąć.","marks":[{"type":"bold"}]},{"type":"text","text":" "},{"type":"text","text":"StreamResponse","marks":[{"type":"code"}]},{"type":"text","text":" trzyma otwarte połączenie HTTP; "},{"type":"text","text":"try-with-resources","marks":[{"type":"code"}]},{"type":"text","text":" gwarantuje, że zostanie zamknięte, nawet gdy przerwiesz czytanie w połowie."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"effort","marks":[{"type":"code"}]},{"type":"text","text":" zamiast temperatury.","marks":[{"type":"bold"}]},{"type":"text","text":" Aktualne modele Claude nie przyjmują parametrów próbkowania; głębokość rozumowania ustawiasz w "},{"type":"text","text":"OutputConfig","marks":[{"type":"code"}]},{"type":"text","text":". Szczegóły w "},{"type":"text","text":"podstawach LLM","marks":[{"type":"link","attrs":{"href":"/pl/topics/llm-fundamentals"}}]},{"type":"text","text":"."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Adnotacje Jacksona to dokumentacja dla modelu.","marks":[{"type":"bold"}]},{"type":"text","text":" "},{"type":"text","text":"@JsonPropertyDescription","marks":[{"type":"code"}]},{"type":"text","text":" trafia do schematu i podpowiada modelowi format pola (np. "},{"type":"text","text":"HH:MM","marks":[{"type":"code"}]},{"type":"text","text":")."}]}]}]},{"type":"heading","attrs":{"level":2,"id":"narzedzia-tool-runner-na-klasach"},"content":[{"type":"text","text":"Narzędzia: tool runner na klasach"}]},{"type":"paragraph","content":[{"type":"text","text":"Pętlę "},{"type":"text","text":"tool use","marks":[{"type":"link","attrs":{"href":"/pl/topics/tool-use"}}]},{"type":"text","text":" w SDK Javy prowadzi "},{"type":"text","text":"tool runner","marks":[{"type":"bold"}]},{"type":"text","text":" (w wersji beta). Każde narzędzie to klasa implementująca "},{"type":"text","text":"Supplier<String>","marks":[{"type":"code"}]},{"type":"text","text":": publiczne pola stają się schematem argumentów, adnotacje Jacksona – opisami, a metoda "},{"type":"text","text":"get()","marks":[{"type":"code"}]},{"type":"text","text":" wykonuje narzędzie. Runner zwraca kolejne wiadomości modelu, aż ten skończy."}]}]},"toc":[{"id":"problem-resttemplate-i-recznie-skladany-json","text":"Problem: RestTemplate i ręcznie składany JSON","level":2,"locked":false},{"id":"mapa-ekosystemu","text":"Mapa ekosystemu","level":2,"locked":false},{"id":"jak-dojrzewal-ekosystem-jvm","text":"Jak dojrzewał ekosystem JVM","level":2,"locked":false},{"id":"oficjalne-sdk-strumieniowanie-i-odpowiedz-w-rekordzie","text":"Oficjalne SDK: strumieniowanie i odpowiedź w rekordzie","level":2,"locked":false},{"id":"narzedzia-tool-runner-na-klasach","text":"Narzędzia: tool runner na klasach","level":2,"locked":false},{"id":"spring-ai-chatclient-tool-i-rag-z-pgvector","text":"Spring AI: ChatClient, @Tool i RAG z pgvector","level":2,"locked":true},{"id":"langchain4j-deklaratywne-uslugi-ai","text":"LangChain4j: deklaratywne usługi AI","level":2,"locked":true},{"id":"testy-i-obserwowalnosc","text":"Testy i obserwowalność","level":2,"locked":true},{"id":"sdk-spring-ai-czy-langchain4j","text":"SDK, Spring AI czy LangChain4j?","level":2,"locked":true},{"id":"lista-kontrolna","text":"Lista kontrolna","level":2,"locked":true},{"id":"sprawdz-sie","text":"Sprawdź się","level":2,"locked":true},{"id":"co-dalej","text":"Co dalej","level":2,"locked":true}],"locked":true,"paywall":null,"previewRatio":0.3,"totalBlocks":57,"visibleBlocks":20,"resources":[{"id":"6b0857bf3c96f2d34d0b4277","type":"article","provider":"web","url":"https://docs.spring.io/spring-ai/reference","embedUrl":null,"title":"Introduction :: Spring AI Reference","description":"","author":"Spring","thumbnailUrl":null,"durationSec":null,"lang":"en","topics":["ai-in-java"],"techs":["java"],"tags":["ai"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":65,"verifiedAt":"2026-11-26T11:25:52.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:02.417Z","updatedAt":"2026-11-26T16:01:02.417Z"},{"id":"6b0857bf3c96f2d34d0b42ca","type":"article","provider":"web","url":"https://docs.langchain4j.dev/","embedUrl":null,"title":"LangChain4j","description":"Description will go into a meta tag in","author":"LangChain4j","thumbnailUrl":"https://langchain4j.github.io/img/docusaurus-social-card.jpg","durationSec":null,"lang":"en","topics":["ai-in-java"],"techs":["java"],"tags":["ai"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":60,"verifiedAt":"2026-11-26T11:25:52.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:02.417Z","updatedAt":"2026-11-26T16:01:02.417Z"},{"id":"6b0857c23c96f2d34d0b452c","type":"article","provider":"web","url":"https://spring.io/blog/2026/11/20/spring-ai-2-1-0-GA-available-now","embedUrl":null,"title":"Spring AI 2.1.0 GA and 2.0.3 GA Available Now","description":"Level up your Java code and explore what Spring can do for you.","author":"Spring Blog","thumbnailUrl":"https://spring.io/img/og-spring.png","durationSec":null,"lang":"en","topics":["ai-in-java"],"techs":["java"],"tags":["ai"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":50,"verifiedAt":"2026-11-26T11:28:43.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:04.995Z","updatedAt":"2026-11-26T16:01:04.995Z"},{"id":"6b0857b33c96f2d34d0b3669","type":"repo","provider":"github","url":"https://github.com/ThomasVitale/llm-apps-java-spring-ai","embedUrl":null,"title":"ThomasVitale/llm-apps-java-spring-ai","description":"Samples showing how to build Java applications powered by Generative AI and LLMs using Spring AI and Spring Boot.","author":"ThomasVitale","thumbnailUrl":"https://opengraph.githubassets.com/1/ThomasVitale/llm-apps-java-spring-ai","durationSec":null,"lang":"en","topics":["ai-in-java","llm-fundamentals","rag","embeddings-vector-db","local-llms"],"techs":["java"],"tags":["embeddings","generative-ai","large-language-models","llm","ollama","openai","ai","rag","spring-ai"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"github","publishedAt":"2024-01-14T11:04:15.000Z","popularity":56,"verifiedAt":"2026-11-26T11:00:00.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:50.215Z","updatedAt":"2026-11-26T16:00:50.215Z"},{"id":"6b0857a93c96f2d34d0b324e","type":"repo","provider":"github","url":"https://github.com/langchain4j/langchain4j","embedUrl":null,"title":"langchain4j/langchain4j","description":"LangChain4j is an idiomatic, open-source Java library for building LLM-powered applications.","author":"langchain4j","thumbnailUrl":"https://opengraph.githubassets.com/1/langchain4j/langchain4j","durationSec":null,"lang":"en","topics":["ai-in-java"],"techs":["java"],"tags":[],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"seed","publishedAt":null,"popularity":83,"verifiedAt":"2026-11-26T00:00:00.000Z","curated":true,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:41.635Z","updatedAt":"2026-11-26T16:00:41.635Z"},{"id":"6b0857c83c96f2d34d0b4a6a","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=9mOuvrZtLbc","embedUrl":"https://www.youtube-nocookie.com/embed/9mOuvrZtLbc","title":"State of the Art of Spring AI • Josh Long • GOTO 2025","description":"This presentation was recorded for GOTO State of the Art in May 2025. #GOTOcon #GOTO https://gotopia.tech Read the full transcription of this interview here: https://gotopia.tech/articles/378 Josh Long - Spring Developer Advocate at Pivotal, Java Champion & Author of 6 Books @coffeesoftware…","author":"GOTO Conferences","thumbnailUrl":"https://i.ytimg.com/vi/9mOuvrZtLbc/hqdefault.jpg","durationSec":null,"lang":"en","topics":["ai-in-java"],"techs":["java"],"tags":["ai"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"youtube-rss","publishedAt":"2025-05-20T12:00:16.000Z","popularity":56,"verifiedAt":"2026-11-26T10:52:08.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:10.095Z","updatedAt":"2026-11-26T16:01:10.095Z"}],"challenges":[],"attachments":[],"hasCode":true,"repoUrl":null,"series":[],"prev":null,"next":null,"featured":false,"authorCard":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","headline":"Wzorce projektowe · Architektura · AI i LLM","community":false,"reputation":{"points":3900,"level":{"key":"mentor","label":"Mentor"}},"articles":68,"skills":[{"key":"typescript","title":"TypeScript","level":5,"levelLabel":"Autorytet","articles":63},{"key":"dotnet","title":".NET","level":5,"levelLabel":"Autorytet","articles":53},{"key":"python","title":"Python","level":5,"levelLabel":"Autorytet","articles":52},{"key":"java","title":"Java","level":5,"levelLabel":"Autorytet","articles":38}]}}