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 · 4 comments
Open

make more clear how to generate and edit files #861

sciabarracom opened this issue Nov 14, 2024 · 4 comments

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.

@sciabarracom
Copy link
Author

I tried hard to generate files and I failed. I can to in code but it was supposed to be supported...

@pelikhan
Copy link
Member

Did you take a look at https://microsoft.github.io/genaiscript/reference/scripts/file-output/ ?

May I ask what you tried?

@pelikhan
Copy link
Member

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