Re:Ask HN: Lessons from Building a Fortune 500 RAG Chatbot (...
by zergnick on Thursday March 20, 2025 @09:26PM
(#43430970)
When you are dealing with documents with different structures, how to do the document chunking efficiently without losing important metadata?
[ Parent
| on HN ]
Re:Ask HN: Lessons from Building a Fortune 500 RAG Chatbot (...
by tylersuard on Friday March 21, 2025 @02:37PM
(#43439443)
First of all, great question.
Second, we use a search service, and vectors are treated as supplementary to the text search, so chunking doesn't matter as much. We will usually take an entire PDF page and embed that, no matter what structure the data on that page is. We do keep track of the name of the document and the page number. For SQL records, we just turn each record into a text string and embed that.