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

Created an annotation using instructor #631

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ivanleomk
Copy link
Collaborator

@ivanleomk ivanleomk commented Apr 29, 2024

Playing with a simple example on how to do data annotation using streamlit for data labelling and instructor for the data extraction layer.

annotation


🚀 This description was created by Ellipsis for commit 227c0a4

Summary:

Introduces a Streamlit-based data annotation example utilizing Instructor for data extraction, with comprehensive setup and execution instructions.

Key points:

  • Added new example for data annotation using Streamlit and Instructor.
  • Includes Readme.md, annotate.py, main.py, and requirements.txt.
  • Uses SQLite for data storage, Instructor for data extraction, and Streamlit for the web interface.
  • Demonstrates async operations and data validation with Pydantic.
  • Requires update to mkdocs.yml to include new documentation.

Generated with ❤️ by ellipsis.dev

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested.

  • Reviewed the entire pull request up to 227c0a4
  • Looked at 183 lines of code in 4 files
  • Took 46 seconds to review
More info
  • Skipped 0 files when reviewing.
  • Skipped posting 0 additional comments because they didn't meet confidence threshold of 85%.

Workflow ID: wflow_vuIpRAdUI6c5y2Du


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment (or add @ellipsis-agent to your repo for autocomplete). We'll respond in a few minutes. Learn more here. You can customize Ellipsis with review rules, user-specific overrides, quiet mode, and more. See docs.


This showcases a simple streamlit module which can be used to do data annotation for files in a specific table.

Make sure to install the dependencies first with `uv pip install -r requirements.txt`
Copy link
Contributor

Choose a reason for hiding this comment

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

The command to install dependencies seems to contain a typo. It should be pip install -r requirements.txt instead of uv pip install -r requirements.txt.

Suggested change
Make sure to install the dependencies first with `uv pip install -r requirements.txt`
Make sure to install the dependencies first with `pip install -r requirements.txt`

Copy link

Deploying instructor with  Cloudflare Pages  Cloudflare Pages

Latest commit: 227c0a4
Status: ✅  Deploy successful!
Preview URL: https://a2ade9c2.instructor.pages.dev
Branch Preview URL: https://annotation-example.instructor.pages.dev

View logs

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.

None yet

1 participant