Create a Powerful Chatbot on Custom Data using GeminiPro LLMs and LangChain with Python

Learn large language model applications in artificial intelligence

Amit Chauhan
5 min readJul 10, 2024
Image Source

In this article, we will explore the functionality of large language models from google, the LLM we will use is GenimiPro which is related to text-based applications. Google offers open-source LLM models for text generation and image-related applications that make it capable of doing multimodal tasks.

Compared to Open-AI which charges something on using its API for summarization, Q&A, chat-bot, etc. Google is free to use and takes no charge on using its API.

What you will learn in this blog

  • Reading custom document
  • Extracting data from the document
  • Creating chunks from data
  • Vector store library
  • Prompt template
  • Retrieval QA

Practical Guide with python

This library is used to read the PDF file data and perform some actions like merging, splitting, reading, etc.

from PyPDF2 import PdfReader

It is an open-source library to create a fast web application UI for data…

--

--