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

v1.8.0 #249

Merged
merged 19 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
bff9494
Update dependencies and fix TypeScript strict mode errors
n4ze3m Apr 13, 2024
0bcfc82
Merge remote-tracking branch 'origin/main' into next
n4ze3m Apr 14, 2024
185703f
Merge remote-tracking branch 'origin/main' into next
n4ze3m Apr 14, 2024
8214052
migrated to bullmq
n4ze3m Apr 17, 2024
c4ca301
Update package versions and fix error handling in data source deletion
n4ze3m Apr 17, 2024
1aab052
Merge remote-tracking branch 'origin/main' into next
n4ze3m Apr 21, 2024
a41ebb7
Add new migration files for q_12_1, q_25, and q_12_2
n4ze3m Apr 21, 2024
ef5b7d9
Refactor DsTable component styling and fix data source deletion error…
n4ze3m Apr 21, 2024
dfaa6b8
Fix initial values in BotForm component
n4ze3m Apr 21, 2024
86a1b61
Update styling in teams.tsx and add ApplicationCard component
n4ze3m Apr 21, 2024
a19ec6f
Update model_id in saveModelFromInputedUrlHandler
n4ze3m Apr 21, 2024
43c8f27
Add updateDialoqbaseRAGSettingsHandler to admin post handler
n4ze3m Apr 21, 2024
5033776
Refactor text splitting logic in queue controllers
n4ze3m Apr 21, 2024
2746354
Add updateDialoqbaseRAGSettingsHandler and updateDialoqbaseRAGSetting…
n4ze3m Apr 21, 2024
3f9ebbf
Refactor model name replacement logic in embeddings.ts and models.ts
n4ze3m Apr 21, 2024
15b38c9
Add getRagSettings function to rag-settings.ts
n4ze3m Apr 21, 2024
a05bbb0
Add Ability to configure default chat and embedding model
n4ze3m Apr 22, 2024
4a3c83d
Add new llama3 models support
n4ze3m Apr 22, 2024
17cded4
Update model name in seed.ts
n4ze3m Apr 22, 2024
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
2 changes: 1 addition & 1 deletion app/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "app",
"private": true,
"version": "1.7.9",
"version": "1.8.0",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
25 changes: 16 additions & 9 deletions app/ui/src/components/Bot/DS/DsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,12 @@ export const DsTable = ({
message: "Data source deleted successfully",
});
},
onError: () => {
onError: (err: any) => {
notification.error({
message: "Error while deleting data source",
message:
err?.response?.data?.message ||
err?.response?.data?.error ||
"Error while deleting data source",
});
},
}
Expand All @@ -96,9 +99,12 @@ export const DsTable = ({
message: "Data source updated successfully",
});
},
onError: () => {
onError: (err: any) => {
notification.error({
message: "Error while updating data source",
message:
err?.response?.data?.message ||
err?.response?.data?.error ||
"Error while deleting data source",
});
},
}
Expand All @@ -109,7 +115,8 @@ export const DsTable = ({
<div className="sm:flex sm:items-center">
<div className="sm:flex-auto">
<h1 className="text-xl font-semibold text-gray-900 dark:text-white">
Data Sources</h1>
Data Sources
</h1>
<p className="mt-2 text-sm text-gray-700 dark:text-gray-400">
List of data sources that are currently being used by your bot.
</p>
Expand All @@ -125,9 +132,9 @@ export const DsTable = ({
</div>
</div>
<div className="mt-8 flex flex-col">
<div className="-my-2 -mx-4 overflow-x-auto sm:-mx-6 lg:-mx-8">
<div className="inline-block min-w-full py-2 align-middle md:px-6 lg:px-8">
<div className="overflow-hidden bg-white ring-1 ring-black ring-opacity-5 md:rounded-lg dark:bg-[#262626]">
<div className="-my-2 -mx-4 overflow-x-auto sm:-mx-6 lg:-mx-8">
<div className="inline-block min-w-full p-2 align-middle md:px-6 lg:px-8">
<div className="overflow-hidden bg-white ring-1 ring-black ring-opacity-5 rounded-lg dark:bg-[#262626]">
{data.length === 0 && (
<Empty description="No data sources found." className="m-8" />
)}
Expand Down Expand Up @@ -163,7 +170,7 @@ export const DsTable = ({
</th>
</tr>
</thead>
<tbody className="divide-y divide-gray-200 bg-white dark:bg-[#1e1e1e] dark:divide-gray-800">
<tbody className="divide-y divide-gray-200 bg-white dark:bg-[#1e1e1e] dark:divide-gray-800">
{data.map((source) => (
<tr key={source.id}>
<td className="whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6">
Expand Down
9 changes: 6 additions & 3 deletions app/ui/src/components/Common/BotForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -481,8 +481,10 @@ export const BotForm = ({
form={form}
className="space-y-6"
initialValues={{
embedding: "dialoqbase_eb_text-embedding-ada-002",
model: "gpt-3.5-turbo-dbase",
embedding:
botConfig?.defaultEmbeddingModel ||
"dialoqbase_eb_text-embedding-ada-002",
model: botConfig?.defaultChatModel || "gpt-3.5-turbo-dbase",
maxDepth: 2,
maxLinks: 10,
options: {
Expand Down Expand Up @@ -646,7 +648,7 @@ export const BotForm = ({
.toLowerCase()
.localeCompare((optionB?.label ?? "").toLowerCase())
}
placeholder="Select a chat model"
placeholder="Select a Chat Model"
options={botConfig.chatModel}
/>
</Form.Item>
Expand Down Expand Up @@ -675,6 +677,7 @@ export const BotForm = ({
.localeCompare((optionB?.label ?? "").toLowerCase())
}
options={botConfig.embeddingModel}
placeholder="Select an Embedding Model"
/>
</Form.Item>

Expand Down
24 changes: 24 additions & 0 deletions app/ui/src/components/Settings/Application/ApplicationCard.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
export const ApplicationCard = ({
children,
description,
title,
}: {
children: React.ReactNode;
title: string;
description: string;
}) => {
return (
<div>
<h2 className="text-base font-semibold leading-7 text-gray-900 dark:text-white">
{title}
</h2>
<p className="mt-1 text-sm leading-6 text-gray-500 dark:text-gray-200">
{description}
</p>

<dl className="mt-6 space-y-6 divide-y divide-gray-100 border-gray-200 text-sm leading-6 dark:text-gray-200">
<div className="mt-5 md:col-span-2 md:mt-0">{children}</div>
</dl>
</div>
);
};
2 changes: 2 additions & 0 deletions app/ui/src/hooks/useCreateConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ export const useCreateConfig = () => {
label: string;
value: string;
}[];
defaultChatModel?: string;
defaultEmbeddingModel?: string;
};
}
);
Expand Down
1 change: 0 additions & 1 deletion app/ui/src/hooks/useMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ export const useMessage = () => {
setHistory(responseData.history);
setMessages(newMessage);
setIsProcessing(false);
reader.releaseLock();
break;
}
}
Expand Down
Loading