raggrep 0.2.2 → 0.3.0
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/dist/app/search/index.d.ts +1 -1
- package/dist/cli/main.js +163 -24
- package/dist/cli/main.js.map +18 -16
- package/dist/domain/entities/searchResult.d.ts +11 -0
- package/dist/index.js +366 -19
- package/dist/index.js.map +16 -14
- package/dist/infrastructure/embeddings/transformersEmbedding.d.ts +1 -1
- package/dist/modules/language/typescript/index.d.ts +1 -1
- package/dist/modules/registry.d.ts +1 -1
- package/dist/tests/ranking.test.d.ts +12 -0
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Implements the EmbeddingProvider port using Transformers.js for local embeddings.
|
|
5
5
|
* Models are automatically downloaded and cached on first use.
|
|
6
6
|
*/
|
|
7
|
-
import type { EmbeddingProvider, EmbeddingConfig, EmbeddingModelName } from
|
|
7
|
+
import type { EmbeddingProvider, EmbeddingConfig, EmbeddingModelName } from "../../domain/ports";
|
|
8
8
|
/** Available embedding models and their Hugging Face IDs */
|
|
9
9
|
export declare const EMBEDDING_MODELS: Record<EmbeddingModelName, string>;
|
|
10
10
|
/**
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* Index location: .raggrep/index/language/typescript/
|
|
10
10
|
*/
|
|
11
|
-
import { IndexModule, IndexContext, SearchContext, SearchOptions, FileIndex, SearchResult, ModuleConfig } from
|
|
11
|
+
import { IndexModule, IndexContext, SearchContext, SearchOptions, FileIndex, SearchResult, ModuleConfig } from "../../../types";
|
|
12
12
|
/** Default minimum similarity score for search results */
|
|
13
13
|
export declare const DEFAULT_MIN_SCORE = 0.15;
|
|
14
14
|
/** Default number of results to return */
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ranking Quality Tests
|
|
3
|
+
*
|
|
4
|
+
* These tests verify that search results are ranked appropriately.
|
|
5
|
+
* They serve as regression tests when making ranking improvements.
|
|
6
|
+
*
|
|
7
|
+
* Test structure:
|
|
8
|
+
* - Each test specifies a query and expected ranking criteria
|
|
9
|
+
* - Tests check relative ordering, not absolute scores
|
|
10
|
+
* - Tests use the scenarios/basic folder
|
|
11
|
+
*/
|
|
12
|
+
export {};
|