Skip to content

feat: add dataset tools and libraries #1

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

Merged
merged 11 commits into from
Oct 10, 2024
Merged

Conversation

g-linville
Copy link
Member

@g-linville g-linville commented Oct 5, 2024

This PR adds five tools that act as an API for datasets: create and list datasets, and list, get, and add elements to a dataset.

All datasets are represented as a set of files written to disk. Each individual piece of data is stored in a separate file. Depending on how this goes, I may end up creating an interface for datasets in this repo, and have a separate implementation option that stores everything in a single file, in cases where we have several small pieces of data. For now though, this should suffice.

Signed-off-by: Grant Linville <grant@acorn.io>
Signed-off-by: Grant Linville <grant@acorn.io>
main.go Outdated

func main() {
if len(os.Args) < 2 {
fmt.Println("missing argument")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add what we expect the argument to be? I see the switch below, but maybe something like missing action as first argument would be more descriptive so the LLM can recover?

Copy link
Member Author

@g-linville g-linville Oct 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Darren had some specific instructions about what to do for this, so I just updated it to be the way he wants.

@g-linville g-linville marked this pull request as draft October 8, 2024 15:32
@g-linville
Copy link
Member Author

g-linville commented Oct 8, 2024

Moving this to draft because I received more clarification on the design, and there are a lot of things about this that need to change.

Signed-off-by: Grant Linville <grant@acorn.io>
Signed-off-by: Grant Linville <grant@acorn.io>
Signed-off-by: Grant Linville <grant@acorn.io>
Signed-off-by: Grant Linville <grant@acorn.io>
@g-linville g-linville marked this pull request as ready for review October 10, 2024 03:24
Signed-off-by: Grant Linville <grant@acorn.io>
Signed-off-by: Grant Linville <grant@acorn.io>
@g-linville g-linville requested a review from thedadams October 10, 2024 03:33
@g-linville
Copy link
Member Author

This one is ready again.

Signed-off-by: Grant Linville <grant@acorn.io>
@g-linville g-linville requested a review from thedadams October 10, 2024 14:55
Signed-off-by: Grant Linville <grant@acorn.io>
Signed-off-by: Grant Linville <grant@acorn.io>
@g-linville g-linville merged commit 4b37984 into gptscript-ai:main Oct 10, 2024
@g-linville g-linville deleted the init branch October 10, 2024 23:55
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

Successfully merging this pull request may close these issues.

3 participants