Add an `objective` parameter to search

Open
#804 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript

Research direction

Start by reading the search input, ranking, and snippet code and their tests to see how keyword queries flow through the engines. Add coverage for an ambiguous fixture where an objective changes ranking and for searches without an objective retaining their current order. Check summary.surface.toolsListBytes against version 0.3.5; the issue depends on #801 and #814, so read those first.

Written by the indexing model from the issue text.

Description

area:search maintainers roadmap

Problem

An agent knows what it is trying to find out. Today it can only send keywords, so ranking cannot use the goal.

Change

  • Accept an optional objective: one sentence that says what the agent needs.
  • Engines still receive the keyword queries.
  • Ranking and snippets score against the objective when present.

Done when

  • Tests show that an objective changes the order for a fixture where keywords alone are ambiguous.
  • Tests show a search without an objective ranks exactly as before.
  • The tool list size (summary.surface.toolsListBytes) does not grow against 0.3.5.

Out of scope

Rewriting queries with a model.

Depends on: #801, #814

Dominant language
TypeScript
Stars
5.4k
Forks
445
Avg merge
20h 41m
Merged PRs (30d)
85

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from KnockOutEZ/wigolo

All issues in KnockOutEZ/wigolo

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.