mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-11 06:08:19 +00:00
Added an introduction and an onboarding chat to the BeyondFacts Lab (#1178)
This commit is contained in:
1 parent
79e0c80031
commit
22d94eb8fd
35 files changed
+1377
-361
No files matched your search
@@ -6,8 +6,10 @@ namespace AIStudio.Assistants.BeyondFactsLab;
|
||||
/// What a model needs to run the chats of the BeyondFacts Lab.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Every chat of the lab keeps its guide in the context, which alone takes about 20,000 tokens. A model with a
|
||||
/// smaller context window would lose the beginning of each conversation, or fail right away.
|
||||
/// Every chat of a step keeps the guide of the lab in the context, which alone takes about 20,000 tokens. A model
|
||||
/// with a smaller context window would lose the beginning of each conversation, or fail right away. The conversation
|
||||
/// about whether the lab fits a task leaves out the guide, so it runs with any model; its token budget tells the
|
||||
/// person when it grows too long.
|
||||
/// </remarks>
|
||||
public static class BflModelRequirements
|
||||
{
|
||||
@@ -30,4 +32,12 @@ public static class BflModelRequirements
|
||||
/// <param name="contextWindow">The context window of the model.</param>
|
||||
/// <returns>True when the window is large enough or unknown.</returns>
|
||||
public static bool HasEnoughContext(ContextWindow contextWindow) => !contextWindow.IsKnown || contextWindow.DefaultTokens >= MINIMUM_CONTEXT_TOKENS;
|
||||
|
||||
/// <summary>
|
||||
/// Checks whether a model reads enough at once for a chat of the lab.
|
||||
/// </summary>
|
||||
/// <param name="location">Where the chat belongs.</param>
|
||||
/// <param name="contextWindow">The context window of the model.</param>
|
||||
/// <returns>True when the chat needs no minimum, or when the window is large enough or unknown.</returns>
|
||||
public static bool HasEnoughContext(BflThreadLocation location, ContextWindow contextWindow) => location is BflOnboardingThreadLocation || HasEnoughContext(contextWindow);
|
||||
}
|
||||
Reference in new issue
Block a user