mirror of
https://github.com/VectifyAI/PageIndex.git
synced 2026-04-28 17:46:21 +02:00
feat: add PageIndex SDK with local/cloud dual-mode support (#207)
This commit is contained in:
parent
f2dcffc0b7
commit
c7fe93bb56
45 changed files with 4225 additions and 274 deletions
|
|
@ -1,4 +1,40 @@
|
|||
# pageindex/__init__.py
|
||||
# Upstream exports (backward compatibility)
|
||||
from .page_index import *
|
||||
from .page_index_md import md_to_tree
|
||||
from .retrieve import get_document, get_document_structure, get_page_content
|
||||
from .client import PageIndexClient
|
||||
|
||||
# SDK exports
|
||||
from .client import PageIndexClient, LocalClient, CloudClient
|
||||
from .config import IndexConfig
|
||||
from .collection import Collection
|
||||
from .parser.protocol import ContentNode, ParsedDocument, DocumentParser
|
||||
from .storage.protocol import StorageEngine
|
||||
from .events import QueryEvent
|
||||
from .errors import (
|
||||
PageIndexError,
|
||||
CollectionNotFoundError,
|
||||
DocumentNotFoundError,
|
||||
IndexingError,
|
||||
CloudAPIError,
|
||||
FileTypeError,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"PageIndexClient",
|
||||
"LocalClient",
|
||||
"CloudClient",
|
||||
"IndexConfig",
|
||||
"Collection",
|
||||
"ContentNode",
|
||||
"ParsedDocument",
|
||||
"DocumentParser",
|
||||
"StorageEngine",
|
||||
"QueryEvent",
|
||||
"PageIndexError",
|
||||
"CollectionNotFoundError",
|
||||
"DocumentNotFoundError",
|
||||
"IndexingError",
|
||||
"CloudAPIError",
|
||||
"FileTypeError",
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue