apache_beam.ml.rag.ingestion.test_utils module
- apache_beam.ml.rag.ingestion.test_utils.row_to_chunk(row) EmbeddableItem[source]
- class apache_beam.ml.rag.ingestion.test_utils.ChunkTestUtils[source]
Bases:
objectHelper functions for generating test Chunks.
- static from_seed(seed: int, content_prefix: str, seed_multiplier: int) EmbeddableItem[source]
Creates a deterministic Chunk from a seed value.
- static get_expected_values(range_start: int, range_end: int, content_prefix: str = 'Testval', seed_multiplier: int = 1) list[EmbeddableItem][source]
Returns a range of test Chunks.