From 73e726f6e3d9989be319515c96e441fca7df0991 Mon Sep 17 00:00:00 2001 From: Deven Patel Date: Sun, 7 Jan 2024 11:00:35 +0530 Subject: [PATCH] [Bug fix] quickfix custom configuration doc (#1125) Co-authored-by: Deven Patel --- docs/api-reference/advanced/configuration.mdx | 2 +- embedchain/cli.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api-reference/advanced/configuration.mdx b/docs/api-reference/advanced/configuration.mdx index b631e799..f1648865 100644 --- a/docs/api-reference/advanced/configuration.mdx +++ b/docs/api-reference/advanced/configuration.mdx @@ -198,7 +198,7 @@ Alright, let's dive into what each key means in the yaml config above: - `max_tokens` (Integer): Controls how many tokens are used in the response. - `top_p` (Float): Controls the diversity of word selection. A higher value (closer to 1) makes word selection more diverse. - `stream` (Boolean): Controls if the response is streamed back to the user (set to false). - - `prompt` (String): A prompt for the model to follow when generating responses, requires $context and $query variables. + - `prompt` (String): A prompt for the model to follow when generating responses, requires `$context` and `$query` variables. - `system_prompt` (String): A system prompt for the model to follow when generating responses, in this case, it's set to the style of William Shakespeare. - `stream` (Boolean): Controls if the response is streamed back to the user (set to false). - `number_documents` (Integer): Number of documents to pull from the vectordb as context, defaults to 1 diff --git a/embedchain/cli.py b/embedchain/cli.py index 8414a22d..a19f8d18 100644 --- a/embedchain/cli.py +++ b/embedchain/cli.py @@ -186,7 +186,7 @@ def create(template, extra_args): setup_streamlit_io_app() elif template == "gradio.app": setup_gradio_app() - elif template == "hf/gradio.app" or template == "hf/streamlit.app": + elif template == "hf/gradio.app" or template == "hf/streamlit.io": setup_hf_app() else: raise ValueError(f"Unknown template '{template}'.")