Name: Towards AI Legal Name: Towards AI, Inc. Description: Towards AI is the world's leading artificial intelligence (AI) and technology publication. Read by thought-leaders and decision-makers around the world. Phone Number: +1-650-246-9381 Email: [email protected]
228 Park Avenue South New York, NY 10003 United States
Website: Publisher: https://towardsai.net/#publisher Diversity Policy: https://towardsai.net/about Ethics Policy: https://towardsai.net/about Masthead: https://towardsai.net/about
Name: Towards AI Legal Name: Towards AI, Inc. Description: Towards AI is the world's leading artificial intelligence (AI) and technology publication. Founders: Roberto Iriondo, , Job Title: Co-founder and Advisor Works for: Towards AI, Inc. Follow Roberto: X, LinkedIn, GitHub, Google Scholar, Towards AI Profile, Medium, ML@CMU, FreeCodeCamp, Crunchbase, Bloomberg, Roberto Iriondo, Generative AI Lab, Generative AI Lab Denis Piffaretti, Job Title: Co-founder Works for: Towards AI, Inc. Louie Peters, Job Title: Co-founder Works for: Towards AI, Inc. Louis-François Bouchard, Job Title: Co-founder Works for: Towards AI, Inc. Cover:
Towards AI Cover
Logo:
Towards AI Logo
Areas Served: Worldwide Alternate Name: Towards AI, Inc. Alternate Name: Towards AI Co. Alternate Name: towards ai Alternate Name: towardsai Alternate Name: towards.ai Alternate Name: tai Alternate Name: toward ai Alternate Name: toward.ai Alternate Name: Towards AI, Inc. Alternate Name: towardsai.net Alternate Name: pub.towardsai.net
5 stars – based on 497 reviews

Frequently Used, Contextual References

TODO: Remember to copy unique IDs whenever it needs used. i.e., URL: 304b2e42315e

Resources

Unlock the full potential of AI with Building LLMs for Productionβ€”our 470+ page guide to mastering LLMs with practical projects and expert insights!

Publication

How to Optimize Chunk Size for RAG in Production?
Artificial Intelligence   Data Science   Latest   Machine Learning

How to Optimize Chunk Size for RAG in Production?

Last Updated on May 14, 2024 by Editorial Team

Author(s): Mandar Karhade, MD. PhD.

Originally published on Towards AI.

The chunk size can make or break the retrieval. Here is how to determine the best chunk size for your use case.

Today, we will examine chunk-size optimization during the development of an RAG application. We will assume that it is a business-specific use case. We will also observe how and where generic approaches to chunk-size finding can fail or excel.

Let me ramble it a little bit! This part is important so that the decisions are apparent in the later part of the article.

Assume that you are working at your company. The company has a bunch of historical documents that are organized somewhere in SharePoint. Your company has finally decided to invest in Generative AI. Now, you are tasked with creating an application that can find relevant information in the form of answers and provide it to your 200 employees. Let’s chunk your task into smaller issues.

A store of documents (let's say you have 10000 documents)A way to retrieve informationA way to generate answerUI/UX to deliver answers back to your team/users

We will focus on only the store of documents and a way to retrieve information. Two critical issues in the production system are fault tolerance and Scalability/Latency β€”

There are two probabilities that we should be worried about. P1 is the probability of making a mistake, and P2 is the probability of harm… Read the full blog for free on Medium.

Join thousands of data leaders on the AI newsletter. Join over 80,000 subscribers and keep up to date with the latest developments in AI. From research to projects and ideas. If you are building an AI startup, an AI-related product, or a service, we invite you to consider becoming aΒ sponsor.

Published via Towards AI

Feedback ↓