
RAG is mashed up 🤯 (DMs open) Build cost-effective custom RAG built for accuracy! 😎 https://teapawt.net/t.co/ziUw0UhWYI
Republic of Korea
Joined September 2024
- Tweets46
- Following91
- Followers47
- Likes130
😊 thanks
AutoRAG from @AutoRAG_HQ optimizes RAG pipelines based on retrieval and generation metrics such as recall, precision, mAP, MRR, NDCG, BLEU, ROGUE, and METEOR.
Github: /Marker-Inc-Korea/AutoRAG
(follow for more genai repos)
1
139
AutoRAG retweeted
New Anthropic research: Adding Error Bars to Evals.
AI model evaluations don’t usually include statistics or uncertainty. We think they should.
Read the blog post here: anthropic.com/research/stati…
So nice~ thanks 😊
What are 𝗥𝗲𝘁𝗿𝗶𝗲𝘃𝗮𝗹 𝗔𝘂𝗴𝗺𝗲𝗻𝘁𝗲𝗱 𝗚𝗲𝗻𝗲𝗿𝗮𝘁𝗶𝗼𝗻 (𝗥𝗔𝗚) 𝗦𝘆𝘀𝘁𝗲𝗺𝘀?
Here is an example of a simple (naive) RAG based Chatbot to query your Private Knowledge Base. (Advanced concepts covered in following weeks).
First step is to store the knowledge of your internal documents in a format that is suitable for querying. We do so by embedding it using an embedding model:
𝟭: Split text corpus of the entire knowledge base into chunks - a chunk will represent a single piece of context available to be queried. Data of interest can be from multiple sources, e.g. Documentation in Confluence supplemented by PDF reports.
𝟮: Use the Embedding Model to transform each of the chunks into a vector embedding.
𝟯: Store all vector embeddings in a Vector Database.
𝟰: Save text that represents each of the embeddings separately together with the pointer to the embedding (we will need this later).
Next we can start constructing the answer to a question/query of interest:
𝟱: Embed a question/query you want to ask using the same Embedding Model that was used to embed the knowledge base itself.
𝟲: Use the resulting Vector Embedding to run a query against the index in the Vector Database. Choose how many vectors you want to retrieve from the Vector Database - it will equal the amount of context you will be retrieving and eventually using for answering the query question.
𝟳: Vector DB performs an Approximate Nearest Neighbour (ANN) search for the provided vector embedding against the index and returns previously chosen amount of context vectors. The procedure returns vectors that are most similar in a given Embedding/Latent space.
𝟴: Map the returned Vector Embeddings to the text chunks that represent them.
𝟵: Pass a question together with the retrieved context text chunks to the LLM via prompt. Instruct the LLM to only use the provided context to answer the given question. This does not mean that no Prompt Engineering will be needed - you will want to ensure that the answers returned by LLM fall into expected boundaries, e.g. if there is no data in the retrieved context that could be used make sure that no made up answer is provided.
To make it a real Chatbot - face the entire application with a Web UI that exposes a text input box to act as a chat interface. After running the provided question through steps 1. to 9. - return and display the generated answer. This is how most of the chatbots that are based on a single or multiple internal knowledge base sources are actually built nowadays.
As described, the system is really just a naive RAG that is usually not fit for production grade applications. What are we missing?
- Advanced Chunking/Retrieval.
- Guardrails/Firewalls.
- Evals.
- Observability/Governance.
- Scalability.
More on this in the upcoming posts, so stay tuned in!
#LLM #GenAI #RAG #DataEngineering
77
🤖 Use Naive RAG Chatbot at HF-Space
Explore our latest post to learn more! 🔗medium.com/@autorag/use-naiv…
69
📊 Data Creation for RAG Optimization at HF-Space
Explore our latest post to learn more! 🔗 medium.com/@autorag/data-cre…
53
AutoRAG retweeted
Thrilled to see my work on reranking being integrated into pinecone's official Go client!
A thread🧵
1. Sometime ago, for our RAG system, I wanted to implemented a reranker on our stack but this was not available on pinecone go lib yet👇
#VectorDatabases
#LLM
#RAG
AutoRAG retweeted
Top RAG Papers of the Week (October Week 4, 2024)
[1] ChunkRAG (Irrelevant Chunk filtering)
[2] AutoRAG (Framework for optimization of RAG Pipeline)
[3] RuleRAG (Includes symbolic rules to guide retrievers)
[4] Long2RAG (Introduces new RAG benchmark)
Paper summaries and links - linkedin.com/pulse/top-rag-p…
Follow @kalyan_kpl for latest updates related to Generative AI, LLMs and RAG.
#rag #llms #nlproc #deeplearning
AutoRAG retweeted
Multi-expert Prompting with LLMs
Multi-expert Prompting improves LLM responses by simulating multiple experts and aggregating their responses.
Multi-expert Prompting guides an LLM to fulfill input instructions by simulating multiple experts and selecting the best response among individual and aggregated views.
It achieves a new state-of-the-art on TruthfulQA-Generation with ChatGPT, surpassing the current SOTA of 87.97%.
It also improves performance across factuality and usefulness while reducing toxicity and hurtfulness.
This is a very nice prompting approach that has huge potential when building agentic workflows. Prompt examples are shared in the paper.
Private RAG is essential for accurate answers. 🔍 Strong evaluation metrics and understanding QA system architectures are must-haves! 💡 [🔗] towardsdatascience.com/quest…
27
✨ AutoRAG New Version Released! (v0.3.8) 🎉
We've made enhancements to improve ease of use. Key updates include:
1️⃣ Updated API Endpoint: /v1/stream is now even more intuitive! 📄 Check out the updated docs: lnkd.in/d3wpEbhp
1/3
1
45
2️⃣ Simplified Parsing & Chunking Structure: 🗂 No more nested folders! Configure with YAML and go—all in one run.
3️⃣ Custom Generation Functions: ✏️ Easily edit prompts for question and answer generation.
2/3
1
43
Retrieval Augmented Generation: Streamlining the creation of intelligent natural language processing models ai.meta.com/blog/retrieval-a…
AutoRAG retweeted
「RAGに関する主要な論文を時系列順にまとめていく(2024年度版)」
Self-RAG, CRAG, Adaptive-RAG, GNN-RAG, GRAG, DR-RAG, Long-RAG等の概要についてまとめられている記事。
正直もっとたくさんあるけど、主要なものはここにあるものを抑えればRAGの大まかな知識はつきそう
note.com/rrrrrrrrrr_666/n/nb…
RT : Ask anything about AutoRAG!
October 31, 2024, at 9:30 PM (GMT+9) for our AutoRAG Q&A session!
📅 Want to add this event to your calendar?
calendar.google.com/calendar…
"Found an insightful blog on RAG challenges—clear explanations and practical examples. Not ours, but highly recommended for anyone getting started." #RAG #LLM devrain.com/blog/navigating-…




















