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

Add RawTask executing docs ad verbatim #395

Merged
merged 65 commits into from
Dec 11, 2023
Merged

Add RawTask executing docs ad verbatim #395

merged 65 commits into from
Dec 11, 2023

Conversation

rmitsch
Copy link
Collaborator

@rmitsch rmitsch commented Dec 5, 2023

Description

Add RawTask executing docs ad verbatim, i. e. the surrounding prompt is minimal and doesn't give any instructions except for "read and reply". This is useful for use cases where each doc has its individual prompt or for question answering.

Corresponding documentation PR

explosion/spaCy#13180

Types of change

New feature.

Checklist

  • I confirm that I have the right to submit this contribution under the project's MIT license.
  • I ran all tests in tests and usage_examples/tests, and all new and existing tests passed. This includes
    • all external tests (i. e. pytest ran with --external)
    • all tests requiring a GPU (i. e. pytest ran with --gpu)
  • My changes don't require a change to the documentation, or if they do, I've added all required information.

# Conflicts:
#	spacy_llm/tasks/builtin_task.py
…for handling both types of tasks. Update tests.
# Conflicts:
#	spacy_llm/tests/tasks/test_rel.py
@rmitsch rmitsch added the feat/task Feature: tasks label Dec 5, 2023
@rmitsch rmitsch self-assigned this Dec 5, 2023
@rmitsch rmitsch added the Test external Run external tests label Dec 5, 2023
@rmitsch rmitsch marked this pull request as ready for review December 5, 2023 12:12
@rmitsch
Copy link
Collaborator Author

rmitsch commented Dec 5, 2023

Not sure about the name, open to suggestions.

rmitsch and others added 7 commits December 7, 2023 15:23
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
Copy link
Member

@svlandeg svlandeg left a comment

Choose a reason for hiding this comment

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

Good idea :-)

spacy_llm/tasks/raw/registry.py Outdated Show resolved Hide resolved
spacy_llm/tasks/raw/registry.py Outdated Show resolved Hide resolved
spacy_llm/tasks/raw/registry.py Outdated Show resolved Hide resolved
spacy_llm/tasks/raw/task.py Outdated Show resolved Hide resolved
spacy_llm/tasks/templates/raw.v1.jinja Outdated Show resolved Hide resolved
@svlandeg
Copy link
Member

svlandeg commented Dec 7, 2023

Not sure about the name, open to suggestions.

Naming, my biggest forte!

VerbatimTask? 😁

rmitsch and others added 5 commits December 8, 2023 15:12
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
@rmitsch
Copy link
Collaborator Author

rmitsch commented Dec 8, 2023

VerbatimTask? 😁

Hm, not that much of a fan (RawTask isn't any better). Something with "direct", "as-is"...I'll think about it a bit more. Feel free to leave more suggestions 😁

Base automatically changed from feat/inf-doc-len to develop December 11, 2023 14:27
Copy link
Member

@svlandeg svlandeg left a comment

Choose a reason for hiding this comment

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

Good to merge after resolving the merge conflicts!

# Conflicts:
#	spacy_llm/tasks/__init__.py
#	spacy_llm/tasks/lemma/registry.py
#	spacy_llm/tasks/lemma/util.py
#	spacy_llm/tests/sharding/test_sharding.py
@rmitsch rmitsch merged commit 7c533cd into develop Dec 11, 2023
10 checks passed
@svlandeg svlandeg deleted the feat/raw-task branch December 11, 2023 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat/new New feature feat/task Feature: tasks Test external Run external tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants