Skip to content

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 using trafilatura or bs4 as a fallback. Args: html: The HTML to parse.

Returns:

Type Description
str

The parsed HTML.