Название: LangChain and LlamaIndex Projects Lab Book: Hooking Large Language Models Up to the Real World: Using GPT-4, ChatGPT, Hugging Face, and local Ollama Models in Applications
Автор: Mark Watson
Издательство: Leanpub
Год: 2024-02-01
Язык: английский
Формат: pdf (true), azw3, mobi, epub
Размер: 10.1 MB
LangChain and LlamaIndex introduce new paradigms for developing software by blending together Large Language Models and conventional software written in Python. LangChain is a framework for hooking large language models like GPT-4 together, and adding processing steps that might be web search, database lookups, calling APIs, etc. This is a tutorial on effectively using LLMs and a projects book that will provide you with ideas and projects to get you started. Most book examples require either an OpenAI or Hugging Face API keys (free tiers are sufficient). New examples (added 2024) include running local models using Ollama. Large language models are a subset of Artificial Intelligence that use Deep Learning and neural networks to process natural language. Transformers are a type of neural network architecture that can learn context in sequential data using self-attention mechanisms. LangChain is a framework for building applications with large language models (LLMs) through chaining different components together. Some of the applications of LangChain are chatbots, generative question-answering, summarization, data-augmented generation and more. LangChain can save time in building chatbots and other systems by providing a standard interface for chains, agents and memory, as well as integrations with other tools and end-to-end examples.