Skip to content

Commit

Permalink
Added Link attribute in embedder and llm python files
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaazad03 committed Oct 29, 2023
1 parent 464bbe3 commit f74d7a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/cat/factory/embedder.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class EmbedderFakeConfig(EmbedderSettings):
json_schema_extra = {
"humanReadableName": "Default Embedder",
"description": "Configuration for default embedder. It just outputs random numbers.",
"link": ""
}
)

Expand All @@ -46,6 +47,7 @@ class EmbedderDumbConfig(EmbedderSettings):
json_schema_extra = {
"humanReadableName": "Dumb Embedder",
"description": "Configuration for default embedder. It encodes the pairs of characters",
"link": ""
}
)

Expand All @@ -58,6 +60,7 @@ class EmbedderLlamaCppConfig(EmbedderSettings):
json_schema_extra = {
"humanReadableName": "Self-hosted llama-cpp-python embedder",
"description": "Self-hosted llama-cpp-python embedder",
"link" : ""
}
)

Expand All @@ -71,6 +74,7 @@ class EmbedderOpenAIConfig(EmbedderSettings):
json_schema_extra = {
"humanReadableName": "OpenAI Embedder",
"description": "Configuration for OpenAI embeddings",
"link": "https://platform.openai.com/docs/models/overview"
}
)

Expand All @@ -90,6 +94,7 @@ class EmbedderAzureOpenAIConfig(EmbedderSettings):
json_schema_extra = {
"humanReadableName": "Azure OpenAI Embedder",
"description": "Configuration for Azure OpenAI embeddings",
"link": "https://azure.microsoft.com/en-us/products/ai-services/openai-service"
}
)

Expand All @@ -103,6 +108,7 @@ class EmbedderCohereConfig(EmbedderSettings):
json_schema_extra = {
"humanReadableName": "Cohere Embedder",
"description": "Configuration for Cohere embeddings",
"link": "https://docs.cohere.com/docs/models"
}
)

Expand All @@ -116,6 +122,7 @@ class EmbedderHuggingFaceHubConfig(EmbedderSettings):
json_schema_extra = {
"humanReadableName": "HuggingFace Hub Embedder",
"description": "Configuration for HuggingFace Hub embeddings",
"link": "https://huggingface.co/models"
}
)

Expand Down
1 change: 1 addition & 0 deletions core/cat/factory/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ class LLMLlamaCppConfig(LLMSettings):
json_schema_extra = {
"humanReadableName": "Self-hosted llama-cpp-python",
"description": "Self-hosted llama-cpp-python compatible LLM",
"link": ""
}
)

Expand Down

0 comments on commit f74d7a4

Please sign in to comment.