Skip to content

Commit 5812738

Browse files
authored
Update API.md
1 parent 285c7f2 commit 5812738

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

API.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -240,14 +240,11 @@ curl 'http://localhost:35248/api/article?id=123'
240240
## Configuration Requirements
241241

242242
### Vector Search
243-
To use vector search:
244-
1. Start the server with AI enabled: `--ai`
245-
2. Configure AI host/port if not using defaults
246-
247-
Example:
248-
```bash
249-
./wikilite --ai --web
250-
```
243+
To use vector search, you have two options:
244+
1. **Remote Server**:
245+
You can pass the remote server URL using the `--ai-api-url` flag. This allows the system to connect to a remote server where the vector search functionality is hosted.
246+
2. **Local Model**:
247+
Alternatively, you can use a local GGUF model file. The model file must have the same name as the AI model (`--ai-model`) with `.gguf` extension. The file should be located in the same directory as the executable.
251248

252249
## Notes
253250
- All search endpoints support both GET and POST methods

0 commit comments

Comments
 (0)