Skip to content

Commit cbb65b6

Browse files
committed
docs: add HF_ENDPOINT tip
1 parent 75c05ef commit cbb65b6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ A local context retrieval library that enables semantic search over your documen
2525
npm install @antv/context
2626
```
2727

28+
> [!TIP]
29+
> If you encounter model download timeout when first creating a Context, set the environment variable:
30+
> ```bash
31+
> HF_ENDPOINT=https://hf-mirror.com node your-script.js
32+
> ```
33+
2834
```typescript
2935
import { Context } from '@antv/context';
3036

0 commit comments

Comments
 (0)