Skip to content

Remove searchResultsToConsider setting and hardcode to 6#2113

Draft
felladrin wants to merge 1 commit into
mainfrom
remove-search-results-to-consider
Draft

Remove searchResultsToConsider setting and hardcode to 6#2113
felladrin wants to merge 1 commit into
mainfrom
remove-search-results-to-consider

Conversation

@felladrin

Copy link
Copy Markdown
Owner

Summary

Remove the searchResultsToConsider slider from AI settings and hardcode the value to 6.

Changes

  • Removed searchResultsToConsider from defaultSettings in client/modules/settings.ts
  • Removed the slider UI from AISettingsForm.tsx (including the useMemo for marks and unused imports)
  • Updated canStartResponding() in textGenerationUtilities.ts to always wait for search results (removed the > 0 guard)
  • Hardcoded 6 in textGeneration.ts and ChatInterface.tsx where searchResultsToConsider was used for slicing results
  • Updated tests in settings.test.ts
  • Updated documentation: configuration.md, ai-integration.md, overview.md

Rationale

The default value of 3 was too few for good LLM responses. Hardcoding to 6 gives the model more context without requiring user configuration. The slider was a false choice — most users left it at 3, which produced suboptimal results.

- Remove the slider from AI settings UI
- Remove searchResultsToConsider from defaultSettings
- Always wait for search results in canStartResponding()
- Hardcode .slice(0, 6) in text generation and chat interface
- Update tests and documentation
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