mirror of
https://github.com/VectifyAI/PageIndex.git
synced 2026-05-19 18:35:16 +02:00
chore: move legacy SDK e2e script into examples/
scripts/e2e_legacy_sdk.py becomes examples/demo_legacy_sdk.py to sit alongside the other runnable demos (local/cloud/query-modes), and the README's Runnable examples list now points at it. Docstring command updated to the new path; the legacy script docstring also calls out that it exercises the 0.2.x compatibility methods. The scripts/ directory had no other entries and is removed.
This commit is contained in:
parent
a47c36a3f5
commit
9ad8304389
2 changed files with 7 additions and 1 deletions
|
|
@ -208,6 +208,8 @@ Omitting `doc_ids` queries the **entire collection** and lets the agent pick whi
|
|||
|
||||
- [`examples/local_demo.py`](examples/local_demo.py) — local mode end-to-end (index a PDF + streaming QA)
|
||||
- [`examples/cloud_demo.py`](examples/cloud_demo.py) — cloud mode end-to-end
|
||||
- [`examples/demo_query_modes.py`](examples/demo_query_modes.py) — exercises all `Collection.query` modes (single / multi / scoped / experimental warning)
|
||||
- [`examples/demo_legacy_sdk.py`](examples/demo_legacy_sdk.py) — smoke test for the legacy `pageindex_sdk` 0.2.x compatibility layer against the cloud API
|
||||
- [`examples/agentic_vectorless_rag_demo.py`](examples/agentic_vectorless_rag_demo.py) — lower-level integration with the OpenAI Agents SDK
|
||||
|
||||
---
|
||||
|
|
|
|||
|
|
@ -1,6 +1,10 @@
|
|||
"""End-to-end smoke test of the legacy SDK compatibility layer against the real cloud API.
|
||||
|
||||
Run: PAGEINDEX_API_KEY=... uv run python scripts/e2e_legacy_sdk.py
|
||||
Exercises the legacy `pageindex_sdk` 0.2.x methods preserved on `PageIndexClient`:
|
||||
submit_document, is_retrieval_ready, get_tree, get_document, chat_completions
|
||||
(sync + stream), and delete_document.
|
||||
|
||||
Run: PAGEINDEX_API_KEY=... python examples/demo_legacy_sdk.py
|
||||
"""
|
||||
from __future__ import annotations
|
||||
import os
|
||||
Loading…
Add table
Add a link
Reference in a new issue