mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-17 15:53:59 -06:00
[GH-ISSUE #4656] How to Disable Embedding and Ensure Full Text Return from Files in Chat Using Tools? #52358
Reference in New Issue
Block a user
Originally created by @gmrx on GitHub (Aug 16, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/4656
Discussed in https://github.com/open-webui/open-webui/discussions/4655
Originally posted by gmrx August 16, 2024
I'm currently facing an issue where I need to use the Tools class to translate the entire text from a file by sending it to chat. I'm using the code below, but the text is returned as a list. How can I disable embedding to ensure that the entire text from a file is returned as a single string? Here's the code I'm working with:
How can I modify the implementation to ensure that the text is returned as a single complete string rather than a list? What adjustments should be made to prevent any unwanted processing like embedding that might be affecting the output?