You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A local context retrieval library that enables semantic search over your documentation. It loads documents (Markdown, JSON, Text), vectorizes them using [Transformers.js](https://huggingface.co/transformers.js), and stores vectors locally in `.zvec` files for fast semantic querying.
4
9
5
10
> [!TIP]
@@ -20,6 +25,12 @@ A local context retrieval library that enables semantic search over your documen
20
25
npm install @antv/context
21
26
```
22
27
28
+
> [!TIP]
29
+
> If you encounter model download timeout when first creating a Context, set the environment variable:
|`queryExpansion`|`QueryExpansionOptions | false`|`false` (no-op)| Query expansion with user-provided synonym map. `false` disables. Without `synonyms`, expansion is a no-op. |
62
+
| queryExpansion | QueryExpansionOptions |false|false| Query expansion with user-provided synonym map. false disables. Without synonyms, expansion is a no-op. |
52
63
|`ftsFields`|`string[]`|`['content']`| Fields to index forFull Text Searchin hybrid mode |
53
64
|`ftsFieldWeights`|`Record<string, number>`|`{ content: 1 }`| Per-field boost weights for FTS text path. Higher = more influence. |
54
65
|`rankConstant`|`number`|`60`| RRF rank constant for hybrid search fusion. Lower = "winner-takes-all", higher = more even. |
@@ -96,7 +107,7 @@ Document IDs are derived from file paths relative to `basePath` for cross-machin
96
107
| Parameter | Type | Description |
97
108
|-----------|------|-------------|
98
109
|`library`|`string`| Library name for organizing documents |
0 commit comments