Skip to content

raggy.settings

Settings

The settings for Raggy.

Attributes:

Name Type Description
html_parser Callable[[str], str]

The function to use for parsing HTML.

log_level str

The log level to use.

log_verbose bool

Whether to log verbose messages.

openai_chat_completions_model str

The OpenAI model to use for chat completions.

openai_embeddings_model str

The OpenAI model to use for creating embeddings.

default_html_parser

The default HTML parser. This uses bs4's html.parser, which is not very good. Like, at all.

In fact it's really bad. You should definitely set raggy.settings.html_parser to a Callable[[str], str] that parses HTML well.

Parameters:

Name Type Description Default
html str

The HTML to parse.

required

Returns:

Type Description
str

The parsed HTML.