<img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=2604436&amp;fmt=gif">
An image showing the LlamaIndex logo and name and the Docugami name superimposed over images of connected technology and icons of technology tools and processes
An image showing the LlamaIndex logo and name and the Docugami name superimposed over images of connected technology and icons of technology tools and processes
Generative AI

LlamaIndex + Docugami: Connect Your Own Business Documents with LLM Apps

Today, we are delighted to announce an initial integration of LlamaIndex with Docugami, via the Llama Hub 

The LlamaIndex framework provides a simple, flexible interface between a user’s information and Large Language Models (LLMs). Coupling LlamaIndex with Docugami’s unique ability to generate a Document XML Knowledge Graph Representation of long-form Business Documents opens exciting new opportunities for LlamaIndex developers to build powerful and accurate LLM applications that connect users to their own Business Documents, without being limited by document size or context window restrictions. 

While there are a number of LLMs in use today, general purpose LLMs cannot deliver the accuracy needed for business, financial, legal, and scientific settings because they are trained on the public internet, which introduces a wide range of irrelevant and low-quality source materials. By contrast, Docugami is trained exclusively for business scenarios, resulting in greater accuracy and reliability.  

  • To get started, follow the quick start guide here 
  • Tag us @docugami on twitter to share your results and experience.  
  • We welcome your technical questions, please post them on our new Docugami Discord. 

We are excited to see what you will build with this integration! 

How Docugami Enhances Document Understanding 

Systems aiming to understand the content of documents, such as retrieval and question-answering, will benefit greatly from Docugami's semantic Document XML Knowledge Graph Representation. Our unique approach to document chunking allows for better understanding and processing of your documents: 

  1. Intelligent Chunking: Docugami breaks down every document into a hierarchical semantic XML tree of chunks of varying sizes, from single words or numerical values to entire sections. These chunks follow the semantic contours of the document, providing a more meaningful representation than arbitrary length or simple whitespace-based chunking. 

  2. Structured Representation: In addition, the XML tree indicates the structural contours of every document, using attributes denoting headings, paragraphs, lists, tables, and other common elements, and does that consistently across all supported document formats, such as scanned PDFs or DOCX files. It appropriately handles long-form document characteristics like page headers/footers or multi-column flows for clean text extraction. 

  3. Semantic Annotations: Chunks are annotated with semantic tags that are coherent across the document set, facilitating consistent hierarchical queries across multiple documents, even if they are written and formatted differently. For example, in set of lease agreements of completely different styles and formats, you can easily identify key provisions like the Landlord, Tenant, or Renewal Date, as well as more complex information such as the existence and/or wording of any sub-lease provision or whether a specific jurisdiction has an exception section within a Termination Clause. 

  4. Additional Metadata: Chunks are also annotated with additional metadata, if a user has been using Docugami. This additional metadata can be used for high-accuracy Document QA without context window restrictions. See detailed code walk-through in this notebook.  

With this Docugami integration, users of LlamaIndex powered apps can now unlock the full potential of their own Business Documents. We can't wait to see the innovative solutions you create.  

To celebrate this initial integration with LlamaIndex we are expanding our standard 14-day free-trial for LlamaIndex developers: Start a free Docugami trial and file a support ticket mentioning LlamaIndex to receive an extended 30-day trial with an upgraded 2000-page limit 

Happy building! 

Get noticed on the latest Document Engineering insights

Be the first to know about the latest news, use cases, and innovative features.