Skip to content

Commit

Permalink
Add skeletal metadata for Upstage AI: without implementation due to s…
Browse files Browse the repository at this point in the history
…pec ambiguity (#1072)
  • Loading branch information
tatu-at-datastax authored May 8, 2024
1 parent 1622271 commit ff196c9
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ public final class ProviderConstants {
public static final String VERTEXAI = "vertexai";
public static final String COHERE = "cohere";
public static final String NVIDIA = "nvidia";
public static final String UPSTAGE_AI = "upstageAI";
public static final String VOYAGE_AI = "voyageAI";
public static final String CUSTOM = "custom";
public static final String MISTRAL = "mistral";
Expand Down
34 changes: 30 additions & 4 deletions src/main/resources/embedding-providers-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,34 @@ stargate:
models:
- name: mistral-embed
vector-dimension: 1024
# upstage:
# see https://developers.upstage.ai/docs/apis/embeddings
# NOTE: they have a model for storing and a diff one for reading, this is different to everyone else
# holding on the config / implementation until we confirm if this can change

# NOTE: UpstageAI have a model for storing and a diff one for reading: this is different
# from everyone else.
# Holding on the config / implementation until we confirm if this can change
# NOTE: no free tier available, CC required
upstageAI:
# see https://developers.upstage.ai/docs/apis/embeddings
# NOT enabled until
enabled: false
url: https://api.upstage.ai/v1/solar/embeddings
supported-authentications:
NONE:
enabled: false
HEADER:
enabled: true
tokens:
- accepted: x-embedding-api-key
forwarded: Authorization
SHARED_SECRET:
enabled: false
tokens:
- accepted: providerKey
forwarded: Authorization
parameters:
properties:
models: # NOTE: this is where weirdness exists; including model names as example
- name: solar-1-mini-embedding-query
vector-dimension: 4096
- name: solar-1-mini-embedding-passage
vector-dimension: 4096

0 comments on commit ff196c9

Please sign in to comment.