Skip to content

Commit

Permalink
docs: Rename 'Sentence Transformers' to 'sentence-transformers' in do…
Browse files Browse the repository at this point in the history
…cstrings (huggingface#342)
  • Loading branch information
Wauplin authored Jul 15, 2024
1 parent baeecb5 commit 696dc8e
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ Options:
--default-prompt-name <DEFAULT_PROMPT_NAME>
The name of the prompt that should be used by default for encoding. If not set, no prompt will be applied.
Must be a key in the `Sentence Transformers` configuration `prompts` dictionary.
Must be a key in the `sentence-transformers` configuration `prompts` dictionary.
For example if ``default_prompt_name`` is "query" and the ``prompts`` is {"query": "query: ", ...}, then the
sentence "What is the capital of France?" will be encoded as "query: What is the capital of France?" because
Expand Down
10 changes: 5 additions & 5 deletions docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@
},
"prompt_name": {
"type": "string",
"description": "The name of the prompt that should be used by for encoding. If not set, no prompt\nwill be applied.\n\nMust be a key in the `Sentence Transformers` configuration `prompts` dictionary.\n\nFor example if ``prompt_name`` is \"query\" and the ``prompts`` is {\"query\": \"query: \", ...},\nthen the sentence \"What is the capital of France?\" will be encoded as\n\"query: What is the capital of France?\" because the prompt text will be prepended before\nany text to encode.",
"description": "The name of the prompt that should be used by for encoding. If not set, no prompt\nwill be applied.\n\nMust be a key in the `sentence-transformers` configuration `prompts` dictionary.\n\nFor example if ``prompt_name`` is \"query\" and the ``prompts`` is {\"query\": \"query: \", ...},\nthen the sentence \"What is the capital of France?\" will be encoded as\n\"query: What is the capital of France?\" because the prompt text will be prepended before\nany text to encode.",
"default": "null",
"example": "null",
"nullable": true
Expand Down Expand Up @@ -910,7 +910,7 @@
},
"prompt_name": {
"type": "string",
"description": "The name of the prompt that should be used by for encoding. If not set, no prompt\nwill be applied.\n\nMust be a key in the `Sentence Transformers` configuration `prompts` dictionary.\n\nFor example if ``prompt_name`` is \"query\" and the ``prompts`` is {\"query\": \"query: \", ...},\nthen the sentence \"What is the capital of France?\" will be encoded as\n\"query: What is the capital of France?\" because the prompt text will be prepended before\nany text to encode.",
"description": "The name of the prompt that should be used by for encoding. If not set, no prompt\nwill be applied.\n\nMust be a key in the `sentence-transformers` configuration `prompts` dictionary.\n\nFor example if ``prompt_name`` is \"query\" and the ``prompts`` is {\"query\": \"query: \", ...},\nthen the sentence \"What is the capital of France?\" will be encoded as\n\"query: What is the capital of France?\" because the prompt text will be prepended before\nany text to encode.",
"default": "null",
"example": "null",
"nullable": true
Expand Down Expand Up @@ -959,7 +959,7 @@
},
"prompt_name": {
"type": "string",
"description": "The name of the prompt that should be used by for encoding. If not set, no prompt\nwill be applied.\n\nMust be a key in the `Sentence Transformers` configuration `prompts` dictionary.\n\nFor example if ``prompt_name`` is \"query\" and the ``prompts`` is {\"query\": \"query: \", ...},\nthen the sentence \"What is the capital of France?\" will be encoded as\n\"query: What is the capital of France?\" because the prompt text will be prepended before\nany text to encode.",
"description": "The name of the prompt that should be used by for encoding. If not set, no prompt\nwill be applied.\n\nMust be a key in the `sentence-transformers` configuration `prompts` dictionary.\n\nFor example if ``prompt_name`` is \"query\" and the ``prompts`` is {\"query\": \"query: \", ...},\nthen the sentence \"What is the capital of France?\" will be encoded as\n\"query: What is the capital of France?\" because the prompt text will be prepended before\nany text to encode.",
"default": "null",
"example": "null",
"nullable": true
Expand Down Expand Up @@ -1560,7 +1560,7 @@
"properties": {
"prompt_name": {
"type": "string",
"description": "The name of the prompt that should be used by for encoding. If not set, no prompt\nwill be applied.\n\nMust be a key in the `Sentence Transformers` configuration `prompts` dictionary.\n\nFor example if ``prompt_name`` is \"query\" and the ``prompts`` is {\"query\": \"query: \", ...},\nthen the sentence \"What is the capital of France?\" will be encoded as\n\"query: What is the capital of France?\" because the prompt text will be prepended before\nany text to encode.",
"description": "The name of the prompt that should be used by for encoding. If not set, no prompt\nwill be applied.\n\nMust be a key in the `sentence-transformers` configuration `prompts` dictionary.\n\nFor example if ``prompt_name`` is \"query\" and the ``prompts`` is {\"query\": \"query: \", ...},\nthen the sentence \"What is the capital of France?\" will be encoded as\n\"query: What is the capital of France?\" because the prompt text will be prepended before\nany text to encode.",
"default": "null",
"example": "null",
"nullable": true
Expand Down Expand Up @@ -1695,7 +1695,7 @@
},
"prompt_name": {
"type": "string",
"description": "The name of the prompt that should be used by for encoding. If not set, no prompt\nwill be applied.\n\nMust be a key in the `Sentence Transformers` configuration `prompts` dictionary.\n\nFor example if ``prompt_name`` is \"query\" and the ``prompts`` is {\"query\": \"query: \", ...},\nthen the sentence \"What is the capital of France?\" will be encoded as\n\"query: What is the capital of France?\" because the prompt text will be prepended before\nany text to encode.",
"description": "The name of the prompt that should be used by for encoding. If not set, no prompt\nwill be applied.\n\nMust be a key in the `sentence-transformers` configuration `prompts` dictionary.\n\nFor example if ``prompt_name`` is \"query\" and the ``prompts`` is {\"query\": \"query: \", ...},\nthen the sentence \"What is the capital of France?\" will be encoded as\n\"query: What is the capital of France?\" because the prompt text will be prepended before\nany text to encode.",
"default": "null",
"example": "null",
"nullable": true
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/cli_arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Options:
--default-prompt-name <DEFAULT_PROMPT_NAME>
The name of the prompt that should be used by default for encoding. If not set, no prompt will be applied.
Must be a key in the `Sentence Transformers` configuration `prompts` dictionary.
Must be a key in the `sentence-transformers` configuration `prompts` dictionary.
For example if ``default_prompt_name`` is "query" and the ``prompts`` is {"query": "query: ", ...}, then the
sentence "What is the capital of France?" will be encoded as "query: What is the capital of France?" because
Expand Down
10 changes: 5 additions & 5 deletions router/src/http/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ pub(crate) struct SimilarityParameters {
/// The name of the prompt that should be used by for encoding. If not set, no prompt
/// will be applied.
///
/// Must be a key in the `Sentence Transformers` configuration `prompts` dictionary.
/// Must be a key in the `sentence-transformers` configuration `prompts` dictionary.
///
/// For example if ``prompt_name`` is "query" and the ``prompts`` is {"query": "query: ", ...},
/// then the sentence "What is the capital of France?" will be encoded as
Expand Down Expand Up @@ -414,7 +414,7 @@ pub(crate) struct EmbedRequest {
/// The name of the prompt that should be used by for encoding. If not set, no prompt
/// will be applied.
///
/// Must be a key in the `Sentence Transformers` configuration `prompts` dictionary.
/// Must be a key in the `sentence-transformers` configuration `prompts` dictionary.
///
/// For example if ``prompt_name`` is "query" and the ``prompts`` is {"query": "query: ", ...},
/// then the sentence "What is the capital of France?" will be encoded as
Expand Down Expand Up @@ -447,7 +447,7 @@ pub(crate) struct EmbedSparseRequest {
/// The name of the prompt that should be used by for encoding. If not set, no prompt
/// will be applied.
///
/// Must be a key in the `Sentence Transformers` configuration `prompts` dictionary.
/// Must be a key in the `sentence-transformers` configuration `prompts` dictionary.
///
/// For example if ``prompt_name`` is "query" and the ``prompts`` is {"query": "query: ", ...},
/// then the sentence "What is the capital of France?" will be encoded as
Expand Down Expand Up @@ -478,7 +478,7 @@ pub(crate) struct EmbedAllRequest {
/// The name of the prompt that should be used by for encoding. If not set, no prompt
/// will be applied.
///
/// Must be a key in the `Sentence Transformers` configuration `prompts` dictionary.
/// Must be a key in the `sentence-transformers` configuration `prompts` dictionary.
///
/// For example if ``prompt_name`` is "query" and the ``prompts`` is {"query": "query: ", ...},
/// then the sentence "What is the capital of France?" will be encoded as
Expand Down Expand Up @@ -516,7 +516,7 @@ pub(crate) struct TokenizeRequest {
/// The name of the prompt that should be used by for encoding. If not set, no prompt
/// will be applied.
///
/// Must be a key in the `Sentence Transformers` configuration `prompts` dictionary.
/// Must be a key in the `sentence-transformers` configuration `prompts` dictionary.
///
/// For example if ``prompt_name`` is "query" and the ``prompts`` is {"query": "query: ", ...},
/// then the sentence "What is the capital of France?" will be encoded as
Expand Down
2 changes: 1 addition & 1 deletion router/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ struct Args {
/// The name of the prompt that should be used by default for encoding. If not set, no prompt
/// will be applied.
///
/// Must be a key in the `Sentence Transformers` configuration `prompts` dictionary.
/// Must be a key in the `sentence-transformers` configuration `prompts` dictionary.
///
/// For example if ``default_prompt_name`` is "query" and the ``prompts`` is {"query": "query: ", ...},
/// then the sentence "What is the capital of France?" will be encoded as
Expand Down

0 comments on commit 696dc8e

Please sign in to comment.