https://discord.gg/botpress logo
@Ross Hey Ross, I'm currently testing
# 🌎general
w
@loud-crowd-60573 Hey Ross, I'm currently testing different file formats (Markdown rule, simple TXT, and doc format) to improve my Knowledge Base data quality. To evaluate how BotPress handles them, I uploaded the same document in multiple formats text and compared the text output after indexing. However, I’ve noticed that no matter what format I use, BotPress seems to remove most of the text structure including line breaks, bullet points, and section dividers. Many of the parts ended up flattened into a single long paragraph in the indexed content. I’m trying to find a reliable way to preserve paragraph spacing, numbered lists, or section titles so that RAG retrieval remains accurate. Any insights or examples?
l
Will hop here to try providing some additional insight!
@User
The Botpress docs AI did give some suggestions: > - Optimize Your Markdown Formatting > Since the internal conversion process often targets markdown, providing a well-structured markdown (.md) file from the start can yield the best results. Ensure you are explicitly using markdown syntax: > Use double line breaks between paragraphs to ensure they are treated as separate blocks. > Use markdown for lists: Use asterisks (*) or hyphens (-) for bullet points and numbers (1., 2.) for ordered lists. > Use headings: Use #, ##, etc., for section titles. > This gives the indexing process the clearest possible signals > about your content's structure. > - Break Down Large Documents > Instead of a single, large document, consider breaking it down into multiple, smaller documents or Rich Text entries. Each entry could represent a specific, self-contained section or topic. This approach has two main benefits: > It helps preserve the context within each smaller chunk. > It allows the RAG system to retrieve more focused and relevant information, improving accuracy. > By using a combination of these methods, you should be able to better preserve the intended structure of your documents and improve the quality of your bot's answers.
w
Thanks for the insight 🙂 I’ve tried most of the rules you mentioned, but we’re still a bit concerned with the output since we’re dealing with detailed medical product data that require clear hierarchy and component-to-component compatibility along with clinical workflow. If this is still the best approach, I’ll keep experimenting and optimizing on my side. Please let us know if there are any really good sample KBs (preferably production-level). Thanks!