PageIndex/examples
Ray 6f200927cb fix: enforce collection membership on cloud query doc_ids
Cloud query()/query_stream() now run the same _require_document membership
guard the four doc-scoped ops received in 929b3df, so a doc_id from another
collection raises DocumentNotFoundError (matching the local backend's
_scoped_docs) instead of silently answering from another collection's
document. The guard runs after doc_ids normalization and before the
completion request; query_stream runs it via asyncio.to_thread. Folders
unavailable on the plan -> guard skips, as with the sibling ops.

Also rename the streaming QueryEvent types answer_delta/answer_done ->
text_delta/text_done: text_done fires once per assistant text message, which
is honest for the local agent loop's multi-message stream (the last one
before the stream ends carries the final answer). Corrects the cloud
backend's now-inaccurate "single terminal contract" comment. reasoning
stays reserved for future model-reasoning tokens. QueryEvent is unreleased
API (0.3.0.dev1), so the rename is not a breaking change.
2026-07-16 14:40:19 +08:00
..
documents Restructure examples directory and improve document storage (#189) 2026-03-28 04:28:59 +08:00
tutorials Simplify root directory 2026-03-27 03:30:13 +08:00
agentic_vectorless_rag_demo.py fix: address xhigh code-review findings on 2d46d68..8f536cb 2026-07-08 21:56:41 +08:00
cloud_demo.py fix: enforce collection membership on cloud query doc_ids 2026-07-16 14:40:19 +08:00
demo_legacy_sdk.py chore: move legacy SDK e2e script into examples/ 2026-05-15 18:08:29 +08:00
demo_query_modes.py fix: enforce collection membership on cloud query doc_ids 2026-07-16 14:40:19 +08:00
local_demo.py fix: enforce collection membership on cloud query doc_ids 2026-07-16 14:40:19 +08:00