-
Notifications
You must be signed in to change notification settings - Fork 3.1k
improve: instruct model when no context results were retrieved #6303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- add the instruction prompt
👷 Deploy request for continuedev pending review.Visit the deploys page to approve it
|
😱 Found 1 issue. Time to roll up your sleeves! 😱 Need help? Join our Discord for support! |
core/context/retrieval/retrieval.ts
Outdated
} | ||
return []; | ||
return [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't send this message when the user in in chat mode, because the model won't have access to any tools.
I realize we might not have a way of knowing this in core
yet, so potentially not a trivial change. But seems important
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
core is stateless right?
if so, we might need to pass a parameter when getting context items or add a protocol in IDE
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that's correct. I feel like passing it as a parameter would be the easier option
Description
When no results were retrieved during context embeddings, instruct model to use other tools.
Resolves CON-2400
Checklist
Screenshots
before.mp4
after.mp4
Tests
Replication
.continueignore
``` .continueignore AdvancedPage.tsx calculator_test Calculator.java config.yaml data.json Dockerfile example.ipynb nested-folder program.cs query.sql readme.md requirements.txt test.css test.csv test.html test.js test.kt test.php test.py test.rb test.rs test.sh test.ts ```@codebase