voyage embeddings provider
This commit is contained in:
parent
7405a8aeb6
commit
d1a2028f61
4 changed files with 22 additions and 4 deletions
3
core/index.d.ts
vendored
3
core/index.d.ts
vendored
|
|
@ -777,7 +777,8 @@ export type EmbeddingsProviderName =
|
|||
| "free-trial"
|
||||
| "gemini"
|
||||
| "continue-proxy"
|
||||
| "deepinfra";
|
||||
| "deepinfra"
|
||||
| "voyage";
|
||||
|
||||
export interface EmbedOptions {
|
||||
apiBase?: string;
|
||||
|
|
|
|||
13
core/indexing/embeddings/VoyageEmbeddingsProvider.ts
Normal file
13
core/indexing/embeddings/VoyageEmbeddingsProvider.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import { EmbeddingsProviderName, EmbedOptions } from "../..";
|
||||
import OpenAIEmbeddingsProvider from "./OpenAIEmbeddingsProvider";
|
||||
|
||||
class VoyageEmbeddingsProvider extends OpenAIEmbeddingsProvider {
|
||||
static providerName: EmbeddingsProviderName = "voyage";
|
||||
|
||||
static defaultOptions: Partial<EmbedOptions> | undefined = {
|
||||
apiBase: "https://api.voyageai.com/v1/",
|
||||
model: "voyage-code-2",
|
||||
};
|
||||
}
|
||||
|
||||
export default VoyageEmbeddingsProvider;
|
||||
|
|
@ -9,6 +9,7 @@ import HuggingFaceTEIEmbeddingsProvider from "./HuggingFaceTEIEmbeddingsProvider
|
|||
import OllamaEmbeddingsProvider from "./OllamaEmbeddingsProvider.js";
|
||||
import OpenAIEmbeddingsProvider from "./OpenAIEmbeddingsProvider.js";
|
||||
import TransformersJsEmbeddingsProvider from "./TransformersJsEmbeddingsProvider.js";
|
||||
import VoyageEmbeddingsProvider from "./VoyageEmbeddingsProvider.js";
|
||||
|
||||
type EmbeddingsProviderConstructor = new (
|
||||
...args: any[]
|
||||
|
|
@ -27,4 +28,5 @@ export const allEmbeddingsProviders: Record<
|
|||
gemini: GeminiEmbeddingsProvider,
|
||||
"continue-proxy": ContinueProxyEmbeddingsProvider,
|
||||
deepinfra: DeepInfraEmbeddingsProvider,
|
||||
voyage: VoyageEmbeddingsProvider,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -221,7 +221,8 @@
|
|||
"### Msty\nMsty is the simplest way to get started with online or local LLMs on all desktop platforms - Windows, Mac, and Linux. No fussing around, one-click and you are up and running. To get started, follow these steps:\n1. Download from [Msty.app](https://msty.app/), open the application, and click 'Setup Local AI'.\n2. Go to the Local AI Module page and download a model of your choice.\n3. Once the model has finished downloading, you can start asking questions through Continue.\n> [Reference](https://continue.dev/docs/reference/Model%20Providers/Msty)",
|
||||
"### IBM watsonx\nwatsonx, developed by IBM, offers a variety of pre-trained AI foundation models that can be used for natural language processing (NLP), computer vision, and speech recognition tasks.",
|
||||
"### OpenRouter\nOpenRouter offers a single API to access almost any language model. To get started, obtain an API key from [their console](https://openrouter.ai/settings/keys).",
|
||||
"### NVIDIA NIMs\nNVIDIA offers a single API to access almost any language model. To find out more, visit the [LLM APIs Documentation](https://docs.api.nvidia.com/nim/reference/llm-apis).\nFor information specific to getting a key, please check out the [docs here](https://docs.nvidia.com/nim/large-language-models/latest/getting-started.html#option-1-from-api-catalog)" ],
|
||||
"### NVIDIA NIMs\nNVIDIA offers a single API to access almost any language model. To find out more, visit the [LLM APIs Documentation](https://docs.api.nvidia.com/nim/reference/llm-apis).\nFor information specific to getting a key, please check out the [docs here](https://docs.nvidia.com/nim/large-language-models/latest/getting-started.html#option-1-from-api-catalog)"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"model": {
|
||||
|
|
@ -2024,7 +2025,8 @@
|
|||
"openai",
|
||||
"cohere",
|
||||
"free-trial",
|
||||
"gemini"
|
||||
"gemini",
|
||||
"voyage"
|
||||
]
|
||||
},
|
||||
"model": {
|
||||
|
|
@ -2055,7 +2057,7 @@
|
|||
"if": {
|
||||
"properties": {
|
||||
"provider": {
|
||||
"enum": ["cohere"]
|
||||
"enum": ["cohere", "voyage"]
|
||||
}
|
||||
},
|
||||
"required": ["provider"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue