Reading input files from a list #2996

Closed
opened 2025-11-11 15:19:19 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @dimk1 on GitHub (Dec 11, 2024).

Hello,

I'm using Webui 0.4.8 with the latest Ollama3.3 installed with Docker and currently running it in on an AWS EC2 instance.

I attach to the chat 4 files (not via the Knowledge functionality), let's call them FILE_1.md, FILE_2.md, FILE_3.md, FILE_4.md. I have setup my prompt as follows:

### Variables
**Filenames:** `FILES = ["FILE_1.md", "FILE_2.md", "FILE_3.md", "FILE_4.md"]`

### Task:
Evaluate each file with a filename listed in the list `FILES` against criterion X.

### Output Format for Batch Evaluations: 
For all files with filenames in the list `PROPOSALS` do X & Y

Prompts like this always fail and the system complains that there are no files attached to work with, so it improvises. When I modify the prompt to work on a single file it works as expected. Is there any suggested format when writing prompts to declare lists with filenames and then instruct the model to do certain actions on each file recursively?

Originally created by @dimk1 on GitHub (Dec 11, 2024). Hello, I'm using Webui 0.4.8 with the latest Ollama3.3 installed with Docker and currently running it in on an AWS EC2 instance. I attach to the chat 4 files (not via the Knowledge functionality), let's call them `FILE_1.md, FILE_2.md, FILE_3.md, FILE_4.md`. I have setup my prompt as follows: ``` ### Variables **Filenames:** `FILES = ["FILE_1.md", "FILE_2.md", "FILE_3.md", "FILE_4.md"]` ### Task: Evaluate each file with a filename listed in the list `FILES` against criterion X. ### Output Format for Batch Evaluations: For all files with filenames in the list `PROPOSALS` do X & Y ``` Prompts like this always fail and the system complains that there are no files attached to work with, so it improvises. When I modify the prompt to work on a single file it works as expected. Is there any suggested format when writing prompts to declare lists with filenames and then instruct the model to do certain actions on each file recursively?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#2996