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

make more clear how to generate and edit files #861

Open
sciabarracom opened this issue Nov 14, 2024 · 1 comment
Open

make more clear how to generate and edit files #861

sciabarracom opened this issue Nov 14, 2024 · 1 comment

Comments

@sciabarracom
Copy link

I have read the documentation https://microsoft.github.io/genaiscript/reference/scripts/file-output/

But it is still totally unclear to me how to actually generate files.

It makes no sense for me you specify a pattern for output! What it means? If I have spec/a.md and spec/b.md how I have to specify I want spec/a.py spec/b.py as output? spec/*.py? And how are matched input with output?

Furthermore I tried to run a generation task from samples.

I installed genai from sources and I tried to generate the file packages/sample/src/counting.py.

I removed it, and then ran:

npm run  cli run python packages/sample/src/counting.gpspec.md 

I was expecting the counting.py file to be regenerated, but it is not the case...
I tried to add -ae, specify -o <something> with no luck.

What am I missing?

@pelikhan
Copy link
Member

Let me take a look. The .gpspec stuff is really old dating from the first prototype of genaiscript.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants