[FEATURE] Integrate notebook discovery and chunking with RAG ingestion
Python PR scope
Wire the read-only notebook loader into DataType and .ipynb discovery so notebooks can be added through the regular RAG API.
Difficulty: medium. Allocation index: #8118. Project: #8119.
Cohort allocation
This ticket is reserved for maintainer-coordinated allocation to the Stanford semester collaboration. Please wait for @lorenzejay to confirm an assignee before implementing. A comment expresses interest; it does not establish ownership. Public good first issue / help wanted discovery labels will be considered after cohort allocation.
GitHub usernames have not yet been supplied, so no individual assignment is implied.
Acceptance criteria
- [ ] Add explicit type and extension routing to the existing registry.
- [ ] Reuse a text chunker and preserve cell markers/source text in stored chunks.
- [ ] Add fake-embedding ingestion tests for multi-cell notebooks and empty content.
- [ ] Demonstrate a local notebook add/query flow with fake model services.
- [ ] Keep runtime notebook execution and binary-output indexing out of this PR.
Dependencies and coordination
- Depends on #8132.
Starting points
- lib/crewai-tools/src/crewai_tools/rag/data_types.py
- lib/crewai-tools/src/crewai_tools/rag/core.py
- lib/crewai-tools/src/crewai_tools/rag/chunkers/text_chunker.py
- lib/crewai-tools/tests/rag
- API/format reference
Submission
The contributor implements this scope and submits one focused PR linked to this open issue. Include full Python annotations, behavioral tests, and relevant quality checks. No paid API calls are required for the tests. Preserve existing APIs outside the scoped feature. For newly found defects, reproduce them and check active issues/PRs before fixing them. Docs edits, when needed, belong under docs/edge/ and must sync ar, ko, pt-BR per DOCS_TRANSLATIONS.md. Follow .github/CONTRIBUTING.md. Issue prepared with AI assistance.
Hi, I would like to claim this if it's still available! @lorenzejay
Hi @lorenzejay, I would like to claim this issue if this is still open. Thanks!
Hi @lorenzejay! I'm Austin, part of the Stanford CS 146S cohort. I'd like to take this one if it's still available for allocation. Thank you!
Hi @lorenzejay ! Following up on my comment above: I went ahead and submitted PR #9481 for this issue, since the assignment deadline is coming up.
The change is small and focused. It registers a notebook data type and .ipynb detection in the existing RAG registry, reusing the existing NotebookLoader and TextChunker, and mirrors how JSONL was wired in by #8754. It includes fake-embedding tests for multi-cell and empty notebooks, a local add/query flow, and docs with translations. The relevant tests pass locally.
I realize this issue hasn't been formally assigned, that @chang-amy and @keyiyu0331 also asked to claim it, and that #8307 is open for it too, so apologies for jumping in! I'm happy to coordinate and make any requested changes.
Thank you so much!