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

fix: added fixes to drawer content static, n shot prompt guide sample and … #267

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ui/app/components/Project/Experiment/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ const columns = ref<TableColumn<ProjectExperiment>[]>([
return getModelName("retrieval", row.original.config.retrieval_model) || 'NA'
},
sortingFn: (rowA, rowB) => {
const a = rowA.original.config.retrieval_model;
const b = rowB.original.config.retrieval_model;
return a.localeCompare(b);
const a = getModelName("retrieval", rowA.original.config.retrieval_model);
const b = getModelName("retrieval", rowB.original.config.retrieval_model);
return a?.localeCompare(b ?? '');
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions ui/app/composables/tooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ export const useTooltipInfo = {
},
n_shot_prompt_guide: {
label: 'N-Shot Prompt Guide',
info: 'Upload or specify the few-shot prompt file that the application will use for retrieving relevant information',
content: '<p class="font-medium">Your prompt guide must be a valid JSON file containing three key sections:</p> <ul class="ml-8 list-disc"> <li> <span class="font-medium">System Prompt</span>: Instructions for the AI model </li> <li> <span class="font-medium">Base Prompt</span>: Template for your main prompt </li> <li> <span class="font-medium">Examples</span>: Collection of input/output pairs </li> </ul> <p class="mt-4 font-medium">Both the system prompt and user prompt are required</p> <p class="mt-4 font-medium"> View <a href="/prompt-guide.json" target="_blank" class="underline font-medium hover:text-primary-600">sample prompt guide</a> to understand the correct format </p> <p class="mt-4 font-medium">When using N-shot prompting:</p> <ol class="ml-8 mt-1 list-disc text-gray-600"> <li>Your guide must contain at least N example pairs</li> <li>Example: For 3-shot prompting, provide 3 or more examples</li> <li>FloTorch randomly selects N examples to enhance the prompt</li> </ol>'
info: '<p class="font-medium">Your prompt guide must be a valid JSON file containing three key sections:</p> <ul class="ml-8 list-disc"> <li> <span class="font-medium">System Prompt</span>: Instructions for the AI model </li> <li> <span class="font-medium">User Prompt</span>: Template for your main prompt </li> <li> <span class="font-medium">Examples</span>: Collection of input/output pairs </li> </ul> <p class="mt-4 font-medium">Both the system prompt and user prompt are required</p> <p class="mt-4 font-medium"> View <a href="/prompt-guide.json" target="_blank" class="underline font-medium hover:text-primary-600">sample prompt guide</a> to understand the correct format </p> <p class="mt-4 font-medium">When using N-shot prompting:</p> <ol class="ml-8 mt-1 list-disc text-gray-600"> <li>Your guide must contain at least N example pairs</li> <li>Example: For 3-shot prompting, provide 3 or more examples</li> <li>FloTorch randomly selects N examples to enhance the prompt</li> </ol>',
content: 'Upload or specify the few-shot prompt file that the application will use for retrieving relevant information',
},
knn_num: {
label: 'KNN Number',
Expand Down
9 changes: 4 additions & 5 deletions ui/app/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,9 @@ main.container {
}

.drawer-content {
position:relative;
min-height: 100%;
top: 0px;
right: 0px;
bottom: 0px;
position: fixed;
height: 87%;
right: 40px;
overflow-y: scroll;
}
</style>