AutoRAG (@AutoRAG_HQ) header
AutoRAG (@AutoRAG_HQ) profile picture

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
Photo by AutoRAG (@AutoRAG_HQ)Photo by AutoRAG (@AutoRAG_HQ)Photo by AutoRAG (@AutoRAG_HQ)Photo by AutoRAG (@AutoRAG_HQ)Photo by AutoRAG (@AutoRAG_HQ)Photo by AutoRAG (@AutoRAG_HQ)Photo by AutoRAG (@AutoRAG_HQ)Photo by AutoRAG (@AutoRAG_HQ)
<< 긴급 >> 🔵 내란 연장 헌법파괴 한덕수 퇴진 긴급행동 일 시 : 12월 26일(목) 오후 7시 장 소 : 경복궁 앞 특설 무대 🩸 적극 전파
692
18,625
3,081
13,778
4,289,704
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…
51
292
161
2,071
757,127
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
4
10
36
1,992
49
17,219
957
51,192
2,889,682
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
1
4
281
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.
9
93
10
473
47,704
「RAGに関する主要な論文を時系列順にまとめていく(2024年度版)」 Self-RAG, CRAG, Adaptive-RAG, GNN-RAG, GRAG, DR-RAG, Long-RAG等の概要についてまとめられている記事。 正直もっとたくさんあるけど、主要なものはここにあるものを抑えればRAGの大まかな知識はつきそう note.com/rrrrrrrrrr_666/n/nb…
67
2
483
37,722
Implementing RAG and not having the expected results? Probably you should start by the very beginning and this is the chunking strategy! Below some chunking strategies 👇 #rag #chunking #ai #genai
3
3
29
2,685
Agentic AI Design Patterns in a nutshell! 🔗Link high resolution: link.excalidraw.com/readonly… #agents #rag #ai
7
159
1
811
115,612
Prompt Engineering, RAG, Fine tuning…. Which approach should I take? Well, it depends! If you hear someone saying one is better over the other or for instance you can use RAG to replace fine tuning, try to distrust. Below a simple diagram with the pros and cons of each one. #ai #genai #llm #rag #promptengineering #finetuning
8
1
38
3,350
Examine the powerful combination of @LlamaIndex, NVIDIA NIM, and @Chainlit_io to create efficient RAG-based Q&A workflows, enhancing speed and simplification of deployment. ➡️ developer.nvidia.com/blog/cr… Use this project as inspiration for our NVIDIA and LlamaIndex Developer Contest 🎉 showcasing innovative uses of these technologies in real-world applications and a chance to win exciting prizes. 🏃 Get started now. #DevContest
10
28
3,090
Claims to find the optimal RAG pipeline for you
6
75
2
680
45,414
AutoRAG automatically evaluates multiple RAG strategies and find the perfect RAG pipeline for your data in just a few lines of Python Code. 100% opensource.
11
163
7
1,454
116,273
Brilliant Paper from @GoogleDeepMind. Astute RAG enhances LLM performance by resolving conflicts between internal and external knowledge sources. • Imperfect retrieval is prevalent in real-world RAG (70% of retrieved passages lack direct answers) • Knowledge conflicts exist in 19.2% of cases • LLM internal knowledge and external sources have distinct advantages • Effective combination of internal and external knowledge is crucial for reliable RAG
Fantastic Paper from @GoogleDeepMind. Astute RAG enhances LLM performance by resolving conflicts between internal and external knowledge sources. **Original Problem** 🔍: RAG systems face challenges from imperfect retrieval, introducing irrelevant or misleading information. Knowledge conflicts between LLMs' internal knowledge and external sources undermine RAG effectiveness. ----- **Solution in this Paper** 🛠️: • Astute RAG: - Adaptive generation of internal LLM knowledge - Iterative source-aware knowledge consolidation - Answer finalization based on information reliability • Addresses knowledge conflicts explicitly • Combines internal and external knowledge effectively ----- **Key Insights from this Paper** 💡: • Imperfect retrieval is prevalent in real-world RAG (70% of retrieved passages lack direct answers) • Knowledge conflicts exist in 19.2% of cases • LLM internal knowledge and external sources have distinct advantages • Effective combination of internal and external knowledge is crucial for reliable RAG ----- **Results** 📊: • Outperforms baselines across datasets: - 6.85% relative improvement on Claude - 4.13% improvement on Gemini • Only method matching/exceeding No-RAG performance in worst-case scenarios • Resolves 80% of knowledge conflicts correctly • Improves performance even when neither knowledge source alone is correct
1
10
1
46
5,037
Vector Database by Hand ✍️ Vector databases are revolutionizing how we search and analyze complex data. They have become the backbone of Retrieval Augmented Generation (#RAG). How do vector databases work? [1] Given ↳ A dataset of three sentences, each has 3 words (or tokens) ↳ In practice, a dataset may contain millions or billions of sentences. The max number of tokens may be tens of thousands (e.g., 32,768 mistral-7b). Process "how are you" [2] 🟨 Word Embeddings ↳ For each word, look up corresponding word embedding vector from a table of 22 vectors, where 22 is the vocabulary size. ↳ In practice, the vocabulary size can be tens of thousands. The word embedding dimensions are in the thousands (e.g., 1024, 4096) [3] 🟩 Encoding ↳ Feed the sequence of word embeddings to an encoder to obtain a sequence of feature vectors, one per word. ↳ Here, the encoder is a simple one layer perceptron (linear layer + ReLU) ↳ In practice, the encoder is a transformer or one of its many variants. [4] 🟩 Mean Pooling ↳ Merge the sequence of feature vectors into a single vector using "mean pooling" which is to average across the columns. ↳ The result is a single vector. We often call it "text embeddings" or "sentence embeddings." ↳ Other pooling techniques are possible, such as CLS. But mean pooling is the most common. [5] 🟦 Indexing ↳ Reduce the dimensions of the text embedding vector by a projection matrix. The reduction rate is 50% (4->2). ↳ In practice, the values in this projection matrix is much more random. ↳ The purpose is similar to that of hashing, which is to obtain a short representation to allow faster comparison and retrieval. ↳ The resulting dimension-reduced index vector is saved in the vector storage. [6] Process "who are you" ↳ Repeat [2]-[5] [7] Process "who am I" ↳ Repeat [2]-[5] Now we have indexed our dataset in the vector database. [8] 🟥 Query: "am I you" ↳ Repeat [2]-[5] ↳ The result is a 2-d query vector. [9] 🟥 Dot Products ↳ Take dot product between the query vector and database vectors. They are all 2-d. ↳ The purpose is to use dot product to estimate similarity. ↳  By transposing the query vector, this step becomes a matrix multiplication. [10] 🟥 Nearest Neighbor ↳ Find the largest dot product by linear scan. ↳ The sentence with the highest dot product is "who am I" ↳ In practice, because scanning billions of vectors is slow, we use an Approximate Nearest Neighbor (ANN) algorithm like the Hierarchical Navigable Small Worlds (HNSW).
27
415
20
2,078
192,298
Multi-Query RAG by hand✍️ + Langflow @langflow_ai. I designed this exercise to map my hand sketch of this advanced RAG technique to a prototype I developed in Langflow. 👇Join the "RAG and AI Agent" Developers community.
2
37
3
201
13,679
In this short video, I explain the concept of RAG (Retrieval-Augmented Generation) in a simple and easy-to-understand way. I hope it helps! Let me know your thoughts. The material is based on Prof. @ProfTomYeh's 'AI by Hand' resources.
47
1
286
28,249