Тёмный

Local RAG LLM with Ollama 

APMonitor.com
Подписаться 76 тыс.
Просмотров 2,3 тыс.
50% 1

Applications of Retrieval-Augmented Generation (RAG) and Large Language Models (LLMs) give context-aware solutions for complex Natural Language Processing (NLP) tasks. Natural language processing (NLP) is a machine learning technology that gives computers the ability to interpret, manipulate, and interact with human language. Combining RAG and LLMs enables personalized, multilingual, and context-aware systems. The objective of this tutorial is to implement RAG for user-specific data handling, develop multilingual RAG systems, use LLMs for content generation, and integrate LLMs in code development.
Retrieval-Augmented Generation (RAG)
RAG Similarity Search is a tutorial on ChromaDB to create a vector store from the Gekko Optimization Suite LLM training data train.jsonl file to retrieve questions and answers that are similar to a query. The tutorial is a guide to install necessary libraries, import modules, and prepare the Gekko training data to build the vector store. It emphasizes the significance of similarity search with k-Nearest Neighbors, with a vector store either in memory or on a local drive. It includes an exercise where participants create question-answer pairs on a topic of interest, construct a vector database, and perform similarity searches using ChromaDB.
LLM with Ollama Python Library
LLM with Ollama Python Library is a tutorial on Large Language Models (LLMs) with Python with the ollama library for chatbot and text generation. It covers the installation of the ollama server and ollama python package and uses different LLM models like mistral, gemma, phi, and mixtral that vary in parameter size and computational requirements.
RAG and LLM Integration
Combining Retrieval-Augmented Generation (RAG) with Large Language Models (LLMs) leads to context-aware systems. RAG optimizes the output of a large language model by referencing an external authoritative knowledge base outside of initial training data sources. These external references generate a response to provide more accurate, contextually relevant, and up-to-date information. In this architecture, the LLM is the reasoning engine while the RAG context provides relevant data. This is different than fine-tuning where the LLM parameters are augmented based on a specific knowledge database.
The synergy of RAG enhances the LLM ability to generate responses that are not only coherent and contextually appropriate but also enriched with the latest information and data, making it valuable for applications that require higher levels of accuracy and specificity, such as customer support, research assistance, and specialized chatbots. This combines the depth and dynamic nature of external data with the intuitive understanding and response generation of LLMs for more intelligent and responsive AI systems.
RAG with LLM (Local)
The Local RAG with LLM downloads the train.jsonl file to provide context-aware information about Gekko questions using the mistral model. The processing of the LLM may take substantial time (minutes) if there are insufficient GPU resources available to process the request.

Наука

Опубликовано:

 

30 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 6   
@oswaldogarcia7327
@oswaldogarcia7327 19 дней назад
Great stuff! I have recently tried one with OpenAi. I love your content!
@alfonsor.6722
@alfonsor.6722 5 месяцев назад
Hi, very interesting video. Can you share the code used (github, notebook, etc.)? Thanks.!
@apm
@apm 5 месяцев назад
Sure, it is all available here with a Jupyter Notebook and a link to open the Notebook on Google Colab: apmonitor.com/dde/index.php/Main/RAGLargeLanguageModel
@nicdeen7482
@nicdeen7482 6 месяцев назад
this was very helpful, ty so much!
@mohamedkeddache4202
@mohamedkeddache4202 5 месяцев назад
how can i do to stream the response like chatGPT ?
@apm
@apm 5 месяцев назад
Set `stream=True`. Here is example code: github.com/ollama/ollama-python
Далее
Benchmark LLMs with Ollama Python Library
20:02
🛑самое главное в жизни!
00:11
Просмотров 48 тыс.
pumpkins #shorts
00:39
Просмотров 30 млн
Шоколадная девочка
00:23
Просмотров 454 тыс.
RAG for long context LLMs
21:08
Просмотров 38 тыс.
Python RAG Tutorial (with Local LLMs): AI For Your PDFs
21:33
SUPERHUMAN RAG  #ai
31:21
Просмотров 16 тыс.