Skip to content

fix(mcp): restore default search and chunk reads#1937

Merged
earayu merged 1 commit into
mainfrom
planetegg/mcp-search-hotfix
Apr 30, 2026
Merged

fix(mcp): restore default search and chunk reads#1937
earayu merged 1 commit into
mainfrom
planetegg/mcp-search-hotfix

Conversation

@earayu
Copy link
Copy Markdown
Collaborator

@earayu earayu commented Apr 30, 2026

Summary\n- default optional search params before they reach vector/summary/vision ContextManager calls, fixing MCP vector_search calls that omit similarity_threshold\n- make fulltext auto-keyword search include the raw query fallback and use a permissive minimum_should_match for auto-extracted keywords\n- restore read_document_chunk by reading the serving vector row's chunks.jsonl from object storage, including chunk metadata handles\n\n## Tests\n- uv run --extra test python -m pytest tests/unit_test/retrieval/test_mcp_search_defaults.py tests/unit_test/service/test_document_service_chunks.py tests/integration/test_graph_evidence_refs_chain.py -q\n- uv run ruff check aperag/domains/retrieval/pipeline.py aperag/domains/knowledge_base/service/document_service.py tests/unit_test/retrieval/test_mcp_search_defaults.py tests/unit_test/service/test_document_service_chunks.py

@earayu earayu merged commit 15b2a02 into main Apr 30, 2026
7 checks passed
@earayu earayu deleted the planetegg/mcp-search-hotfix branch April 30, 2026 08:36
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