|
| 1 | +--- |
| 2 | +slug: welcome |
| 3 | +title: Welcome to Vectorless |
| 4 | +authors: [zTgx] |
| 5 | +tags: [vectorless, rag, llm, announcement] |
| 6 | +--- |
| 7 | + |
| 8 | +Vectorless is a reasoning-native document intelligence engine written in Rust — **no vector database, no embeddings, no similarity search**. |
| 9 | + |
| 10 | +{/* truncate */} |
| 11 | + |
| 12 | +## Why Vectorless? |
| 13 | + |
| 14 | +Traditional RAG systems rely on vector embeddings and similarity search. This approach loses document structure, requires a vector database, and often returns chunks that lack context. |
| 15 | + |
| 16 | +Vectorless takes a different path: |
| 17 | + |
| 18 | +- **Hierarchical Semantic Trees** — Documents are parsed into a tree of sections, preserving structure and relationships. |
| 19 | +- **LLM Navigation** — Queries are resolved by intelligently traversing the tree, not by comparing vectors. |
| 20 | +- **Zero Infrastructure** — No vector DB, no embedding models, no similarity search. Just an LLM API key. |
| 21 | + |
| 22 | +## Quick Start |
| 23 | + |
| 24 | +### Python |
| 25 | + |
| 26 | +```python |
| 27 | +import asyncio |
| 28 | +from vectorless import Engine, IndexContext |
| 29 | + |
| 30 | +async def main(): |
| 31 | + engine = Engine( |
| 32 | + workspace="./data", |
| 33 | + api_key="sk-...", |
| 34 | + model="gpt-4o", |
| 35 | + ) |
| 36 | + |
| 37 | + # Index a document |
| 38 | + result = await engine.index(IndexContext.from_file("./report.pdf")) |
| 39 | + doc_id = result.doc_id |
| 40 | + |
| 41 | + # Query |
| 42 | + answer = await engine.query(doc_id, "What is the total revenue?") |
| 43 | + print(answer.single().content) |
| 44 | + |
| 45 | +asyncio.run(main()) |
| 46 | +``` |
| 47 | + |
| 48 | +### Rust |
| 49 | + |
| 50 | +```rust |
| 51 | +use vectorless::{EngineBuilder, IndexContext, QueryContext}; |
| 52 | + |
| 53 | +#[tokio::main] |
| 54 | +async fn main() -> vectorless::Result<()> { |
| 55 | + let engine = EngineBuilder::new() |
| 56 | + .with_workspace("./data") |
| 57 | + .with_key("sk-...") |
| 58 | + .with_model("gpt-4o") |
| 59 | + .build() |
| 60 | + .await?; |
| 61 | + |
| 62 | + let result = engine.index(IndexContext::from_path("./report.pdf")).await?; |
| 63 | + let doc_id = result.doc_id().unwrap(); |
| 64 | + |
| 65 | + let result = engine.query( |
| 66 | + QueryContext::new("What is the total revenue?").with_doc_id(doc_id) |
| 67 | + ).await?; |
| 68 | + println!("{}", result.content); |
| 69 | + |
| 70 | + Ok(()) |
| 71 | +} |
| 72 | +``` |
| 73 | + |
| 74 | +## What's Next? |
| 75 | + |
| 76 | +- Cross-document relationship graph |
| 77 | +- Incremental indexing with content fingerprinting |
| 78 | +- Multi-format support (Markdown, PDF, DOCX) |
| 79 | + |
| 80 | +The project is open source under Apache-2.0. Contributions welcome! |
| 81 | + |
| 82 | +- [GitHub](https://github.com/vectorlessflow/vectorless) |
| 83 | +- [PyPI](https://pypi.org/project/vectorless/) |
| 84 | +- [crates.io](https://crates.io/crates/vectorless) |
0 commit comments