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

Qa endpoint #128

Merged
merged 2 commits into from
Nov 8, 2023
Merged

Qa endpoint #128

merged 2 commits into from
Nov 8, 2023

Conversation

mruwnik
Copy link
Collaborator

@mruwnik mruwnik commented Nov 7, 2023

  • adds optional comments to the QA page
  • fixes bug with LangChain
  • auto adjusts the history and context fraction to make sure their sum is < 1
  • adds option of using new GPT-4-Turbo

Aprillion
Aprillion previously approved these changes Nov 8, 2023

if (field == "contextFraction") {
history = Math.min(history, Math.max(0, 1 - context - bufferFraction));
context = val;

Choose a reason for hiding this comment

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

why using the old value of context in the history formula, why not val?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good point... :D

(acc, [path, val]) => ({ ...acc, ...updateIn(settings, path, val) }),
settings
)
);

Choose a reason for hiding this comment

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

not in this PR, but the local state settings could not be derived from URL? sounds like asking for trouble trying to synchronize 2 places on write instead of deriving state from 1 source of truth 🤔

@mruwnik mruwnik merged commit 4d602bf into main Nov 8, 2023
1 check passed
@mruwnik mruwnik deleted the qa-endpoint branch November 8, 2023 18:18
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.

2 participants