obsidian-hybrid-search 0.2.1 → 0.2.2
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 +9 -7
- package/dist/src/config.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,8 +40,11 @@ export OBSIDIAN_VAULT_PATH="/path/to/your/vault"
|
|
|
40
40
|
|
|
41
41
|
# Optional — only needed if using a remote embedding API instead of local model
|
|
42
42
|
export OPENAI_API_KEY="sk-..."
|
|
43
|
-
|
|
44
|
-
export
|
|
43
|
+
# Default API base is https://api.openai.com/v1 — override for other providers:
|
|
44
|
+
# export OPENAI_BASE_URL="https://openrouter.ai/api/v1" # OpenRouter
|
|
45
|
+
# export OPENAI_BASE_URL="http://localhost:11434/v1" # Ollama (no key needed)
|
|
46
|
+
# export OPENAI_BASE_URL="http://localhost:1234/v1" # LM Studio (no key needed)
|
|
47
|
+
export OPENAI_EMBEDDING_MODEL="text-embedding-3-small"
|
|
45
48
|
```
|
|
46
49
|
|
|
47
50
|
Without `OPENAI_API_KEY` the local `Xenova/all-MiniLM-L6-v2` model is used automatically (no API key needed, ~50 MB download on first run).
|
|
@@ -144,8 +147,7 @@ Add to your Claude MCP config (`.mcp.json` or `claude_desktop_config.json`):
|
|
|
144
147
|
"OBSIDIAN_VAULT_PATH": "/path/to/your/vault",
|
|
145
148
|
"OBSIDIAN_IGNORE_PATTERNS": ".obsidian/**,templates/**,*.canvas",
|
|
146
149
|
"OPENAI_API_KEY": "sk-...",
|
|
147
|
-
"
|
|
148
|
-
"OPENAI_EMBEDDING_MODEL": "openai/text-embedding-3-small"
|
|
150
|
+
"OPENAI_EMBEDDING_MODEL": "text-embedding-3-small"
|
|
149
151
|
}
|
|
150
152
|
}
|
|
151
153
|
}
|
|
@@ -170,9 +172,9 @@ The server exposes three tools:
|
|
|
170
172
|
|----------------------|---------|-------------|
|
|
171
173
|
| `OBSIDIAN_VAULT_PATH` | *(required)* | Absolute path to your vault |
|
|
172
174
|
| `OBSIDIAN_IGNORE_PATTERNS` | `.obsidian/**,templates/**,*.canvas` | Comma-separated ignore patterns |
|
|
173
|
-
| `OPENAI_API_KEY` | — | API key
|
|
174
|
-
| `OPENAI_BASE_URL` | `https://
|
|
175
|
-
| `OPENAI_EMBEDDING_MODEL` | `
|
|
175
|
+
| `OPENAI_API_KEY` | — | API key; omit to use local Xenova embeddings or keyless servers (Ollama, LM Studio) |
|
|
176
|
+
| `OPENAI_BASE_URL` | `https://api.openai.com/v1` | API base URL |
|
|
177
|
+
| `OPENAI_EMBEDDING_MODEL` | `text-embedding-3-small` | Embedding model name |
|
|
176
178
|
|
|
177
179
|
### Ignore patterns
|
|
178
180
|
|
package/dist/src/config.js
CHANGED
|
@@ -16,10 +16,10 @@ export const config = {
|
|
|
16
16
|
return process.env.OPENAI_API_KEY;
|
|
17
17
|
},
|
|
18
18
|
get apiBaseUrl() {
|
|
19
|
-
return process.env.OPENAI_BASE_URL ?? 'https://
|
|
19
|
+
return process.env.OPENAI_BASE_URL ?? 'https://api.openai.com/v1';
|
|
20
20
|
},
|
|
21
21
|
get apiModel() {
|
|
22
|
-
return process.env.OPENAI_EMBEDDING_MODEL ?? '
|
|
22
|
+
return process.env.OPENAI_EMBEDDING_MODEL ?? 'text-embedding-3-small';
|
|
23
23
|
},
|
|
24
24
|
get dbPath() {
|
|
25
25
|
const v = process.env.OBSIDIAN_VAULT_PATH;
|