Skip to content

refactor(retrieval): clarify agent modes and list_documents usage - #436

Merged
EricNGOntos merged 2 commits into
mainfrom
feat/wuchengke/2026-09-21
Sep 23, 2026
Merged

EricNGOntos merged 2 commits into
mainfrom
feat/wuchengke/2026-09-21

Conversation

@EricNGOntos

Copy link
Copy Markdown
Contributor

Summary

  • Separate the request switch (use_agentic) from the harness (AGENT_EXPLORE_HARNESS) in API docs, env examples, and AGENTS.md so Cursor vs Knowhere's own agent is not treated as the same toggle.
  • Restrict list_documents to explicit inventory requests; it stays registered, but is no longer the default cold start for question answering.

Test plan

  • make check (lint + typecheck)
  • uv run pytest shared/tests/test_agent_explore_harness.py (30 passed)
  • Remote PR CI

Made with Cursor

…tation

- Updated the `use_agentic` parameter description to clearly define its role in toggling agent retrieval on or off, specifying the behavior for classic map-unit BM25 and agent modes.
- Revised the `AGENT_EXPLORE_HARNESS` documentation to detail the selection between `cursor_sdk` and `openai` based on the agent retrieval state.
- Adjusted related environment variable comments to reflect the new understanding of agent retrieval modes.
- Enhanced flowchart and internal documentation for better clarity on retrieval processes.
…umentation

- Clarified the usage of the `list_documents` tool to specify it should only be used when the user explicitly requests to list or inventory documents, rather than as a starting point for question answering.
- Updated related documentation in `config.py` and `CORPUS_SCHEMA.md` to reflect these changes and improve clarity on tool usage.
- Added a test to ensure the `list_documents` tool is correctly registered and behaves as expected for inventory requests.
@EricNGOntos
EricNGOntos merged commit d2f2ced into main Sep 23, 2026
6 checks passed
@EricNGOntos
EricNGOntos deleted the feat/wuchengke/2026-09-21 branch September 23, 2026 11:15
@EricNGOntos EricNGOntos mentioned this pull request Sep 23, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant