Draft
Experiments to diagnose /research endpoint topic-relevance bug#5
Conversation
Co-authored-by: SynthLuvr <131367121+SynthLuvr@users.noreply.github.com>
Copilot
AI
changed the title
Add /research endpoint experiments to investigate topic-relevance bug
Experiments to diagnose /research endpoint topic-relevance bug
Jun 12, 2026
Copilot created this pull request from a session on behalf of
SynthLuvr
June 12, 2026 06:16
View session
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.
The
/researchendpoint returns content unrelated to the requested topic. Manual probing confirmed the code is calling the endpoint correctly (GET /research?topic=<value>withX-API-Key) — the bug is in the endpoint itself.Experiments (
research.experiment.ts)Four vitest tests against the live API to characterize the failure mode:
topicparam vs. ignoring it)solar energy; asserts at least one expected keyword is presentWiring
package.json—test:experimentsscript runs only the experiment fileci.yml— new step runstest:experimentswithELYOS_API_KEYandcontinue-on-error: true; results are visible in check logs regardless of pass/fail