microsoft / genaiscript

Automatable GenAI Scripting
https://microsoft.github.io/genaiscript/
MIT License
173 stars 35 forks source link

When requesting to write to a file, not getting the file actually written #558

Open bzorn opened 3 months ago

bzorn commented 3 months ago

The script says: Write output to the file analysis.md.

The trace shows:

File /path_to_file/analysis.md:

# Monthly Sales Data Analysis
...

I get the refactoring view that looks like this: analysis.md \path_to_file

I'm not sure if and where the file is written but it isn't in the directory where the file that I ran the script over is.

pelikhan commented 3 months ago

can you attach a repro?

bzorn commented 3 months ago

On further investigation, I see that the files are being written into this directory:

image

C:\path_to_file

pelikhan commented 3 months ago

Do you know which model you are using?

bzorn commented 3 months ago

gpt-4-turbo

pelikhan commented 3 months ago

I think I am going to add a defFileOutput(...) function to declaratively define the expected generated files and path.

pelikhan commented 2 months ago

i was able to repro this. the LLM is confused by our system prompt.