File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -257,6 +257,31 @@ The plugin automatically detects available credentials in this order:
2572573 . ** Google** (Gemini Embeddings)
2582584 . ** Ollama** (Local/Private - requires ` nomic-embed-text ` )
259259
260+ ### Rate Limits by Provider
261+
262+ Each provider has different rate limits. The plugin automatically adjusts concurrency and delays:
263+
264+ | Provider | Concurrency | Delay | Best For |
265+ | ----------| -------------| -------| ----------|
266+ | ** GitHub Copilot** | 1 | 4s | Small codebases (<1k files) |
267+ | ** OpenAI** | 3 | 500ms | Medium codebases |
268+ | ** Google** | 5 | 200ms | Medium-large codebases |
269+ | ** Ollama** | 5 | None | Large codebases (10k+ files) |
270+
271+ ** For large codebases** , use Ollama locally to avoid rate limits:
272+
273+ ``` bash
274+ # Install the embedding model
275+ ollama pull nomic-embed-text
276+ ```
277+
278+ ``` json
279+ // .opencode/codebase-index.json
280+ {
281+ "embeddingProvider" : " ollama"
282+ }
283+ ```
284+
260285## ⚠️ Tradeoffs
261286
262287Be aware of these characteristics:
You can’t perform that action at this time.
0 commit comments