Skip to content

Unstructured cookbook#207

Open
SIDDHAARTHAA wants to merge 2 commits intousemoss:mainfrom
SIDDHAARTHAA:unstructured-cookbook
Open

Unstructured cookbook#207
SIDDHAARTHAA wants to merge 2 commits intousemoss:mainfrom
SIDDHAARTHAA:unstructured-cookbook

Conversation

@SIDDHAARTHAA
Copy link
Copy Markdown

@SIDDHAARTHAA SIDDHAARTHAA commented May 4, 2026

Pull Request Checklist

Please ensure that your PR meets the following requirements:

  • I have read the CONTRIBUTING guide.
  • I have updated the documentation (if applicable).
  • My code follows the style guidelines of this project.
  • I have performed a self-review of my own code.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.

Description

Adds a focused Unstructured + Moss cookbook for parsing raw files, chunking extracted content, preserving metadata, and incrementally upserting chunks into a Moss index for semantic search.

The cookbook includes a runnable ingestion script, sample documents, environment template, and setup/usage documentation.

Validation performed:

  • python -m py_compile examples/cookbook/unstructured/ingest.py

Fixes #203

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Open in Devin Review

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

View 2 additional findings in Devin Review.

Open in Devin Review

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚩 Other cookbook examples include test files; this one does not

The langchain cookbook has test_integration.py, haystack has test_live.py, and crewai has test_live.py. This PR's unstructured cookbook has no test file. The CONTRIBUTING.md states "If you've added code that should be tested, add tests." For a cookbook/example script this is somewhat subjective — the dspy cookbook also lacks a test file — but it is a deviation from the majority pattern. Consider adding at least a minimal integration/smoke test for consistency.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

@yatharthk2
Copy link
Copy Markdown
Collaborator

Hi @SIDDHAARTHAA , thank you very much for working on this pr. Were you able to resolve all the comments from ai ? also can you please record a short 1 min video demonstrating the demo of implementation.

@SIDDHAARTHAA
Copy link
Copy Markdown
Author

Hey @yatharthk2, thanks for checking out. I’m working on it.

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.

[Feature] : Add a cookbook using Unstructured with Moss

3 participants