possee-org / genai-numpy

MIT License
4 stars 6 forks source link

Review: AI Gen Examples for ma.argsort #110

Closed otieno-juma closed 3 months ago

otieno-juma commented 3 months ago

Link to your fork:

https://github.com/numpy/numpy/compare/main...otieno-juma:numpy:ai-examples-ma-argsort

Checks

spin build && python -m pip install . && spin docs && python tools/refguide_check.py --doctests && spin lint

Acceptance Criteria:

Close when the following are complete, in order:

When all tasks are complete:

argsort function

bmwoodruff commented 3 months ago

The example doesn't involve any sorting at all, rather it just defines an array and then shows it. This example is definitely not worth adding to the codebase.

We'll need to refine our prompt to get better examples, if we hope to add them to the codebase. Focus on the ones that have no examples, or try creating better prompts.

You now know what it takes to get something to pass the tests, and prepare it for inclusion. Now we just need better examples, or focus on different aspects of the docstring.