♊️ GemiNews 🗞️ (dev)

Demo 1: Embeddings + Recommendation Demo 2: Bella RAGa Demo 3: NewRetriever Demo 4: Assistant function calling

🗞️Gemini codelab for Java developers using LangChain4j

🗿Semantically Similar Articles (by :title_embedding)

Gemini codelab for Java developers using LangChain4j

2024-03-29 - Guillaume Laforge (from Google Cloud - Medium)

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:

Codelab — Gemini for Java Developers using LangChain4j

In 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 conversation
  • Taking advantage of multimodality by analysing images with your prompts
  • Extracting structured information from unstructured text
  • Using prompt templates
  • Doing text classification with few-shot prompting
  • Implementing Retrieval Augmented Generation to chat with your documentation
  • How to do Function Calling to expand the LLM to interact with external APIs and services

You’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.

",
"author"=>"Guillaume Laforge",
"link"=>"https://medium.com/google-cloud/gemini-codelab-for-java-developers-using-langchain4j-769fbd419756?source=rss----e52cf94d98af---4",
"published_date"=>Fri, 29 Mar 2024 03:27:13.000000000 UTC +00:00,
"image_url"=>nil,
"feed_url"=>"https://medium.com/google-cloud/gemini-codelab-for-java-developers-using-langchain4j-769fbd419756?source=rss----e52cf94d98af---4",
"language"=>nil,
"active"=>true,
"ricc_source"=>"feedjira::v1",
"created_at"=>Sun, 31 Mar 2024 20:53:37.965723000 UTC +00:00,
"updated_at"=>Mon, 21 Oct 2024 16:56:28.150291000 UTC +00:00,
"newspaper"=>"Google Cloud - Medium",
"macro_region"=>"Blogs"}
Edit this article
Back to articles