mirror of https://github.com/open-webui/open-webui
doc: features update
This commit is contained in:
parent
fef4725d56
commit
28c1192ac0
|
@ -33,6 +33,8 @@ Also check our sibling project, [OllamaHub](https://ollamahub.com/), where you c
|
||||||
|
|
||||||
- ✒️🔢 **Full Markdown and LaTeX Support**: Elevate your LLM experience with comprehensive Markdown and LaTeX capabilities for enriched interaction.
|
- ✒️🔢 **Full Markdown and LaTeX Support**: Elevate your LLM experience with comprehensive Markdown and LaTeX capabilities for enriched interaction.
|
||||||
|
|
||||||
|
- 📚 **RAG Integration (Beta)**: Experience first-class retrieval augmented generation support, enabling chat with your documents.
|
||||||
|
|
||||||
- 📜 **Prompt Preset Support**: Instantly access preset prompts using the '/' command in the chat input. Load predefined conversation starters effortlessly and expedite your interactions. Effortlessly import prompts through [OllamaHub](https://ollamahub.com/) integration.
|
- 📜 **Prompt Preset Support**: Instantly access preset prompts using the '/' command in the chat input. Load predefined conversation starters effortlessly and expedite your interactions. Effortlessly import prompts through [OllamaHub](https://ollamahub.com/) integration.
|
||||||
|
|
||||||
- 👍👎 **RLHF Annotation**: Empower your messages by rating them with thumbs up and thumbs down, facilitating the creation of datasets for Reinforcement Learning from Human Feedback (RLHF). Utilize your messages to train or fine-tune models, all while ensuring the confidentiality of locally saved data.
|
- 👍👎 **RLHF Annotation**: Empower your messages by rating them with thumbs up and thumbs down, facilitating the creation of datasets for Reinforcement Learning from Human Feedback (RLHF). Utilize your messages to train or fine-tune models, all while ensuring the confidentiality of locally saved data.
|
||||||
|
@ -243,7 +245,6 @@ See [TROUBLESHOOTING.md](/TROUBLESHOOTING.md) for information on how to troubles
|
||||||
|
|
||||||
Here are some exciting tasks on our roadmap:
|
Here are some exciting tasks on our roadmap:
|
||||||
|
|
||||||
- 📚 **RAG Integration**: Experience first-class retrieval augmented generation support, enabling chat with your documents.
|
|
||||||
- 🌐 **Web Browsing Capability**: Experience the convenience of seamlessly integrating web content directly into your chat. Easily browse and share information without leaving the conversation.
|
- 🌐 **Web Browsing Capability**: Experience the convenience of seamlessly integrating web content directly into your chat. Easily browse and share information without leaving the conversation.
|
||||||
- 🔄 **Function Calling**: Empower your interactions by running code directly within the chat. Execute functions and commands effortlessly, enhancing the functionality of your conversations.
|
- 🔄 **Function Calling**: Empower your interactions by running code directly within the chat. Execute functions and commands effortlessly, enhancing the functionality of your conversations.
|
||||||
- ⚙️ **Custom Python Backend Actions**: Empower your Ollama Web UI by creating or downloading custom Python backend actions. Unleash the full potential of your web interface with tailored actions that suit your specific needs, enhancing functionality and versatility.
|
- ⚙️ **Custom Python Backend Actions**: Empower your Ollama Web UI by creating or downloading custom Python backend actions. Unleash the full potential of your web interface with tailored actions that suit your specific needs, enhancing functionality and versatility.
|
||||||
|
|
|
@ -116,8 +116,10 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
if (e.dataTransfer?.files && e.dataTransfer?.files.length > 0) {
|
const inputFiles = e.dataTransfer?.files;
|
||||||
const file = e.dataTransfer?.files[0];
|
|
||||||
|
if (inputFiles && inputFiles.length > 0) {
|
||||||
|
const file = inputFiles[0];
|
||||||
if (['image/gif', 'image/jpeg', 'image/png'].includes(file['type'])) {
|
if (['image/gif', 'image/jpeg', 'image/png'].includes(file['type'])) {
|
||||||
reader.readAsDataURL(file);
|
reader.readAsDataURL(file);
|
||||||
} else if (['application/pdf', 'text/plain'].includes(file['type'])) {
|
} else if (['application/pdf', 'text/plain'].includes(file['type'])) {
|
||||||
|
@ -221,7 +223,7 @@
|
||||||
bind:files={inputFiles}
|
bind:files={inputFiles}
|
||||||
type="file"
|
type="file"
|
||||||
hidden
|
hidden
|
||||||
on:change={() => {
|
on:change={async () => {
|
||||||
let reader = new FileReader();
|
let reader = new FileReader();
|
||||||
reader.onload = (event) => {
|
reader.onload = (event) => {
|
||||||
files = [
|
files = [
|
||||||
|
@ -235,15 +237,32 @@
|
||||||
filesInputElement.value = '';
|
filesInputElement.value = '';
|
||||||
};
|
};
|
||||||
|
|
||||||
if (
|
if (inputFiles && inputFiles.length > 0) {
|
||||||
inputFiles &&
|
const file = inputFiles[0];
|
||||||
inputFiles.length > 0 &&
|
if (['image/gif', 'image/jpeg', 'image/png'].includes(file['type'])) {
|
||||||
['image/gif', 'image/jpeg', 'image/png'].includes(inputFiles[0]['type'])
|
reader.readAsDataURL(file);
|
||||||
) {
|
} else if (['application/pdf', 'text/plain'].includes(file['type'])) {
|
||||||
reader.readAsDataURL(inputFiles[0]);
|
console.log(file);
|
||||||
|
const hash = await calculateSHA256(file);
|
||||||
|
// const res = uploadDocToVectorDB(localStorage.token,hash,file);
|
||||||
|
|
||||||
|
if (true) {
|
||||||
|
files = [
|
||||||
|
...files,
|
||||||
|
{
|
||||||
|
type: 'doc',
|
||||||
|
name: file.name,
|
||||||
|
collection_name: hash
|
||||||
|
}
|
||||||
|
];
|
||||||
|
filesInputElement.value = '';
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
toast.error(`Unsupported File Type '${file['type']}'.`);
|
||||||
|
inputFiles = null;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
toast.error(`Unsupported File Type '${inputFiles[0]['type']}'.`);
|
toast.error(`File not found.`);
|
||||||
inputFiles = null;
|
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue