<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/retrieval-augmented-generation-rag-using-llama-2-chromadb-together-ai-for-retrieval-qa-lbkixz8uc" -->

---
title: Retrieval-Augmented Generation (RAG) using Llama...
description: Retrieval-Augmented Generation (RAG) is a quick and viable approach to training Large Language Models (LLMs) in specialized domain knowledge. The RAG system...
canonical: https://daily.dev/posts/retrieval-augmented-generation-rag-using-llama-2-chromadb-together-ai-for-retrieval-qa-lbkixz8uc
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Retrieval-Augmented Generation (RAG) using Llama 2,ChromaDB , Together AI for Retrieval QA | daily.dev
og:description: Retrieval-Augmented Generation (RAG) is a quick and viable approach to training Large Language Models (LLMs) in specialized domain knowledge. The RAG system...
og:url: https://daily.dev/posts/retrieval-augmented-generation-rag-using-llama-2-chromadb-together-ai-for-retrieval-qa-lbkixz8uc
og:image: https://api.daily.dev/og/posts/lBKIXz8uc.png
og:image:alt: Retrieval-Augmented Generation (RAG) using Llama 2,ChromaDB , Together AI for Retrieval QA
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieval-Augmented Generation (RAG) using Llama 2,ChromaDB , Together AI for Retrieval QA

**[GoPenAI](https://daily.dev/sources/gopenai)** · 6 min read · 1 upvotes · 0 comments

## Summary

Retrieval-Augmented Generation (RAG) is a quick and viable approach to training Large Language Models (LLMs) in specialized domain knowledge. The RAG system involves a retrieval phase that searches for relevant documents and a generation phase that uses the retrieved documents to produce informative and accurate responses. The post also provides instructions for setting up the Together API and storing documents in ChromaDB.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.gopenai.com/retrieval-augmented-generation-rag-using-llama-2-chromadb-together-ai-for-retrieval-qa-80e7045a6c79>

---

Tags: [#llm](https://daily.dev/tags/llm), [#langchain](https://daily.dev/tags/langchain), [#llama](https://daily.dev/tags/llama), [#rag](https://daily.dev/tags/rag)

[View this post on daily.dev](https://daily.dev/posts/retrieval-augmented-generation-rag-using-llama-2-chromadb-together-ai-for-retrieval-qa-lbkixz8uc)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Retrieval-Augmented Generation (RAG) using Llama 2,ChromaDB , Together AI for Retrieval QA","url":"https://daily.dev/posts/retrieval-augmented-generation-rag-using-llama-2-chromadb-together-ai-for-retrieval-qa-lbkixz8uc","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/retrieval-augmented-generation-rag-using-llama-2-chromadb-together-ai-for-retrieval-qa-lbkixz8uc"},"datePublished":"2023-12-30T12:44:23.012Z","dateModified":"2023-12-30T12:44:22.137Z","description":"Retrieval-Augmented Generation (RAG) is a quick and viable approach to training Large Language Models (LLMs) in specialized domain knowledge. The RAG system...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/43172b7bb922e120da76936b56a96a56?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/43172b7bb922e120da76936b56a96a56?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"GoPenAI","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"GoPenAI","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/f34dfd0c312c4a59b897eb64ad28d895","url":"https://daily.dev/sources/gopenai"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/retrieval-augmented-generation-rag-using-llama-2-chromadb-together-ai-for-retrieval-qa-lbkixz8uc","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"llm,langchain,llama,rag","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"GoPenAI","item":"https://daily.dev/sources/gopenai"},{"@type":"ListItem","position":3,"name":"Retrieval-Augmented Generation (RAG) using Llama 2,ChromaDB , Together AI for Retrieval QA"}]}
```

