Skip to content

Commit fb28c3a

Browse files
authored
Merge pull request #105 from vectorlessflow/dev
Dev
2 parents d53c560 + c6ad19a commit fb28c3a

31 files changed

Lines changed: 2315 additions & 471 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<img src="https://vectorless.dev/img/with-title.png" alt="Vectorless" width="400">
44

55
<h1>Reasoning-based Document Engine</h1>
6-
<h5>Reason, don't vector · Structure, not chunks · Agents, not embeddings · Exact, not synthesized</h5>
6+
<h5>Reason, don't vector · Structure, not chunks · Agents, not embeddings</h5>
77

88
[![PyPI](https://img.shields.io/pypi/v/vectorless.svg)](https://pypi.org/project/vectorless/)
99
[![PyPI Downloads](https://static.pepy.tech/badge/vectorless/month)](https://pepy.tech/projects/vectorless)
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Session API Walkthrough
2+
3+
Demonstrates the full high-level Vectorless Python API using the `Session` and `SyncSession` classes.
4+
5+
## What it covers
6+
7+
| # | Topic | API |
8+
|---|-------|-----|
9+
| 1 | Session creation | `Session()`, `from_env()`, `from_config_file()` |
10+
| 2 | Indexing sources | `index(content=)`, `index(path=)`, `index(bytes_data=)`, `index(directory=)` |
11+
| 3 | Batch indexing | `index_batch(paths, jobs=N)` |
12+
| 4 | Querying | `ask(question, doc_ids=)`, `ask(question, workspace_scope=True)` |
13+
| 5 | Streaming query | `query_stream()` async iterator |
14+
| 6 | Document management | `list_documents()`, `document_exists()`, `remove_document()`, `clear_all()` |
15+
| 7 | Document graph | `get_graph()` nodes, edges, keywords |
16+
| 8 | Event callbacks | `EventEmitter` with `@on_index` / `@on_query` decorators |
17+
| 9 | Metrics | `metrics_report()` |
18+
| 10 | Sync API | `SyncSession` (no async/await) |
19+
20+
## Setup
21+
22+
```bash
23+
pip install vectorless
24+
export VECTORLESS_API_KEY="sk-..."
25+
export VECTORLESS_MODEL="gpt-4o"
26+
```
27+
28+
## Run
29+
30+
```bash
31+
python main.py
32+
```

0 commit comments

Comments
 (0)