No need to be a Python developer to do Generative AI! If you’re a Java developer, you can take advantage of LangChain4j to implement some advanced LLM integrations in your Java applications. And if you’re interested in using Gemini, one of the best models available, I invite you to have a look at the following “codelab” that I worked on:Codelab — Gemini for Java Developers using LangChain4jIn this workshop, you’ll find various examples covering the following use cases, in crescendo approach:Making your fist call to Gemini (streaming & non-streaming)Maintaining a conversationTaking advantage of multimodality by analysing images with your promptsExtracting structured information from unstructured textUsing prompt templatesDoing text classification with few-shot promptingImplementing Retrieval Augmented Generation to chat with your documentationHow to do Function Calling to expand the LLM to interact with external APIs and servicesYou’ll find all the code samples on Github.If you’re attending Devoxx France, be sure to attend the Hands-on-Lab workshop with my colleagues Mete Atamel and Valentin Deleplace who will guide you through this codelab.Originally published at https://glaforge.dev on March 27, 2024.Gemini codelab for Java developers using LangChain4j was originally published in Google Cloud - Community on Medium, where people are continuing the conversation by highlighting and responding to this story.
[Blogs]
🌎 https://medium.com/google-cloud/gemini-codelab-for-java-developers-using-langchain4j-769fbd419756?source=rss----e52cf94d98af---4
[🧠] [v2] article_embedding_description: {:llm_project_id=>"Unavailable", :llm_dimensions=>nil, :article_size=>2827, :llm_embeddings_model_name=>"textembedding-gecko"}
[🧠] [v1/3] title_embedding_description: {:ricc_notes=>"[embed-v3] Fixed on 9oct24. Only seems incompatible at first glance with embed v1.", :llm_project_id=>"unavailable possibly not using Vertex", :llm_dimensions=>nil, :article_size=>2827, :poly_field=>"title", :llm_embeddings_model_name=>"textembedding-gecko"}
[🧠] [v1/3] summary_embedding_description:
[🧠] As per bug https://github.com/palladius/gemini-news-crawler/issues/4 we can state this article belongs to titile/summary version: v3 (very few articles updated on 9oct24)
🗿article.to_s
------------------------------
Title: Gemini codelab for Java developers using LangChain4j
[content]
No need to be a Python developer to do Generative AI! If you’re a Java developer, you can take advantage of LangChain4j to implement some advanced LLM integrations in your Java applications. And if you’re interested in using Gemini, one of the best models available, I invite you to have a look at the following “codelab” that I worked on:Codelab — Gemini for Java Developers using LangChain4jIn this workshop, you’ll find various examples covering the following use cases, in crescendo approach:Making your fist call to Gemini (streaming & non-streaming)Maintaining a conversationTaking advantage of multimodality by analysing images with your promptsExtracting structured information from unstructured textUsing prompt templatesDoing text classification with few-shot promptingImplementing Retrieval Augmented Generation to chat with your documentationHow to do Function Calling to expand the LLM to interact with external APIs and servicesYou’ll find all the code samples on Github.If you’re attending Devoxx France, be sure to attend the Hands-on-Lab workshop with my colleagues Mete Atamel and Valentin Deleplace who will guide you through this codelab.Originally published at https://glaforge.dev on March 27, 2024.Gemini codelab for Java developers using LangChain4j was originally published in Google Cloud - Community on Medium, where people are continuing the conversation by highlighting and responding to this story.
[/content]
Author: Guillaume Laforge
PublishedDate: 2024-03-29
Category: Blogs
NewsPaper: Google Cloud - Medium
Tags: langchain4j, gemini, google-cloud-platform, gcp-app-dev, java
{"id"=>1235,
"title"=>"Gemini codelab for Java developers using LangChain4j",
"summary"=>nil,
"content"=>"
No need to be a Python developer to do Generative AI! If you’re a Java developer, you can take advantage of LangChain4j to implement some advanced LLM integrations in your Java applications. And if you’re interested in using Gemini, one of the best models available, I invite you to have a look at the following “codelab” that I worked on: