Commit graph

167 commits

Author SHA1 Message Date
mountain
a139bd53d9 merge upstream/main into dev; port #188 into the index pipeline
main advanced (litellm 1.84.0 #342, #188 TOC fixes, #281, README) while
dev turned pageindex/page_index.py and utils.py into deprecation shims
over pageindex/index/*. Both sides touched those two files, hence the
conflict.

Resolution:
- Keep dev's shims for the two top-level modules (the real implementation
  lives in pageindex/index/*). requirements.txt auto-merged to
  litellm==1.84.0.
- #188 ("prevent KeyError crash and context exhaustion in TOC
  processing") landed on main's top-level page_index.py, which is now a
  shim on dev — so its fixes were NOT in dev's index/page_index.py.
  Ported them into pageindex/index/page_index.py (preserving dev's
  IndexConfig/bool integration): .get() on the TOC check functions +
  detect_page_index, incremental-chat_history retry loops in
  extract_toc_content and toc_transformer, truncation moved before the
  loop, .get('table_of_contents', []) and the single_toc_item_index_fixer
  None guard.
- Repoint #188's merged test (tests/test_issue_163.py) at
  pageindex.index.page_index so its patches hit the module where the code
  now lives (they were silently hitting the shim → real LLM calls).

Full suite: 158 passed, 2 skipped.

Claude-Session: https://claude.ai/code/session_01Kx5DgKbhK1N8autqXH8SmS
2026-07-07 16:34:02 +08:00
Ray
293730afbd
edit readme (#337) 2026-06-23 03:56:30 +08:00
Ray
42aa805339
edit readme (#336) 2026-06-23 01:11:20 +08:00
Ray
54346716bd
edit readme (#335) 2026-06-22 23:28:08 +08:00
Ray
fe89f246f2
update readme 2026-06-19 07:44:04 +08:00
Ray
5a18553284 update readme 2026-06-06 06:08:19 +08:00
Ray
415288b4b2 update readme 2026-06-05 01:15:23 +08:00
Ray
4d4d14a38a update readme 2026-06-05 00:47:28 +08:00
Ray
7d2bdb9f28 update readme 2026-06-02 01:16:56 +08:00
Ray
c13eed7d6c Tighten FinanceBench sentence in README 2026-06-02 00:50:02 +08:00
Ray
f21c90fa2b Update README: Connect with Us buttons and header tagline
- Add Website and Book a Demo buttons; reorder and recolor to brand palette
- Replace removed/invalid shields logos (LinkedIn, envelope) and the Website
  icon with inline white SVGs so all badges show an icon
- Reword header tagline (No Vector DB, No Chunking; Context-Aware Retrieval; Human-like)
- Rename top-nav Homepage -> Website
2026-06-01 19:19:53 +08:00
Ray
dd064dc39a
Update README (#307) 2026-05-30 18:51:40 +08:00
Ray
aad68cac7d
Update README (#305) 2026-05-30 18:38:11 +08:00
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
7592163e2a
Update README (#271)
Some checks failed
CodeQL / Analyze (actions) (push) Has been cancelled
2026-05-12 03:28:29 +08:00
Ray
f50e529753
update README (#262)
Some checks failed
CodeQL / Analyze (actions) (push) Has been cancelled
2026-05-08 02:08:33 +08:00
Ray
c1a0f94fd3
update README (#261) 2026-05-08 01:57:33 +08:00
Ray
e7dfc5e1ff
update README (#259) 2026-05-07 20:57:14 +08:00
Ray
dcda5656ba Fix Agentic RAG entry formatting in Updates
Some checks failed
CodeQL / Analyze (actions) (push) Has been cancelled
2026-05-06 04:53:41 +08:00
Ray
495e8929b5 Trim Cloud Service note in README 2026-05-06 04:40:32 +08:00
Ray
46244aed33 update README
Some checks are pending
CodeQL / Analyze (actions) (push) Waiting to run
2026-05-06 00:57:25 +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