Repository navigation
Conversation
…nt tool (closes #1086) Wire all SearchSemanticParams fields through exec_search_semantic and expose them in the def_search_semantic() tool schema so the LLM can use them: - threshold: falls back to SEMANTIC_THRESHOLD (0.3) when not provided - scope: knowledge/conversations/everything enum - include_archived: include archived nodes in results - node_types: filter by structural type - exclude_collections: suppress noisy collections - include_edges: attach outgoing relationships to results - graph_boost: re-rank by blending similarity with graph connectivity - collection_id: forward internal ID form when provided property_filters is wired through exec_search_semantic but intentionally omitted from the tool schema (too complex for 8B model; documented in comment and parity test). SearchSemanticInput in search_ops.rs gains node_types and property_filters fields, delegating to SearchNodeFilters for service-layer filtering. Adds search_semantic_schema_parity_with_params test to prevent future drift: any new SearchSemanticParams field must be added to the schema or the exclusion list with a justification comment. Updates prompt_assembler.rs Tool Strategy Guide with concise param guidance for the 8B model. Co-Authored-By: Claude <[email protected]>
…lone
- Remove redundant query.clone() (params.query moved directly into input struct)
- Fix threshold fallback: use unwrap_or(SEMANTIC_THRESHOLD) instead of .or(Some(...))
- Add search_semantic_schema_parity_with_params test to enforce schema completeness
- Asserts all SearchSemanticParams fields appear in def_search_semantic() schema
or are documented as intentionally excluded
- excluded: collection_id (internal form), property_filters (too complex for 8B model)
- Documents exclusion decisions as code comments alongside the test
Co-Authored-By: Claude <[email protected]>
Closed
7 tasks
Collaborator
Author
|
Superseded by a rebased branch that includes #1085 graph enhancements and fixes collection_id schema exposure. New PR to follow. |
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
SearchSemanticParamsfields throughexec_search_semantic— no more hardcodedNoneorSEMANTIC_THRESHOLDoverridesdef_search_semantic()tool schema to expose all 11 controllable params:threshold,scope,include_archived,node_types,exclude_collections,include_edges,graph_boost(plus existingquery,limit,include_markdown,collection)node_typesandproperty_filterstoSearchSemanticInputinsearch_ops.rs, delegating toSearchNodeFiltersfor service-layer filteringproperty_filters: wired through executor but intentionally excluded from tool schema (too complex for 8B model; documented in code comment and parity test)search_semantic_schema_parity_with_paramsparity test to prevent future driftprompt_assembler.rsTool Strategy Guide with concise param guidanceTest plan
cargo test -p nodespace-agent --lib— all 289 unit tests pass including new parity testcargo test -p nodespace-core --lib— all 1163 core unit tests passbun run test— all 3918 frontend tests pass (baseline: 3918)bun run quality:fix— clean (0 errors, 0 warnings)Closes #1086
🤖 Generated with Claude Code