-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
45 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
from pathlib import Path | ||
|
||
import panel as pn | ||
|
||
|
||
class LlmSetupError(Exception): | ||
""" | ||
Raised when an error occurs during the setup of the LLM. | ||
""" | ||
|
||
|
||
THIS_DIR = Path(__file__).parent | ||
|
||
FUZZY_TABLE_LENGTH = 10 | ||
|
||
GETTING_STARTED_SUGGESTIONS = [ | ||
"What datasets do you have?", | ||
"Tell me about the dataset.", | ||
"Create a plot of the dataset.", | ||
"Find the min and max of the values.", | ||
] | ||
|
||
DEMO_MESSAGES = [ | ||
"What data is available?", | ||
"Can I see the first one?", | ||
"Tell me about the dataset.", | ||
"What could be interesting to analyze?", | ||
"Perform a SQL query on one of these.", | ||
"Show it to me as a scatter plot.", | ||
] | ||
|
||
DEFAULT_EMBEDDINGS_PATH = Path("embeddings") | ||
|
||
UNRECOVERABLE_ERRORS = ( | ||
ImportError, | ||
LlmSetupError, | ||
RecursionError, | ||
) | ||
|
||
pn.chat.ChatStep.min_width = 350 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters