You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/walkthroughs/codebase-embeddings.md
+24-5
Original file line number
Diff line number
Diff line change
@@ -94,19 +94,36 @@ We also support other methods of generating embeddings, which can be configured
94
94
}
95
95
```
96
96
97
+
### Voyage AI
98
+
99
+
Voyage AI offers the best embeddings for code with their voyage-code-2 model. After obtaining an API key from [here](https://www.voyageai.com/), you can configure like this:
100
+
101
+
```json title="~/.continue/config.json"
102
+
{
103
+
"embeddingsProvider": {
104
+
"provider": "openai",
105
+
"model": "voyage-code-2",
106
+
"apiBase": "
107
+
https://api.voyageai.com/v1/",
108
+
"apiKey": "<VOYAGE_API_KEY>"
109
+
}
110
+
}
111
+
```
112
+
97
113
### OpenAI
98
114
99
115
OpenAI's [embeddings](https://platform.openai.com/docs/guides/embeddings) are high dimensional embeddings that give great performance on both text and code.
100
116
101
-
Configuration for text-embedding-3-small Model. This is default.
117
+
Configuration for text-embedding-3-small Model. This is default.
102
118
The text-embedding-3-small model offers an outstanding balance between performance and efficiency, suitable for a versatile range of applications.
103
119
104
120
```json title="~/.continue/config.json"
105
121
{
106
122
"embeddingsProvider": {
107
123
"provider": "openai",
108
124
"model": "text-embedding-3-small",
109
-
"apiBase": "<your custom OpenAI-compatible endpoint>"// optional, defaults to OpenAI's API
125
+
"apiBase": "<your custom OpenAI-compatible endpoint>", // optional, defaults to OpenAI's API
126
+
"apiKey": "<OPENAI_API_KEY>"
110
127
}
111
128
}
112
129
```
@@ -119,7 +136,8 @@ For those requiring the highest level of embedding detail and precision, the tex
119
136
"embeddingsProvider": {
120
137
"provider": "openai",
121
138
"model": "text-embedding-3-large",
122
-
"apiBase": "<your custom OpenAI-compatible endpoint>"// optional, defaults to OpenAI's API
139
+
"apiBase": "<your custom OpenAI-compatible endpoint>", // optional, defaults to OpenAI's API
140
+
"apiKey": "<OPENAI_API_KEY>"
123
141
}
124
142
}
125
143
```
@@ -132,7 +150,8 @@ For certain scenarios, you may still find the text-embedding-ada-002 model relev
132
150
"embeddingsProvider": {
133
151
"provider": "openai",
134
152
"model": "text-embedding-ada-002",
135
-
"apiBase": "<your custom OpenAI-compatible endpoint>"// optional, defaults to OpenAI's API
153
+
"apiBase": "<your custom OpenAI-compatible endpoint>", // optional, defaults to OpenAI's API
154
+
"apiKey": "<OPENAI_API_KEY>"
136
155
}
137
156
}
138
157
```
@@ -153,7 +172,7 @@ export function modifyConfig(config: Config): Config {
0 commit comments