Skip to content

Commit 308d5af

Browse files
committedJul 14, 2024
added kaggle button
1 parent 3e7e37d commit 308d5af

File tree

6 files changed

+11
-5
lines changed

6 files changed

+11
-5
lines changed
 

‎content/posts/machine learning/deep learning/NLP/Gemma2+RAG/index.md

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ categories: ["NLP"]
1515

1616

1717

18+
*Open in:*[<img src="https://www.kaggle.com/static/images/logos/kaggle-logo-gray-300.png" width="45"/>](https://www.kaggle.com/code/stefanogiannini/gemma-2-rag-llamaindex-faiss/)
19+
1820

1921

2022
## 1. Introduction

‎public/index.json

+1-1
Large diffs are not rendered by default.

‎public/index.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
<pubDate>Sun, 14 Jul 2024 00:00:00 +0100</pubDate>
1313

1414
<guid>http://localhost:1313/posts/machine-learning/deep-learning/nlp/gemma2&#43;rag/</guid>
15-
<description>1. Introduction Retrieval-Augmented Generation (RAG) is an advanced AI technique that enhances large language models (LLMs) with the ability to access and utilize external knowledge. This guide will walk you through a practical implementation of RAG using Python and various libraries, explaining each component in detail.
15+
<description>Open in:
16+
1. Introduction Retrieval-Augmented Generation (RAG) is an advanced AI technique that enhances large language models (LLMs) with the ability to access and utilize external knowledge. This guide will walk you through a practical implementation of RAG using Python and various libraries, explaining each component in detail.
1617
2. Setup and Import %pip install transformers accelerate bitsandbytes flash-attn faiss-cpu llama-index -Uq %pip install llama-index-embeddings-huggingface -q %pip install llama-index-llms-huggingface -q %pip install llama-index-embeddings-instructor llama-index-vector-stores-faiss -q import contextlib import os import torch device = torch.</description>
1718
</item>
1819

‎public/posts/index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,8 @@
486486
<div class="card-body">
487487
<a href="/posts/machine-learning/deep-learning/nlp/gemma2&#43;rag/" class="post-card-link">
488488
<h5 class="card-title">Gemma-2 &#43; RAG &#43; LlamaIndex &#43; VectorDB</h5>
489-
<p class="card-text post-summary">1. Introduction Retrieval-Augmented Generation (RAG) is an advanced AI technique that enhances large language models (LLMs) with the ability to access and utilize external knowledge. This guide will walk you through a practical implementation of RAG using Python and various libraries, explaining each component in detail.
489+
<p class="card-text post-summary">Open in:
490+
1. Introduction Retrieval-Augmented Generation (RAG) is an advanced AI technique that enhances large language models (LLMs) with the ability to access and utilize external knowledge. This guide will walk you through a practical implementation of RAG using Python and various libraries, explaining each component in detail.
490491
2. Setup and Import %pip install transformers accelerate bitsandbytes flash-attn faiss-cpu llama-index -Uq %pip install llama-index-embeddings-huggingface -q %pip install llama-index-llms-huggingface -q %pip install llama-index-embeddings-instructor llama-index-vector-stores-faiss -q import contextlib import os import torch device = torch.</p>
491492
</a>
492493

‎public/posts/index.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
<pubDate>Sun, 14 Jul 2024 00:00:00 +0100</pubDate>
1313

1414
<guid>http://localhost:1313/posts/machine-learning/deep-learning/nlp/gemma2&#43;rag/</guid>
15-
<description>1. Introduction Retrieval-Augmented Generation (RAG) is an advanced AI technique that enhances large language models (LLMs) with the ability to access and utilize external knowledge. This guide will walk you through a practical implementation of RAG using Python and various libraries, explaining each component in detail.
15+
<description>Open in:
16+
1. Introduction Retrieval-Augmented Generation (RAG) is an advanced AI technique that enhances large language models (LLMs) with the ability to access and utilize external knowledge. This guide will walk you through a practical implementation of RAG using Python and various libraries, explaining each component in detail.
1617
2. Setup and Import %pip install transformers accelerate bitsandbytes flash-attn faiss-cpu llama-index -Uq %pip install llama-index-embeddings-huggingface -q %pip install llama-index-llms-huggingface -q %pip install llama-index-embeddings-instructor llama-index-vector-stores-faiss -q import contextlib import os import torch device = torch.</description>
1718
</item>
1819

‎public/posts/machine-learning/deep-learning/nlp/gemma2+rag/index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,8 @@ <h1>Gemma-2 &#43; RAG &#43; LlamaIndex &#43; VectorDB</h1>
528528

529529

530530
<div class="post-content" id="post-content">
531-
<h2 id="1-introduction">1. Introduction</h2>
531+
<p><em>Open in:</em><a href="https://www.kaggle.com/code/stefanogiannini/gemma-2-rag-llamaindex-faiss/" target="_blank" rel="noopener"><img src="https://www.kaggle.com/static/images/logos/kaggle-logo-gray-300.png" width="45"/></a></p>
532+
<h2 id="1-introduction">1. Introduction</h2>
532533
<p>Retrieval-Augmented Generation (RAG) is an advanced AI technique that enhances large language models (LLMs) with the ability to access and utilize external knowledge. This guide will walk you through a practical implementation of RAG using Python and various libraries, explaining each component in detail.</p>
533534
<p><a href="https://mermaid.live/edit#pako:eNp1kt9ugjAUxl-l6ZXLdA_AxRIF_0VQp9tuiheVHpEEWlLaZcb47ju2uOGWcXHC6fdr-fpxzjRTAmhAc83rI3mNUknwGbK3BjR5saBPOzIYPJMRcw1Za5VB0xQy33l05OSQRYWGzJA4Tv5jIrYZTv-KvjZ27y2k9J5KqQfGLOKGk7nMoTGFkt7WhI2rPQiBIAk1cKf4DRMHTNk72lKabLHAbyZyzIyFShr4NGQDRhfwwctWnzl9ztBOVRuCWGO0zTongBTda_gaum0LhmG02NyvdKGFW4rZBpoazwUyBQm66y52RMJW1tTWkEeyVVZjLHfBjcngCakl60UqsxVI46_60FJLr8--Q7l2K9b7yS3BCShv-OoOn_puzXrdFG_sumVpn1agK14IHKTzVUupOUIFKQ3wVcCB29Jcf-QFUW6N2p5kRgOMEvpUK5sfaXDgZYOdrQU3EBUcp6G6ISAK_G7iJzVT8lDk9PIFuI7TUA" target="_blank" rel="noopener"><img src="https://mermaid.ink/img/pako:eNp1kt9ugjAUxl-l6ZXLdA_AxRIF_0VQp9tuiheVHpEEWlLaZcb47ju2uOGWcXHC6fdr-fpxzjRTAmhAc83rI3mNUknwGbK3BjR5saBPOzIYPJMRcw1Za5VB0xQy33l05OSQRYWGzJA4Tv5jIrYZTv-KvjZ27y2k9J5KqQfGLOKGk7nMoTGFkt7WhI2rPQiBIAk1cKf4DRMHTNk72lKabLHAbyZyzIyFShr4NGQDRhfwwctWnzl9ztBOVRuCWGO0zTongBTda_gaum0LhmG02NyvdKGFW4rZBpoazwUyBQm66y52RMJW1tTWkEeyVVZjLHfBjcngCakl60UqsxVI46_60FJLr8--Q7l2K9b7yS3BCShv-OoOn_puzXrdFG_sumVpn1agK14IHKTzVUupOUIFKQ3wVcCB29Jcf-QFUW6N2p5kRgOMEvpUK5sfaXDgZYOdrQU3EBUcp6G6ISAK_G7iJzVT8lDk9PIFuI7TUA?type=png"></a></p>
534535
<h2 id="2-setup-and-import">2. Setup and Import</h2>

0 commit comments

Comments
 (0)
Failed to load comments.