Commit graph

147 commits

Author SHA1 Message Date
mountain
f354eb17bf docs: drop Environment variables and Runnable examples subsections from README 2026-05-15 18:10:47 +08:00
mountain
9ad8304389 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.
2026-05-15 18:08:29 +08:00
mountain
a47c36a3f5 feat(collection): doc_ids accepts str|list, design cleanups
- Collection.query and Backend.query/query_stream accept doc_ids as
  str, list[str] or None. Single str is normalized to [str] inside each
  backend; bare [] is rejected with ValueError at both layers.
- wrap_with_doc_context wraps the scoped doc list in <docs>...</docs>
  and SCOPED_SYSTEM_PROMPT instructs the agent to treat that block as
  data, not instructions (defense against prompt injection via
  auto-generated doc_description).
- _require_cloud_api now distinguishes api_key="" from api_key=None;
  the former gives a targeted error pointing at the empty-string vs
  fall-back-to-local situation when legacy SDK methods are called.
- Legacy PageIndexClient.list_documents docstring spells out the
  return-shape difference vs collection.list_documents() to flag a
  silent migration footgun (paginated dict with id/name keys vs plain
  list[dict] with doc_id/doc_name keys).
- Remove dead CloudBackend.get_agent_tools stub (not on the Backend
  protocol; only ever returned an empty AgentTools()) and the
  SYSTEM_PROMPT alias (OPEN_/SCOPED_SYSTEM_PROMPT are the explicit
  names now).
- README quick start and streaming example now pass doc_ids; new
  multi-document section shows both str and list forms.
- examples/demo_query_modes.py exercises all five query-mode cases
  (single-doc, multi-doc with/without env var, scoped single, scoped
  multi) for manual verification.
2026-05-15 17:03:17 +08:00
mountain
d7b36aaf3f feat(collection): scoped query mode and experimental multi-doc warning
- get_agent_tools branches on doc_ids:
  - scoped (doc_ids=[...]): drops list_documents and hard-enforces a
    whitelist on the remaining tools; system prompt switches to
    SCOPED_SYSTEM_PROMPT (no list_documents instruction); doc list +
    summaries are prepended to the user message via wrap_with_doc_context.
  - open (doc_ids=None): unchanged 4-tool agent loop.
- list_documents now exposes doc_description (sqlite + cloud).
- Collection.query emits UserWarning when doc_ids is None and the
  collection holds >1 documents; PAGEINDEX_EXPERIMENTAL_MULTIDOC=1
  silences it. Single-doc collections skip the warning; empty
  collections raise ValueError.
- Agents SDK tracing upload disabled by default (avoids SSL timeouts);
  PAGEINDEX_AGENTS_TRACING=1 re-enables it.
- README: new SDK Usage section covering local/cloud quick start,
  streaming, multi-doc as experimental, and runnable examples.
