Skip to content
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

Experimental: styled prompt #88

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Experimental: styled prompt #88

wants to merge 8 commits into from

Conversation

ofermend
Copy link
Collaborator

This is only for Scale accounts:

  • Demonstrating how we can use various "styles" of response using custom prompts
  • All prompts need to be specifically defined in the target account, and only available to Scale customers
  • Selection of the prompt style occurs in the options drawer component.

Copy link
Collaborator

@cjcenizal cjcenizal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Had a few suggestions.

config/hackernews-search/config.yaml Outdated Show resolved Hide resolved
src/contexts/ConfigurationContext.tsx Outdated Show resolved Hide resolved
src/contexts/SearchContext.tsx Outdated Show resolved Hide resolved
src/contexts/ConfigurationContext.tsx Outdated Show resolved Hide resolved
config_summary_num_results?: number;
config_summary_num_sentences?: number;
config_summary_prompt_name?: string;
config_summary_styled_prompt?: string;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a boolean, since it's a flag:

config_summary_styled_prompt?: boolean;

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this is actually a string in all our configs (e.g in "mmr" and "enable_source_filters"). Why would it be different here? In all those cases, we'd be using isTrue(X) as above.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, my mistake!

src/views/search/styles.ts Outdated Show resolved Hide resolved
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.

None yet

2 participants