♊️ GemiNews 🗞️

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

🗞️Hands on Codelabs to dabble with Large Language Models in Java

🗿Semantically Similar Articles (by :title_embedding)

Hands on Codelabs to dabble with Large Language Models in Java

2023-12-18 - Guillaume Laforge (from Guillaume Laforge - Medium)

Hot on the heels of the release of Gemini, I’d like to share a couple of resources I created to get your hands on large language models, using LangChain4J, and the PaLM 2 model. Later on, I’ll also share with you articles and codelabs that take advantage of Gemini, of course.The PaLM 2 model supports 2 modes:text generation,and chat.In the 2 codelabs, you’ll need to have created an account on Google Cloud, and created a project. The codelabs will guide you through the steps to setup the environment, and show you how to use the Google Cloud built-in shell and code editor, to develop in the cloud.You should be a Java developer, as the examples are in Java, use the LangChain4J project, and Maven for building the code.Generative AI text generation in Java with PaLM and LangChain4JIn the first codelab you can explore:how to make your first call to PaLM for simple question/answer scenarioshow to extract structured data out of unstructured texthow to use prompts and prompt templateshow to classify text, with an example on sentiment analysisGenerative AI powered chat with users and docs in Java with PaLM and LangChain4JIn the second codelab you’ll use the chat model to learn:how to create your first chat with the PaLM modelhow to give your chatbot a personality, with an example with a chess playerhow to extract structured data out of unstructured text using LangChain4J’s AiServices and its annotationshow to implement Retrieval Augmented Generation (RAG) to answer questions about your own documentationGoing further with Generative AIIf you’re interested in going further with Generative AI, and learn more, feel free to join the Google Cloud Innovators program.Google Cloud Innovators is free and includes:live discussions, AMAs, and roadmap sessions to learn the latest directly from Googlers,the latest Google Cloud news right in your inbox,digital badge and video conference background,500 credits of labs and learning on Skills Boost.Originally published at https://glaforge.dev on December 18, 2023.Hands on Codelabs to dabble with Large Language Models in Java 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/hands-on-codelabs-to-dabble-with-large-language-models-in-java-ee7bc330f5fe?source=rss-431147437aeb------2

🗿article.to_s

------------------------------
Title: Hands on Codelabs to dabble with Large Language Models in Java
[content]
Hot on the heels of the release of Gemini, I’d like to share a couple of resources I created to get your hands on large language models, using LangChain4J, and the PaLM 2 model. Later on, I’ll also share with you articles and codelabs that take advantage of Gemini, of course.The PaLM 2 model supports 2 modes:text generation,and chat.In the 2 codelabs, you’ll need to have created an account on Google Cloud, and created a project. The codelabs will guide you through the steps to setup the environment, and show you how to use the Google Cloud built-in shell and code editor, to develop in the cloud.You should be a Java developer, as the examples are in Java, use the LangChain4J project, and Maven for building the code.Generative AI text generation in Java with PaLM and LangChain4JIn the first codelab you can explore:how to make your first call to PaLM for simple question/answer scenarioshow to extract structured data out of unstructured texthow to use prompts and prompt templateshow to classify text, with an example on sentiment analysisGenerative AI powered chat with users and docs in Java with PaLM and LangChain4JIn the second codelab you’ll use the chat model to learn:how to create your first chat with the PaLM modelhow to give your chatbot a personality, with an example with a chess playerhow to extract structured data out of unstructured text using LangChain4J’s AiServices and its annotationshow to implement Retrieval Augmented Generation (RAG) to answer questions about your own documentationGoing further with Generative AIIf you’re interested in going further with Generative AI, and learn more, feel free to join the Google Cloud Innovators program.Google Cloud Innovators is free and includes:live discussions, AMAs, and roadmap sessions to learn the latest directly from Googlers,the latest Google Cloud news right in your inbox,digital badge and video conference background,500 credits of labs and learning on Skills Boost.Originally published at https://glaforge.dev on December 18, 2023.Hands on Codelabs to dabble with Large Language Models in Java 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: 2023-12-18
Category: Blogs
NewsPaper: Guillaume Laforge - Medium
Tags: llm, generative-ai, java, google-cloud-platform, langchain
{"id"=>15,
"title"=>"Hands on Codelabs to dabble with Large Language Models in Java",
"summary"=>nil,
"content"=>"
\"\"

Hot on the heels of the release of Gemini, I’d like to share a couple of resources I created to get your hands on large language models, using LangChain4J, and the PaLM 2 model. Later on, I’ll also share with you articles and codelabs that take advantage of Gemini, of course.

The PaLM 2 model supports 2 modes:

  • text generation,
  • and chat.

In the 2 codelabs, you’ll need to have created an account on Google Cloud, and created a project. The codelabs will guide you through the steps to setup the environment, and show you how to use the Google Cloud built-in shell and code editor, to develop in the cloud.

You should be a Java developer, as the examples are in Java, use the LangChain4J project, and Maven for building the code.

Generative AI text generation in Java with PaLM and LangChain4J

In the first codelab you can explore:

  • how to make your first call to PaLM for simple question/answer scenarios
  • how to extract structured data out of unstructured text
  • how to use prompts and prompt templates
  • how to classify text, with an example on sentiment analysis

Generative AI powered chat with users and docs in Java with PaLM and LangChain4J

In the second codelab you’ll use the chat model to learn:

  • how to create your first chat with the PaLM model
  • how to give your chatbot a personality, with an example with a chess player
  • how to extract structured data out of unstructured text using LangChain4J’s AiServices and its annotations
  • how to implement Retrieval Augmented Generation (RAG) to answer questions about your own documentation

Going further with Generative AI

If you’re interested in going further with Generative AI, and learn more, feel free to join the Google Cloud Innovators program.

Google Cloud Innovators is free and includes:

  • live discussions, AMAs, and roadmap sessions to learn the latest directly from Googlers,
  • the latest Google Cloud news right in your inbox,
  • digital badge and video conference background,
  • 500 credits of labs and learning on Skills Boost.

Originally published at https://glaforge.dev on December 18, 2023.

\"\"

Hands on Codelabs to dabble with Large Language Models in Java 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/hands-on-codelabs-to-dabble-with-large-language-models-in-java-ee7bc330f5fe?source=rss-431147437aeb------2",
"published_date"=>Mon, 18 Dec 2023 00:00:36.000000000 UTC +00:00,
"image_url"=>nil,
"feed_url"=>"https://medium.com/google-cloud/hands-on-codelabs-to-dabble-with-large-language-models-in-java-ee7bc330f5fe?source=rss-431147437aeb------2",
"language"=>nil,
"active"=>true,
"ricc_source"=>"feedjira::v1",
"created_at"=>Sun, 31 Mar 2024 21:41:09.150616000 UTC +00:00,
"updated_at"=>Mon, 13 May 2024 18:38:06.766979000 UTC +00:00,
"newspaper"=>"Guillaume Laforge - Medium",
"macro_region"=>"Blogs"}
Edit this article
Back to articles