2026-05-15 11:14:12 +08:00
Ray
8f1ed7783b Update README 2026-03-30 01:34:45 +08:00
Ray
0ba6206ef0 Update developer links 2026-03-29 20:01:58 +08:00
Ray
4002dc94de Rename demo script and update README wording 2026-03-28 04:56:05 +08:00
Ray
77722838e1
Restructure examples directory and improve document storage (#189)
* Consolidate tests/ into examples/documents/

* Add line_count and reorder structure keys

* Lazy-load documents with _meta.json index

* Update demo script and add pre-shipped workspace

* Extract shared helpers for JSON reading and meta entry building
2026-03-28 04:28:59 +08:00
Ray
a7a9985223 Update README 2026-03-27 03:55:07 +08:00
Ray
d7d5aed668 Update README 2026-03-27 03:21:20 +08:00
Ray
88ef448d1a Add agentic vectorless RAG example to README highlights 2026-03-27 02:31:40 +08:00
Ray
9798aaae19 Update demo example paper and polish README 2026-03-27 01:22:03 +08:00
Kylin
5d4491f3bf
Add PageIndexClient with agent-based retrieval via OpenAI Agents SDK (#125)
* Add PageIndexClient with retrieve, streaming support and litellm integration
* Add OpenAI agents demo example
* Update README with example agent demo section
* Support separate retrieve_model configuration for index and retrieve
2026-03-26 23:19:50 +08:00
Mingtian Zhang
a061d53fa5
Update README.md 2026-02-10 14:31:30 +08:00
Ray
884209e8fd
Update README.md 2026-01-25 22:11:25 +08:00
Ray
8a4959d59c
Update README.md 2026-01-25 17:33:36 +08:00
Ray
f6695c11f7 update link 2026-01-24 14:09:21 +08:00
Ray
14a05acba1
Update README.md 2025-12-22 08:26:04 +08:00
Ray
db6c58d741
Update README.md 2025-12-21 01:15:33 +08:00
Ray
f869aba81c
Update README.md 2025-12-19 12:09:06 +08:00
Ray
dbdff103df
Update README.md 2025-12-19 11:53:31 +08:00
Ray
b365d6dcd2
Update README.md 2025-12-19 10:05:35 +08:00
Ray
e59f04a6b3
Update README.md 2025-12-19 05:06:46 +08:00
Ray
3161aee250
Update README.md 2025-12-19 03:50:44 +08:00
Ray
2ee7446e52
Update README.md 2025-12-06 03:18:04 +08:00
Ray
a7e97be6a7 Update README.md 2025-11-21 01:30:22 +08:00
Ray
1ae1a84d2a
Update README.md 2025-11-21 01:25:46 +08:00
Mingtian Zhang
4d8e019c47
Revise cloud service links and clean up README
Updated cloud service references and removed redundant sections.
2025-11-19 23:55:24 +08:00
Mingtian Zhang
d8b9f6350b
Revise README content and links
Updated links and descriptions in the README for clarity and accuracy.
2025-11-19 23:50:45 +08:00
Mingtian Zhang
8ed58e225e
Update recent releases in README.md 2025-11-19 21:48:49 +08:00
Ray
4baa4255a3
Update README.md 2025-11-13 03:08:26 +08:00
Ray
9dfcdae571
Update README.md 2025-11-13 03:01:09 +08:00
Ray
4a136dfc83
Update README.md 2025-11-11 22:46:48 +08:00
Ray
f31ac308f8
Update README.md 2025-11-09 23:21:20 +08:00
Ray
f7e4c2f840 Update README 2025-11-07 15:05:57 +08:00
Ray
7e043bcfbf
Update README.md 2025-11-07 03:06:26 +08:00
Ray
92be5b6eb4
Update README.md 2025-11-06 00:06:26 +08:00
Ray
3f897890b0
Update README.md 2025-11-05 23:31:52 +08:00
Ray
40a6703b6c
Update README.md 2025-11-05 23:29:51 +08:00
Ray
1cff3c51db
Update README.md 2025-11-05 23:16:17 +08:00
Ray
eda577124f Update README.md 2025-11-05 23:07:32 +08:00
Ray
620c49238b
Update README.md 2025-11-05 05:29:15 +08:00
Ray
4429c492cb
Update README.md 2025-11-05 05:18:36 +08:00
Ray
8f8d5d5c61
Update README.md 2025-11-05 05:15:28 +08:00
Ray
0e3abae384
Update README.md 2025-11-05 05:05:53 +08:00
Ray
5ab603dcbf
Update README.md 2025-11-05 04:57:50 +08:00
Ray
d2c92a9310
Update README.md 2025-11-05 04:07:05 +08:00
Ray
ae60af60fd
Update README.md 2025-11-05 01:42:57 +08:00
Ray
d409f4f3a0
Update README.md 2025-11-05 01:33:30 +08:00
Ray
d0916fa2ec
Update README.md 2025-11-05 01:27:33 +08:00