Vectorless is a reasoning-native document engine designed to be the foundational layer for AI applications that need structured access to documents, with the core written in Rust. It does not use vector databases, embeddings, or similarity search. Instead, it will reason through any of your structured documents — PDFs, Markdown, reports, contracts — and retrieve only what's relevant. Nothing more, nothing less.
How It Works
Quick Start
Rust
[]
= "0.1"
use ;
async
Python
=
# Index a document
= await
=
# Query
= await
Core Concepts
Semantic Tree Index
When you index a document, Vectorless builds a tree structure that mirrors the document's hierarchy:
Annual Report 2024
├── Executive Summary
│ ├── Financial Highlights
│ └── Strategic Outlook
├── Financial Statements
│ ├── Revenue Analysis ← "What is the total revenue?" lands here
│ ├── Operating Expenses
│ └── Net Income
└── Risk Factors
├── Market Risks
└── Regulatory Risks
Each node contains a summary generated by the LLM. During retrieval, the engine uses these summaries to reason about which path to follow — just like a human would scan a table of contents.
Cross-Document Graph
When multiple documents are indexed, Vectorless builds a relationship graph connecting them through shared keywords and concepts. This enables queries across your entire document collection.
# Query across all indexed documents
= await
Workspace Persistence
Indexed documents are stored in a workspace — there's no need to reprocess files between sessions:
=
# List all indexed documents
= await
What It's For
Vectorless is designed for applications that need precise document retrieval:
- Financial analysis — Extract specific figures from reports, compare across filings
- Legal research — Find relevant clauses, trace definitions across documents
- Technical documentation — Navigate large manuals, locate specific procedures
- Academic research — Cross-reference findings across papers
- Compliance — Audit trails with source references for every answer
Examples
See examples/ for complete usage patterns.
Contributing
Contributions welcome! If you find this useful, please ⭐ the repo — it helps others discover it.
Star History
License
Apache License 2.0