Skip to content

Commit

Permalink
refactor(scraper): remove description from column definition
Browse files Browse the repository at this point in the history
  • Loading branch information
idiotWu committed Feb 3, 2025
1 parent a9a956c commit 1faa38a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion npiai/tools/scrapers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
__INDEX_COLUMN__ = Column(
name="[[item_index]]",
type="text",
description="The index of the item in the list",
prompt="Extract the index of the item in the list",
)

Expand Down
1 change: 0 additions & 1 deletion npiai/tools/scrapers/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
- **number**: Columns that contain numerical information.
- **link**: Columns that contain URLs or hyperlinks.
- **image**: Columns that contain image URLs.
- **description**: A brief description of the data to be extracted.
- **prompt**: An optional step-by-step prompt on how to extract the column data.
## Instructions
Expand Down
1 change: 0 additions & 1 deletion npiai/tools/scrapers/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
class Column(TypedDict):
name: Annotated[str, "Name of the column"]
type: Annotated[Literal["text", "number", "link", "image"], "Type of the column"]
description: Annotated[str, "A brief description of the column"]
prompt: Annotated[
str | None, "A step-by-step prompt on how to extract the column data"
]
Expand Down

0 comments on commit 1faa38a

Please sign in to comment.