Skip to content

Commit 75eb70a

Browse files
committed
docs: more instructions
1 parent f6a3d01 commit 75eb70a

1 file changed

Lines changed: 40 additions & 11 deletions

File tree

README.md

Lines changed: 40 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,25 @@ Uses a local SentenceTransformers model (`sentence-transformers/all-MiniLM-L6-v2
2222
claude mcp add cocoindex-code -- uvx cocoindex-code
2323
```
2424

25-
### Ollama (Local)
25+
### With a Cloud or Custom Embedding Model
26+
27+
Set `COCOINDEX_CODE_EMBEDDING_MODEL` to any [LiteLLM-supported model](https://docs.litellm.ai/docs/embedding/supported_embedding), along with the provider's API key:
28+
29+
<details>
30+
<summary>Ollama (Local)</summary>
2631

2732
```bash
2833
claude mcp add cocoindex-code \
2934
-e COCOINDEX_CODE_EMBEDDING_MODEL=ollama/nomic-embed-text \
3035
-- uvx cocoindex-code
3136
```
3237

33-
### OpenAI
38+
Set `OLLAMA_API_BASE` if your Ollama server is not at `http://localhost:11434`.
39+
40+
</details>
41+
42+
<details>
43+
<summary>OpenAI</summary>
3444

3545
```bash
3646
claude mcp add cocoindex-code \
@@ -39,7 +49,10 @@ claude mcp add cocoindex-code \
3949
-- uvx cocoindex-code
4050
```
4151

42-
### Azure OpenAI
52+
</details>
53+
54+
<details>
55+
<summary>Azure OpenAI</summary>
4356

4457
```bash
4558
claude mcp add cocoindex-code \
@@ -50,7 +63,10 @@ claude mcp add cocoindex-code \
5063
-- uvx cocoindex-code
5164
```
5265

53-
### Gemini
66+
</details>
67+
68+
<details>
69+
<summary>Gemini</summary>
5470

5571
```bash
5672
claude mcp add cocoindex-code \
@@ -59,7 +75,10 @@ claude mcp add cocoindex-code \
5975
-- uvx cocoindex-code
6076
```
6177

62-
### Mistral
78+
</details>
79+
80+
<details>
81+
<summary>Mistral</summary>
6382

6483
```bash
6584
claude mcp add cocoindex-code \
@@ -68,7 +87,10 @@ claude mcp add cocoindex-code \
6887
-- uvx cocoindex-code
6988
```
7089

71-
### Voyage (Code-Optimized)
90+
</details>
91+
92+
<details>
93+
<summary>Voyage (Code-Optimized)</summary>
7294

7395
```bash
7496
claude mcp add cocoindex-code \
@@ -77,7 +99,10 @@ claude mcp add cocoindex-code \
7799
-- uvx cocoindex-code
78100
```
79101

80-
### Cohere
102+
</details>
103+
104+
<details>
105+
<summary>Cohere</summary>
81106

82107
```bash
83108
claude mcp add cocoindex-code \
@@ -86,7 +111,10 @@ claude mcp add cocoindex-code \
86111
-- uvx cocoindex-code
87112
```
88113

89-
### AWS Bedrock
114+
</details>
115+
116+
<details>
117+
<summary>AWS Bedrock</summary>
90118

91119
```bash
92120
claude mcp add cocoindex-code \
@@ -97,9 +125,10 @@ claude mcp add cocoindex-code \
97125
-- uvx cocoindex-code
98126
```
99127

100-
Set `OLLAMA_API_BASE` if your Ollama server is not at `http://localhost:11434`.
128+
</details>
101129

102-
### Nebius
130+
<details>
131+
<summary>Nebius</summary>
103132

104133
```bash
105134
claude mcp add cocoindex-code \
@@ -108,7 +137,7 @@ claude mcp add cocoindex-code \
108137
-- uvx cocoindex-code
109138
```
110139

111-
### Other Providers
140+
</details>
112141

113142
Any model supported by LiteLLM works — see the [full list of embedding providers](https://docs.litellm.ai/docs/embedding/supported_embedding).
114143

0 commit comments

Comments
 (0)