Skip to content

Commit

Permalink
Smart Apply: Use system prompt to encourage code blocks being created (
Browse files Browse the repository at this point in the history
…#5290)

## Description

This PR improves the smart apply prompt tweak so that:
- We use the system prompt when available
- We use the same desired Markdown syntax when _we_ include codebase
context, which helps steer the LLM onto the right path.

I have ran an eval on this here:
sourcegraph/cody-leaderboard#16


## Test plan

- [x] Tested creating code blocks on all major models

<!-- Required. See
https://docs-legacy.sourcegraph.com/dev/background-information/testing_principles.
-->

---------

Co-authored-by: Beatrix <[email protected]>
  • Loading branch information
umpox and abeatrix committed Aug 23, 2024
1 parent e635c31 commit bdb946e
Show file tree
Hide file tree
Showing 24 changed files with 3,566 additions and 4,421 deletions.
41 changes: 20 additions & 21 deletions agent/recordings/cody-chat_103640681/recording.har.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bdb946e

Please sign in to comment.