Skip to content

Commit 9ad8304

Browse files
committed
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.
1 parent a47c36a commit 9ad8304

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ Omitting `doc_ids` queries the **entire collection** and lets the agent pick whi
208208

209209
- [`examples/local_demo.py`](examples/local_demo.py) — local mode end-to-end (index a PDF + streaming QA)
210210
- [`examples/cloud_demo.py`](examples/cloud_demo.py) — cloud mode end-to-end
211+
- [`examples/demo_query_modes.py`](examples/demo_query_modes.py) — exercises all `Collection.query` modes (single / multi / scoped / experimental warning)
212+
- [`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
211213
- [`examples/agentic_vectorless_rag_demo.py`](examples/agentic_vectorless_rag_demo.py) — lower-level integration with the OpenAI Agents SDK
212214

213215
---
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
"""End-to-end smoke test of the legacy SDK compatibility layer against the real cloud API.
22
3-
Run: PAGEINDEX_API_KEY=... uv run python scripts/e2e_legacy_sdk.py
3+
Exercises the legacy `pageindex_sdk` 0.2.x methods preserved on `PageIndexClient`:
4+
submit_document, is_retrieval_ready, get_tree, get_document, chat_completions
5+
(sync + stream), and delete_document.
6+
7+
Run: PAGEINDEX_API_KEY=... python examples/demo_legacy_sdk.py
48
"""
59
from __future__ import annotations
610
import os

0 commit comments

Comments
 (0)