Skip to content

Commit f291615

Browse files
author
Kavyansh Chourasia
committed
Ingestion Pipeline: Easy import Utils
1 parent b4e8178 commit f291615

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"""
2+
Utils package for ingestion pipeline.
3+
Provides easy access to all utility classes and functions.
4+
"""
5+
6+
# Import all utility classes and functions
7+
from .pdf_splitter import PDFSplitter
8+
from .toc_page_finder import TOCPageFinder
9+
from .toc_extractor import TableOfContentsExtractor
10+
11+
# Define what gets imported with "from utils import *"
12+
__all__ = [
13+
"PDFSplitter",
14+
"TOCPageFinder",
15+
"TableOfContentsExtractor"
16+
]

components/ingestion-pipeline/tests/test_toc_page_finder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import pytest
22
import logging
33
import os
4-
from ingestion_pipeline.utils.toc_page_finder import TOCPageFinder
4+
from ingestion_pipeline.utils import TOCPageFinder
55

66
@pytest.fixture
77
def azure_openai_credentials():

0 commit comments

Comments
 (0)