raggrep 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -9
- package/dist/cli/main.js +2479 -1627
- package/dist/cli/main.js.map +18 -12
- package/dist/index.js +2588 -1733
- package/dist/index.js.map +18 -12
- package/dist/infrastructure/config/configLoader.d.ts +22 -3
- package/dist/infrastructure/config/index.d.ts +1 -1
- package/dist/introspection/conventions/configFiles.d.ts +10 -0
- package/dist/introspection/conventions/conventions.test.d.ts +4 -0
- package/dist/introspection/conventions/entryPoints.d.ts +10 -0
- package/dist/introspection/conventions/frameworks/convex.d.ts +11 -0
- package/dist/introspection/conventions/frameworks/index.d.ts +22 -0
- package/dist/introspection/conventions/frameworks/nextjs.d.ts +10 -0
- package/dist/introspection/conventions/index.d.ts +39 -0
- package/dist/introspection/conventions/types.d.ts +62 -0
- package/dist/tests/integration.test.d.ts +9 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ RAGgrep indexes your code and allows semantic search using natural language quer
|
|
|
7
7
|
## Features
|
|
8
8
|
|
|
9
9
|
- **🏠 Local-first** — All indexing and search happens locally. No cloud dependencies.
|
|
10
|
-
- **📁 Filesystem-based** — Index stored as readable JSON files
|
|
10
|
+
- **📁 Filesystem-based** — Index stored as readable JSON files in system temp directory.
|
|
11
11
|
- **⚡ Tiered search** — Fast keyword filtering + semantic search for efficiency.
|
|
12
12
|
- **🔍 Hybrid scoring** — Combines semantic similarity with BM25 keyword matching.
|
|
13
13
|
- **🔄 Incremental** — Only re-indexes files that have changed.
|
|
@@ -17,9 +17,12 @@ RAGgrep indexes your code and allows semantic search using natural language quer
|
|
|
17
17
|
## Installation
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
# Install globally
|
|
20
|
+
# Install globally with npm
|
|
21
21
|
npm install -g raggrep
|
|
22
22
|
|
|
23
|
+
# Or with Bun (recommended)
|
|
24
|
+
bun install -g raggrep
|
|
25
|
+
|
|
23
26
|
# Or use without installing
|
|
24
27
|
npx raggrep --help
|
|
25
28
|
```
|
|
@@ -92,15 +95,26 @@ raggrep status # Show index status
|
|
|
92
95
|
|
|
93
96
|
## How It Works
|
|
94
97
|
|
|
95
|
-
RAGgrep uses a
|
|
98
|
+
RAGgrep uses a **dual-module architecture** with two complementary index types:
|
|
99
|
+
|
|
100
|
+
### Core Module
|
|
101
|
+
|
|
102
|
+
- **Language-agnostic** regex-based symbol extraction
|
|
103
|
+
- **BM25 keyword matching** for fast, deterministic search
|
|
104
|
+
- Works on any text file
|
|
105
|
+
|
|
106
|
+
### TypeScript Module
|
|
96
107
|
|
|
97
|
-
|
|
98
|
-
|
|
108
|
+
- **AST-based parsing** via TypeScript Compiler API
|
|
109
|
+
- **Semantic embeddings** for natural language understanding
|
|
110
|
+
- **Symbolic index** for fast BM25 candidate filtering
|
|
99
111
|
|
|
100
|
-
|
|
112
|
+
Search combines results from both modules:
|
|
101
113
|
|
|
102
114
|
```
|
|
103
|
-
Query →
|
|
115
|
+
Query → Core (symbol/BM25) ─┐
|
|
116
|
+
├→ Merge & rank → Results
|
|
117
|
+
Query → TypeScript (BM25 filter → semantic) ─┘
|
|
104
118
|
```
|
|
105
119
|
|
|
106
120
|
## What Gets Indexed
|
|
@@ -139,8 +153,8 @@ Query → BM25 filter (symbolic) → Load candidates → Semantic search → Res
|
|
|
139
153
|
|
|
140
154
|
## Requirements
|
|
141
155
|
|
|
142
|
-
- Node.js 18+
|
|
143
|
-
- ~50MB disk space for models (cached globally)
|
|
156
|
+
- Node.js 18+ or Bun 1.0+
|
|
157
|
+
- ~50MB disk space for models (cached globally at `~/.cache/raggrep/models/`)
|
|
144
158
|
|
|
145
159
|
## License
|
|
146
160
|
|