jupyterlab / jupyter-ai

A generative AI extension for JupyterLab
https://jupyter-ai.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
3.12k stars 306 forks source link

Custom file handler for the /learn command #804

Open tgourdel opened 3 months ago

tgourdel commented 3 months ago

Problem

Today, the /learn command is constrained by the file types it supports. It would be great to be able to add custom file handlers to extend what the /learn command can actually learn.

Proposed Solution

The ability to create custom slash command works great so I'm wondering if the same could be possible for custom file types.

Thanks

welcome[bot] commented 3 months ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:

srdas commented 3 months ago

This is related to Issue #406 also. We have added new file type handlers in the last few months, so the list now is: SUPPORTED_EXTS = { ".py", ".md", ".R", ".Rmd", ".jl", ".sh", ".ipynb", ".js", ".ts", ".jsx", ".tsx", ".txt", ".html", ".pdf", ".tex", @JasonWeill - maybe close #406 as this one supercedes it?

JasonWeill commented 3 months ago

406 is an enhancement to mention the supported file types in Jupyter AI (as configured without other extensions) in Jupyter AI's documentation. This enhancement concerns creating custom file handlers to handle additional file types. I think #406 can be delivered independently of this issue.