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

Dev - 1.4.0 #28

Merged
merged 36 commits into from
Feb 13, 2024
Merged
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
0e82bc2
Add streaming support
zaldivards Nov 26, 2023
b8c836e
Remove unused prompts
zaldivards Nov 27, 2023
44fa10b
Update state handlers
zaldivards Nov 27, 2023
98a317e
Add `AsyncCallback` for the agent
zaldivards Nov 27, 2023
3c3984a
Update chatbox
zaldivards Nov 27, 2023
8509578
Remove deprecated code
zaldivards Nov 27, 2023
c8a3f61
Add `general` module
zaldivards Nov 27, 2023
1e8b2bb
Add streaming support for `QA`
zaldivards Nov 27, 2023
a0c1bfe
Rename `general` module to `streaming`
zaldivards Nov 27, 2023
b78a31b
Update the `ask` function
zaldivards Nov 27, 2023
66db0c4
Update text utils
zaldivards Nov 28, 2023
acb1684
Update the `stream` function
zaldivards Nov 28, 2023
703bccb
Update the `ask` function
zaldivards Nov 28, 2023
30aac42
Remove `clean` function
zaldivards Nov 28, 2023
6f58500
Merge pull request #24 from zaldivards/feature/streaming
zaldivards Dec 1, 2023
2529bc9
Update `build_sources` function
zaldivards Dec 18, 2023
9305abf
Update how the sources are streamed
zaldivards Dec 18, 2023
3f1b2d7
Add the `SourcesBox` component
zaldivards Dec 18, 2023
f78fc7a
Add rendering of sources
zaldivards Dec 18, 2023
b53dba8
Update `build_sources` function
zaldivards Feb 10, 2024
440312c
Add state of the latest sources
zaldivards Feb 10, 2024
e36af74
Update sources layout
zaldivards Feb 10, 2024
d00799a
Merge pull request #26 from zaldivards/feature/sourceRendering
zaldivards Feb 12, 2024
3c7b528
Update file uploader
zaldivards Feb 12, 2024
29c5786
Add the `BatchProcessor` class
zaldivards Feb 12, 2024
6339245
Update the `/ingest/` endpoint
zaldivards Feb 12, 2024
8b9b8a4
Fix bug when working with multiple threads
zaldivards Feb 12, 2024
2621722
Add `/check-sources` endpoint
zaldivards Feb 12, 2024
3299493
Update mounted function to check the sources availability
zaldivards Feb 12, 2024
e5f7e9c
Update QA session warnings
zaldivards Feb 12, 2024
2ff4f89
Fix error related to the connection pool
zaldivards Feb 12, 2024
e9a368c
Update the `/ingest/` endpoint
zaldivards Feb 12, 2024
f7b7d28
Update QA messages
zaldivards Feb 12, 2024
933c16a
Update section names
zaldivards Feb 12, 2024
b21a044
Fix bug regarding the `latestSources` state
zaldivards Feb 12, 2024
d1aa05a
Merge pull request #27 from zaldivards/feature/multiIngestion
zaldivards Feb 13, 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
Prev Previous commit
Next Next commit
Add the SourcesBox component
This component will be built asynchronously based on the
sources received after a QA response
  • Loading branch information
zaldivards committed Dec 18, 2023
commit 3f1b2d714b3fd2515652cff3840ae4a721490af6
63 changes: 63 additions & 0 deletions client/src/components/SourcesBox.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<template>
<div class="w-full">
<Card
:key="i"
v-for="(source, i) in data"
class="mx-0 my-5"
:pt="{
content: { class: 'mx-0' },
}"
>
<template #title>
{{ source.title }}
</template>
<template #content>
<p v-if="source.format_ == 'txt'">
{{ source.content }}
</p>
<DataTable v-else-if="source.format_ == 'csv'" :value="source.content">
<Column
v-for="(name, i) in Object.keys(source.content[0])"
:key="i"
:field="name"
:header="name"
></Column>
</DataTable>
<Image
class="m-0"
:src="`data:image/jpg;base64,${source.content}`"
v-else
preview
/>
</template>
</Card>
</div>
</template>

<script>
import Card from "primevue/card";
import DataTable from "primevue/datatable";
import Column from "primevue/column";
import Image from "primevue/image";

export default {
inject: ["dialogRef"],
name: "SourcesBox",
components: { Card, DataTable, Column, Image },
data() {
return {
data: [],
};
},
mounted() {
try {
this.data = JSON.parse(this.dialogRef.data.sources);
} catch (e) {
console.log(e);
}
},
};
</script>

<style>
</style>