MockDocumentStore
A pre-built mock document store class that provides search functionality without requiring actual search infrastructure. Uses theSAMPLE_CONTRACT data for testing.
Methods
full_text_search
Performs a simple text search across the mock document sections.The search query string to match against section content and titles
Maximum number of results to return
List of matching section dictionaries, each containing:
section_id: Unique section identifiertitle: Section titlepage_num: Page number in the documentcontent: Full section content
get_document_sections
Retrieves all sections for a given document ID.The document identifier (currently only supports “service_agreement_2024”)
List of all sections in the document
SAMPLE_CONTRACT
A pre-loaded sample Master Service Agreement contract used for testing and demonstrations.Structure
Document Details
Document identifier:
"service_agreement_2024"Document title:
"Master Service Agreement 2024"List of 7 contract sections, each containing:
section_id: Unique identifier (s1-s7)title: Section titlepage_num: Page number in the documentcontent: Full text content of the section
Section Overview
| Section ID | Title | Page | Key Topics |
|---|---|---|---|
| s1 | Scope of Services | 1 | Service description |
| s2 | Payment Terms | 3 | 30-day payment window |
| s3 | Late Payment Penalties | 8 | 1.5% monthly late fee, suspension after 60 days |
| s4 | Intellectual Property Rights | 12 | Ownership and licensing |
| s5 | Indemnification | 15 | Mutual indemnification clauses |
| s6 | Termination for Convenience | 18 | 30-day notice, surviving provisions |
| s7 | Confidentiality | 20 | 3-year confidentiality period |