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

Add file download function to chat assistant #9547

Closed
5 tasks done
Erincrying opened this issue Oct 21, 2024 · 11 comments
Closed
5 tasks done

Add file download function to chat assistant #9547

Erincrying opened this issue Oct 21, 2024 · 11 comments
Assignees
Labels
💪 enhancement New feature or request

Comments

@Erincrying
Copy link

Erincrying commented Oct 21, 2024

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

I hope to add a download function to the reference files in the answers after adding the context of the knowledge base to the chat assistant.
When others add the knowledge base to the context, the agent will provide me with corresponding answers and referenced files. However, when I tried to download the specific files, I found that this feature was not available. I hope it can be provided

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
@Yawen-1010
Copy link

Hello @Erincrying, can you specify the scenarios and use case of this features. Because for documents that are public on the Internet, there is no permission problem when downloading, such as papers on arxiv. When it comes to the knowledge base, there will be a permissions issue.

@Erincrying
Copy link
Author

Hello @Erincrying, can you specify the scenarios and use case of this features. Because for documents that are public on the Internet, there is no permission problem when downloading, such as papers on arxiv. When it comes to the knowledge base, there will be a permissions issue.

I hope to use it together in the team. When the team leader uploads the file to the knowledge base, others can add the knowledge base through the chat assistant to query relevant knowledge. At this point, the robot's answer will reference relevant files and prompt which file is being referenced. I hope to download the files uploaded by the leader locally by clicking on the reference file, without having to request the files from the leader

@Erincrying
Copy link
Author

Hello @Erincrying, can you specify the scenarios and use case of this features. Because for documents that are public on the Internet, there is no permission problem when downloading, such as papers on arxiv. When it comes to the knowledge base, there will be a permissions issue.

I hope to use it together in the team. When the team leader uploads the file to the knowledge base, others can add the knowledge base through the chat assistant to query relevant knowledge. At this point, the robot's answer will reference relevant files and prompt which file is being referenced. I hope to download the files uploaded by the leader locally by clicking on the reference file, without having to request the files from the leader

Wait a moment, I am currently re deploying dify. I can send a screenshot later to illustrate the scenario I want to express

@Yawen-1010
Copy link

Currently, when you open the Citation&attribution feature, retrieved chunks will be displayed. Click Link to knowledge to jump to the knowledge base with one click. Do you have permission to this knowledge base? If you do not have permission at this step, you will have the same problem with document download.

@Erincrying
Copy link
Author

Hello @Erincrying, can you specify the scenarios and use case of this features. Because for documents that are public on the Internet, there is no permission problem when downloading, such as papers on arxiv. When it comes to the knowledge base, there will be a permissions issue.

Hello @Erincrying, can you specify the scenarios and use case of this features. Because for documents that are public on the Internet, there is no permission problem when downloading, such as papers on arxiv. When it comes to the knowledge base, there will be a permissions issue.

I hope to use it together in the team. When the team leader uploads the file to the knowledge base, others can add the knowledge base through the chat assistant to query relevant knowledge. At this point, the robot's answer will reference relevant files and prompt which file is being referenced. I hope to download the files uploaded by the leader locally by clicking on the reference file, without having to request the files from the leader

Wait a moment, I am currently re deploying dify. I can send a screenshot later to illustrate the scenario I want to express

image
Just like in the picture, I can click on the txt file to download it to my local computer

@Erincrying
Copy link
Author

Currently, when you open the Citation&attribution feature, retrieved chunks will be displayed. Click Link to knowledge to jump to the knowledge base with one click. Do you have permission to this knowledge base? If you do not have permission at this step, you will have the same problem with document download.

This knowledge base is set to be visible to certain team members. Do these team members have this permission? I hope that the authorized team members who click on it will not show me the segmented file fragments, but can choose to download the original file directly. Authorized members can click on the reference file to download the source file

@Yawen-1010
Copy link

Yes, that's the permissions issue we're concerned about. Because there are specific documents which are not shown to everyone. For authorized members, you can click into the knowledge base to see the full text. But for users without permission, we are unable to provide complete documentation in this case.

@Erincrying
Copy link
Author

Yes, that's the permissions issue we're concerned about. Because there are specific documents which are not shown to everyone. For authorized members, you can click into the knowledge base to see the full text. But for users without permission, we are unable to provide complete documentation in this case.

The current method is that for members who do not have permission, clicking to jump to the knowledge base will prompt a permission error. Consistency can be maintained here, where unauthorized members are still unable to download source files and receive error prompts, while authorized members (i.e. those who can jump to the knowledge base) can provide a method for downloading source files

@Yawen-1010
Copy link

In response to this demand, we may add a document download function to the knowledge base in the future. The priority is not very high at the moment.

@Erincrying
Copy link
Author

In response to this demand, we may add a document download function to the knowledge base in the future. The priority is not very high at the moment.

Okay, I hope the reference files in the chat assistant can also be downloaded directly because we plan to open the application as an API and return the download stream of the source file directly in the response. It is said that RAGflow has a similar function. If this function is added, please let me know. Thank you very much!!

@Erincrying
Copy link
Author

In response to this demand, we may add a document download function to the knowledge base in the future. The priority is not very high at the moment.

@Yawen-1010 I'm sorry to bother you again, but I urgently need to fulfill this request. Can you tell me how to debug front-end code and some files I started using? I haven't developed front-end and back-end code yet, but I urgently need to implement it, so I'm sorry to bother you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants