Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix typos in brain_defaults.py, llm_endpoint.py and utils.py #3511

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/quivr_core/brain/brain_defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def default_embedder() -> Embeddings:
return embedder
except ImportError as e:
raise ImportError(
"Please provide a valid Embedder or install quivr-core['base'] package for using the defaultone."
"Please provide a valid Embedder or install quivr-core['base'] package for using the default one."
) from e


Expand Down
2 changes: 1 addition & 1 deletion core/quivr_core/llm/llm_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(self, llm_config: LLMEndpointConfig, llm: BaseChatModel):
self.tokenizer = AutoTokenizer.from_pretrained(llm_config.tokenizer_hub)
except OSError: # if we don't manage to connect to huggingface and/or no cached models are present
logger.warning(
f"Cannot acces the configured tokenizer from {llm_config.tokenizer_hub}, using the default tokenizer {llm_config.fallback_tokenizer}"
f"Cannot access the configured tokenizer from {llm_config.tokenizer_hub}, using the default tokenizer {llm_config.fallback_tokenizer}"
)
self.tokenizer = tiktoken.get_encoding(llm_config.fallback_tokenizer)
else:
Expand Down
2 changes: 1 addition & 1 deletion core/quivr_core/rag/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def model_supports_function_calling(model_name: str):
return model_name not in models_not_supporting_function_calls


def format_history_to_openai_mesages(
def format_history_to_openai_messages(
tuple_history: List[Tuple[str, str]], system_message: str, question: str
) -> List[BaseMessage]:
"""Format the chat history into a list of Base Messages"""
Expand Down
Loading