Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
add id_gen_seed description
Browse files Browse the repository at this point in the history
Signed-off-by: Panos Vagenas <[email protected]>
  • Loading branch information
vagenas committed Aug 28, 2024
1 parent fc9a4c5 commit 8c592ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion quackling/llama_index/node_parsers/hier_node_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ class HierarchicalNodeParser(NodeParser):
include_metadata: bool = Field(
default=False, description="Whether or not to consider metadata when splitting."
)
id_gen_seed: int | None = None
id_gen_seed: int | None = Field(
default=None,
description="ID generation seed; should typically be left to default `None`, which seeds on current timestamp; only set if you want the instance to generate a reproducible ID sequence e.g. for testing", # noqa: 501
)

def _parse_nodes(
self,
Expand Down

0 comments on commit 8c592ee

Please sign in to comment.