Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VectifyAI/PageIndex
/ functions
Functions
136 in github.com/VectifyAI/PageIndex
⨍
Functions
136
◇
Types & classes
3
↓ 1 callers
Function
single_toc_item_index_fixer
(section_title, content, model=None)
pageindex/page_index.py:740
↓ 1 callers
Function
toc_detector_single_page
(content, model=None)
pageindex/page_index.py:104
↓ 1 callers
Function
toc_index_extractor
(toc, content, model=None)
pageindex/page_index.py:243
↓ 1 callers
Function
transform_dots_to_colon
(text)
pageindex/page_index.py:223
↓ 1 callers
Function
tree_parser
(page_list, opt, doc=None, logger=None)
pageindex/page_index.py:1029
↓ 1 callers
Function
tree_thinning_for_index
(node_list, min_node_token=None, model=None)
pageindex/page_index_md.py:135
↓ 1 callers
Function
update_node_list_with_text_token_count
(node_list, model=None)
pageindex/page_index_md.py:89
↓ 1 callers
Function
validate_and_truncate_physical_indices
Validates and truncates physical indices that exceed the actual document length. This prevents errors when TOC references pages that don't ex
pageindex/page_index.py:1124
↓ 1 callers
Function
verify_toc
(page_list, list_result, start_index=1, N=None, model=None)
pageindex/page_index.py:900
Method
__init__
(self, api_key: str = None, model: str = None, retrieve_model: str = None, workspace: str = None)
pageindex/client.py:35
Method
__init__
(self, file_path)
pageindex/utils.py:284
Method
__init__
(self, default_path: str = None)
pageindex/utils.py:655
Function
add_node_text_with_labels
(node, pdf_pages)
pageindex/utils.py:565
Function
check_if_toc_extraction_is_complete
(content, toc, model=None)
pageindex/page_index.py:125
Function
check_token_limit
(structure, limit=110000)
pageindex/utils.py:506
Function
clean_structure_post
(data)
pageindex/utils.py:454
Function
clean_tree_for_output
(tree_nodes)
pageindex/page_index_md.py:224
Function
create_node_mapping
Create a flat dict mapping node_id to node for quick lookup.
pageindex/utils.py:687
Method
debug
(self, message, **kwargs)
pageindex/utils.py:311
Method
exception
(self, message, **kwargs)
pageindex/utils.py:314
Function
extract_text_from_pdf
(pdf_path)
pageindex/utils.py:221
Function
extract_toc_content
(content, model=None)
pageindex/page_index.py:160
Function
get_document
Get document metadata: status, page count, name, and description.
examples/agentic_vectorless_rag_demo.py:63
Function
get_document_structure
Get the document's full tree structure (without text) to find relevant sections.
examples/agentic_vectorless_rag_demo.py:68
Function
get_first_start_page_from_text
(text)
pageindex/utils.py:248
Function
get_last_node
(structure)
pageindex/utils.py:217
Function
get_last_start_page_from_text
(text)
pageindex/utils.py:255
Function
get_leaf_nodes
(structure)
pageindex/utils.py:173
Function
get_nodes
(structure)
pageindex/utils.py:144
Function
get_page_content
Get the text content of specific pages or line numbers. Use tight ranges: e.g. '5-7' for pages 5 to 7, '3,8' for pages 3 and 8, '12'
examples/agentic_vectorless_rag_demo.py:73
Function
get_pdf_title
(pdf_path)
pageindex/utils.py:230
Function
get_text_of_pages
(pdf_path, start_page, end_page, tag=True)
pageindex/utils.py:236
Function
is_leaf_node
(data, node_id)
pageindex/utils.py:191
Function
print_tree
(tree, indent=0)
pageindex/utils.py:699
Function
print_wrapped
(text, width=100)
pageindex/utils.py:707
Function
remove_first_physical_index_section
Removes the first section between <physical_index_X> and <physical_index_X> tags, and returns the remaining text.
pageindex/page_index.py:494
← previous
101–136 of 136, ranked by callers