How BetterBee Works Under the Hood
A comprehensive overview of our retrieval-augmented generation pipeline, supported file formats, industry applications, and security guarantees.
The Ingestion & Retrieval Pipeline
End-to-end data lifecycle from raw document upload to cited streaming generation.
Direct-to-S3 Ingestion
Client requests presigned upload URLs directly from FastAPI. Raw bytes upload directly to private AWS S3, bypassing web proxy bottlenecks.
Layout-Aware Structural Parsing
Background tasks parse documents while preserving layout anchors: PDF page numbers, Word headings, Excel sheet tabs, and PowerPoint slide indices.
Vector Embeddings & Tenant Isolation
Text is chunked into 1000-character blocks with overlap, transformed into 384-dimensional dense vectors via SentenceTransformers, and stored in isolated ChromaDB collections.
Grounded LLM Synthesis & Streaming
ChromaDB cosine retrieval fetches top matches. Groq Llama 3 synthesizes answers streamed via SSE with verifiable citation metadata.
Preserving Structural Truth
Unlike basic search systems that concatenate entire documents into flat text, BetterBee's parsing engine retains coordinate anchors:
- Page Numbers: Injected into chunk metadata during PDF page extraction.
- Slide Indices: Tagged on PowerPoint shapes and slide notes.
- Sheet & Row Keys: Formatted into structured Markdown tables from Excel workbooks.
- Recursive Chunking: 1,000 characters per chunk with 200-character overlaps to prevent split definitions.
Enterprise Industry Use Cases
How legal, finance, engineering, and operations teams leverage BetterBee daily.
Legal & Compliance
Contract auditing, liability review, and regulatory clausesAccelerate agreement review by asking direct questions across NDAs, MSAs, and vendor contracts. Locate governing law clauses, termination notice periods, and liability caps in seconds.
Finance & Operations
Balance sheet analysis, quarterly reports, and budget varianceCross-reference multi-tab Excel models and PDF investor updates. Extract EBITDA figures, operational expense ratios, and revenue breakdowns without manual cell hunting.
Engineering & Architecture
Technical specifications, API docs, and architecture RFCsGive engineering teams instant access to system specifications, database schemas, and migration runbooks. BetterBee indexes Markdown and technical specs seamlessly.
HR & Employee Onboarding
Company policies, employee handbooks, and standard proceduresEmpower employees to self-serve answers regarding healthcare benefits, PTO policies, travel expense limits, and security guidelines through natural conversation.
Supported Document Formats
Native parsers built for structural extraction without information loss.
PDF Documents
Extracts textual content while tracking individual page boundaries. Handles complex multi-page reports, legal filings, and whitepapers.
Microsoft Word
Parses headings, paragraph hierarchies, bulleted lists, and embedded tables from Word (.docx) specifications and contracts.
Excel Spreadsheets
Iterates across all worksheet tabs, formatting rows and tabular cell grids into clean Markdown tables suitable for LLM reasoning.
PowerPoint Presentations
Extracts text boxes, slide titles, bullet hierarchies, and presenter speaker notes from presentation decks.
Markdown
Preserves GitHub-flavored Markdown formatting, fenced code snippets, callout blocks, and structural table grids.
Plain Text & Logs
Fast ingestion of standard plain text, logs, configuration files, and transcribed audio/meeting transcripts.
Security & Data Governance
Guaranteed tenant isolation, zero model training, and private cloud storage.
Zero Model Training
Your uploaded documents, indexed vector embeddings, and conversation histories are strictly your property. BetterBee never contributes customer data to public AI training datasets or third-party corpuses.
Tenant-Isolated Vector Collections
Embeddings in ChromaDB are segregated by workspace identifiers. Vector similarity queries are restricted to the selected workspace boundary, mathematically preventing cross-tenant information bleed.
Private AWS S3 Storage & Encryption
Uploaded files reside directly in your private AWS S3 bucket. All transfers utilize TLS 1.3 in transit and AWS SSE-S3 256-bit encryption at rest. Pre-signed upload URLs expire within 60 minutes.
Clerk JWT Authentication & JWKS Caching
Every API request is authenticated via JSON Web Tokens (JWT) verified against Clerk's cryptographically signed public keys. Fast local JWKS caching ensures zero verification network bottlenecks.
Infrastructure & Security Specifications
Start Searching Your Documents Today
Create your first workspace, upload company documentation, and start receiving grounded answers in minutes.