Menu

leboncoin data in Python: flag capped text before chunking for RAG
πŸ“°

leboncoin data in Python: flag capped text before chunking for RAG

DEV Community: nlpΒ·vexaloom-labsΒ·2 days ago
#f2FQvGnf
#devtonlp#devto#dev#parent#listing
Long article (2124 words) β€” no AI summary yet.
Reading 0:00
15s threshold

Your chunker preserves every supplied character. The retrieval index still gets a description that ends halfway through a sentence.

You're choosing chunk sizes for listing descriptions, and increasing the budget feels like the obvious fix. Here's the catch: the Actor caps body at 2,000 characters before your chunker sees it. A larger window can't recover prose that never arrived.

Lab note 169: how should we build useful listing chunks without inviting the answering model to finish the seller's sentence?

The missing text is upstream

We'd keep narrative evidence and structured facts as separate retrieval units, joined to the same listing. Then we'd attach uncertainty to both.

A body that reaches the cap is possibly truncated . Its length doesn't prove clipping: a description can naturally end at the boundary.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.