Repository navigation
chore: promote main to staging (query-mode-router + pending) - #470
Merged
Merged
Conversation
- Replaced the `refs` structure with an `evidence pool` in the `EpisodeResult` and related components, enhancing clarity in how evidence is managed and referenced. - Updated the `finish` tool schema to remove the `refs` requirement, allowing for a more flexible approach to evidence handling. - Refactored various functions and classes to accommodate the new evidence pool structure, including updates to the `debug_agent_explore_episode` script for improved output. - Removed the deprecated `ref_resolution` module, streamlining the codebase and reducing complexity in evidence resolution processes. - Adjusted tests to reflect changes in evidence handling, ensuring robust coverage of the new structure.
- Updated the `RetrievalQueryResponse` model to improve evidence descriptions, clarifying the structure of grouped evidence blocks. - Refactored the `to_mcp_query_response` function to return a list of `TextContent` and `ImageContent`, ensuring a more structured output for evidence parts. - Implemented grouping of evidence units by document and section path, improving the organization of evidence in responses. - Adjusted tests to validate the new evidence grouping and response structure, ensuring comprehensive coverage of the updated functionality.
- Refactored the `to_mcp_query_response` function to utilize list comprehensions for improved clarity and performance in handling evidence parts. - Updated the `compose_pool_evidence` function to simplify chunk row processing and ensure correct sorting of evidence units. - Enhanced the `_evidence_fields` function to leverage the `group_evidence_units` utility for better organization of evidence in responses. - Improved test coverage for evidence handling, validating the new structure and ensuring accurate output in various scenarios.
…structure - Updated the `RetrievalQueryResponse` model to deprecate `evidence_text` and `answer_text`, clarifying that these fields are always empty and should not be used. - Adjusted the `_evidence_fields` function to return an empty string for `evidence_text`, reflecting the removal of text projection for evidence. - Removed the `flatten_parts` function and related tests, streamlining evidence handling and ensuring consistency in response structure. - Updated tests to validate the new behavior, ensuring comprehensive coverage of the updated evidence processing logic.
…ogic - Replaced deprecated `tokens_used_delta` and `tokens_used_total` fields with `round_index` in the agent exploration steps, enhancing clarity in tracking rounds. - Introduced a new `_evidence_preview` function to standardize evidence rendering across various components, improving consistency in evidence presentation. - Updated the `EpisodeBudget` class to remove token limit handling, focusing on step and wall-clock management for exploration episodes. - Refactored the `EvidencePool` class to support round-based evidence management, allowing for clearer handling of evidence across multiple rounds. - Adjusted related tests and documentation to reflect these changes, ensuring comprehensive coverage of the updated evidence processing logic.
- Streamlined the `EvidencePool` class by directly assigning decisions to keys, simplifying the decision-making process. - Updated the pick phase instructions for clarity, ensuring users understand the expected actions during this phase. - Improved error handling in the `OpenAIHarness` class by validating pick arguments and providing clear error messages for invalid inputs. - Removed deprecated token tracking from the `TraceRecorder`, focusing on relevant metrics for decision tracing. - Added tests to validate the new pick argument validation logic, ensuring robust coverage of the updated functionality.
fix(deploy): use DeepSeek for worker vision
…cture - Modified the `explore_mount.py` to focus solely on `corpus.recall` hits, enhancing clarity in the documentation. - Enhanced the `grep.py` tool to support multiple term queries, allowing results to be organized by term and improving the visibility of less common terms. - Updated the response structure to fold leftover sections per document, providing a more concise output. - Adjusted tests to reflect changes in the grep tool's behavior, ensuring accurate validation of term handling and response formatting.
…ement - Modified the evidence handling logic to replace deprecated `evidence_text` with a new `queried_tables` structure, enhancing clarity in evidence retrieval. - Implemented a mechanism to record the last successful HTML output from table queries, ensuring accurate representation of queried data. - Updated various functions to utilize the new `queried_tables` mapping, improving the integration of table data within evidence composition. - Enhanced tests to validate the new behavior of evidence handling and ensure comprehensive coverage of the updated functionality.
- Eliminated the `notes` field from the `EpisodeResult` class and associated functions, streamlining the data structure used in agent exploration. - Updated tests and scripts to reflect the removal of `notes`, ensuring consistency across the codebase and maintaining functionality. - Adjusted related components to enhance clarity and focus on essential attributes in episode results.
…eters - Increased the character budget for evidence text from 12,000 to 15,000 to accommodate more detailed observations. - Adjusted the maximum steps for agent exploration from 12 to 15, aligning with the new evidence handling logic. - Updated related tests to reflect changes in budget usage and ensure accurate validation of the new configurations. - Enhanced the cursor harness logic to properly track and manage exploration rounds, improving overall clarity and functionality.
- Deleted the `chunks.json`, `doc_nav.json`, and `manifest.json` files associated with the Alibaba Fiscal Year 2026 Interim Report, streamlining the document structure. - Removed all page citation assets (images) related to the report, ensuring a clean slate for future updates or revisions. - This cleanup enhances maintainability and reduces clutter in the document management system.
Drop unused bundled demo files so clones stay smaller, and keep the official library aligned with SpaceX, both Micron reports, and the Transformers tutorial. Co-authored-by: Cursor <cursoragent@cursor.com>
chore: slim bundled demo sources to SpaceX, Micron, and Transformers tutorial
Resolve the shared-demo corpus overlap by keeping the current agent explore loop and adapting the contracts that still expected the old tool-message history. Co-authored-by: Cursor <cursoragent@cursor.com>
The suite-level download path still hit object storage when only the artifact helper was patched. Co-authored-by: Cursor <cursoragent@cursor.com>
String-path monkeypatches missed the function globals used by assemble in CI. Co-authored-by: Cursor <cursoragent@cursor.com>
…ce-pool feat: sync evidence-pool retrieval onto shared demo corpus
…duplication fix: reject duplicate document source bytes
…gion fix: retain the production QStash token region
- Removed the `chunk_stats.json` reference from the documentation as it is no longer used. - Updated the `importance` field in the metadata schema to improve clarity on its usage. - Refactored the asset connection logic to streamline the addition of `embedded_by` relationships for images and tables. - Introduced a new `asset_region` metadata structure to encapsulate asset positioning and dimensions. - Adjusted tests to validate the new asset metadata and connection behaviors, ensuring consistency across chunk and zip formats.
Wire retrieval importance into the public result projection, migrate metadata consumers to entities with legacy fallbacks, and stop emitting redundant metadata.tokens from chunk/ZIP payloads. Co-authored-by: Cursor <cursoragent@cursor.com>
…lation-schema feat: unified chunk relations, importance, and entities-first metadata
Co-authored-by: Cursor <cursoragent@cursor.com>
…xception-details fix: return 400 for invalid webhook configuration
- Added support for extra metadata in the MarkdownParseState to store image region information. - Updated the append_row method to accept additional metadata and store it in a new dictionary. - Modified the parse_md function to include image region metadata when processing markdown content. - Integrated image region loading in the PDF parsing workflow to ensure accurate page number mapping after TOC removal. - Adjusted tests to validate the new metadata structure and ensure consistency across chunk and zip formats.
… parsing - Introduced `extra_metadata` parameter in `build_image_asset_row` to accommodate additional image region information. - Updated `ParsedRow` and related methods to handle the new `extra_metadata` field. - Modified markdown and pdf parsing functions to integrate image region metadata, ensuring accurate representation in output. - Adjusted tests to validate the inclusion of `extra_metadata` in various parsing scenarios.
…oved metadata - Updated `DocumentProfile` to support a list of categories and an additional `category_label` for better classification. - Modified the coarse profiling process to extract domain IDs and category labels from input data, ensuring accurate document classification. - Enhanced the parsing instructions to reflect the new structure, requiring domain IDs and category labels for document classification. - Adjusted related functions and tests to accommodate the new multi-category and label features, ensuring consistency across document types.
- Changed document profiling to utilize IPTC Media Topics instead of ISIC codes for categorization. - Updated `DocumentProfile` and related parsing instructions to reflect the new category structure. - Adjusted coarse profiling prompts and functions to align with the IPTC classification system. - Modified tests to validate the new category codes and ensure consistency across document types.
Move exhibit index to the global line-start keyword set, and keep finance-only index to/of prefixes for SEC-style statement indexes. Co-authored-by: Cursor <cursoragent@cursor.com>
…toc-keywords feat: IPTC domain taxonomy, TOC keywords, and image region metadata
…prefix Preserve opening pages at the document root
…ructure feat: expose revision-pinned demo document structure
…eview fix: publish body-only previews for page chunks
- Updated the `use_agentic` parameter behavior to allow for a query router to choose between classic and agent retrieval modes. - Modified documentation and environment examples to reflect the new routing logic. - Introduced a router decision structure to capture the mode chosen by the query router. - Adjusted retrieval execution logic to incorporate the new routing mechanism, ensuring seamless integration of agentic and classic retrieval methods.
feat: add retrieval query mode router (agent vs classic)
| turn_index = 0 | ||
| stop_reason = "finished" |
| from alembic import op | ||
| from sqlalchemy import text | ||
|
|
||
| revision: str = "5e6f7a8b9c0d" |
| from sqlalchemy import text | ||
|
|
||
| revision: str = "5e6f7a8b9c0d" | ||
| down_revision: str = "4d5e6f7a8b9c" |
|
|
||
| revision: str = "5e6f7a8b9c0d" | ||
| down_revision: str = "4d5e6f7a8b9c" | ||
| branch_labels: Sequence[str] | None = None |
| revision: str = "5e6f7a8b9c0d" | ||
| down_revision: str = "4d5e6f7a8b9c" | ||
| branch_labels: Sequence[str] | None = None | ||
| depends_on: Sequence[str] | None = None |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mainintostagingafter feat: add retrieval query mode router (agent vs classic) #469 (query mode router) and other already-merged main commits.Includes
mainbut not yet onstagingTest plan
use_agenticMade with Cursor