Skip to content
Merged
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
6 changes: 4 additions & 2 deletions docs-website/reference/haystack-api/document_stores_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Stores data in-memory. It's ephemeral and cannot be saved to disk.

```python
__init__(
bm25_tokenization_regex: str = "(?u)\\b\\w+\\b",
bm25_tokenization_regex: str = _DEFAULT_BM25_TOKENIZATION_REGEX,
bm25_algorithm: Literal["BM25Okapi", "BM25L", "BM25Plus"] = "BM25L",
bm25_parameters: dict | None = None,
embedding_similarity_function: Literal[
Expand All @@ -44,7 +44,9 @@ Initializes the DocumentStore.

**Parameters:**

- **bm25_tokenization_regex** (<code>str</code>) – The regular expression used to tokenize the text for BM25 retrieval.
- **bm25_tokenization_regex** (<code>str</code>) – The regular expression used to tokenize the text for BM25 retrieval. The default groups word
characters into word tokens and splits Chinese, Japanese and Korean text into one token per character.
Text is lowercased and NFC-normalized before tokenization.
- **bm25_algorithm** (<code>Literal['BM25Okapi', 'BM25L', 'BM25Plus']</code>) – The BM25 algorithm to use. One of "BM25Okapi", "BM25L", or "BM25Plus".
- **bm25_parameters** (<code>dict | None</code>) – Parameters for BM25 implementation in a dictionary format.
For example: `{'k1':1.5, 'b':0.75, 'epsilon':0.25}`
Expand Down