Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions scripts/bench/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Engram Benchmark Suite

Compares Engram retrieval against Pinecone, Weaviate, and pgvector.

## Quick Start

```bash
# 1. Start Engram Web API
cd /path/to/Engram
uvicorn engram-web.api.main:app --port 8000

# 2. Install deps
pip install -r scripts/bench/requirements.txt

# 3. Run benchmark
python scripts/bench/run.py --engram-only --dataset nfcorpus
python scripts/bench/run.py --all --output report.md
```

## Datasets

Uses BEIR subsets (nfcorpus, fiqa, scidocs) by default.
Falls back to synthetic data if BEIR is not installed.

## Output

Generates `bench_report.md` with recall@K and latency metrics.
1 change: 1 addition & 0 deletions scripts/bench/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Engram Benchmark Suite
13 changes: 13 additions & 0 deletions scripts/bench/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Engram Benchmark Suite - Dependencies
# Core
requests>=2.28
numpy>=1.24
beir>=2.0

# Vector DB clients (install as needed)
# pinecone-client>=3.0 # pip install pinecone-client
# weaviate-client>=4.0 # pip install weaviate-client
# psycopg2-binary>=2.9 # pip install psycopg2-binary (for pgvector)

# Engram (local)
# Install engram from source: pip install -e /path/to/Engram
Loading