Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
louisbrulenaudet committed Aug 11, 2024
1 parent c7652bb commit 599c0ba
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
project = 'RAGoon'
copyright = '2024, Louis Brulé Naudet'
author = 'Louis Brulé Naudet'
release = '0.0.10'
release = '0.0.11'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "ragoon"
version = "0.0.10"
version = "0.0.11"
description = "RAGoon : High level library for batched embeddings generation, blazingly-fast web-based RAG and quantitized indexes processing ⚡"
readme = "README.md"
requires-python = ">=3.9"
Expand Down
18 changes: 9 additions & 9 deletions src/ragoon/embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ class EmbeddingsDataLoader:
"""
def __init__(
self,
token: str = None,
model_configs: List[Dict[str, str]],
token: str = None,
dataset_name: Optional[str] = None,
dataset: Optional[Union[Dataset, DatasetDict]] = None,
batch_size: Optional[int] = 8,
Expand All @@ -141,24 +141,24 @@ def __init__(
Parameters
----------
token : str
The token for accessing Hugging Face API. Default is None.
model_configs : list of dict
The list of dictionaries with model configurations to use for generating embeddings.
token : str
The token for accessing Hugging Face API. Default is None.
dataset_name : str, optional
The name of the dataset to load from Hugging Face. Default is None.
dataset : Dataset or DatasetDict, optional
The dataset to process. Default is None.
batch_size : int, optional
The number of samples to process in each batch. Default is 16.
convert_to_tensor : bool, optional
Whether the output should be one large tensor. Default is False.
device : str, optional
The device used for embedding processing if torch.cuda.is_available() is not reliable.
Useful when using the Zero GPU on Hugging Face Space. Default is 'cuda'.
Expand Down

0 comments on commit 599c0ba

Please sign in to comment.