-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ryan Holinshead
committed
Jan 4, 2024
1 parent
e926e4e
commit 0f631b9
Showing
3 changed files
with
64 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
python/src/aiconfig/editor/client/src/shared/prompt_schemas/PaLMChatParserPromptSchema.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import { PromptSchema } from "../../utils/promptUtils"; | ||
|
||
export const PaLMChatParserPromptSchema: PromptSchema = { | ||
// See https://cloud.google.com/vertex-ai/docs/generative-ai/model-reference/text-chat for settings | ||
// and defaults. The settings below are supported settings specified in the PaLMChatParser | ||
// refine_chat_completion_params implementation. | ||
input: { | ||
type: "string", | ||
}, | ||
model_settings: { | ||
type: "object", | ||
properties: { | ||
context: { | ||
type: "string", | ||
}, | ||
candidate_count: { | ||
type: "integer", | ||
minimum: 1, | ||
maximum: 4, | ||
}, | ||
temperature: { | ||
type: "number", | ||
minimum: 0, | ||
maximum: 1, | ||
}, | ||
top_p: { | ||
type: "number", | ||
minimum: 0, | ||
maximum: 1, | ||
}, | ||
top_k: { | ||
type: "integer", | ||
minimum: 1, | ||
maximum: 40, | ||
}, | ||
examples: { | ||
type: "array", | ||
items: { | ||
type: "object", | ||
required: ["input", "output"], | ||
properties: { | ||
input: { | ||
type: "string", | ||
}, | ||
output: { | ||
type: "string", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
prompt_metadata: { | ||
type: "object", | ||
properties: { | ||
remember_chat_context: { | ||
type: "boolean", | ||
}, | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters