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

Make learn and ask available outside of the chat UI #434

Open
JasonWeill opened this issue Nov 6, 2023 · 3 comments
Open

Make learn and ask available outside of the chat UI #434

JasonWeill opened this issue Nov 6, 2023 · 3 comments
Labels
enhancement New feature or request @jupyter-ai/magics project:learn-ask /learn and /ask commands, discoverability

Comments

@JasonWeill
Copy link
Collaborator

Problem

Users would like to learn from local documents, and ask questions of files via retrieval augmented generation (RAG), without using the chat UI.

Proposed Solution

Make equivalents to the /learn and /ask commands available outside the chat UI, such as in magic commands. Allow users to specify their embedding model of choice, similar to how magic commands work.

Additional context

This is adapted from #205 (comment) , a comment by @MarcSkovMadsen . Thanks!

@JasonWeill JasonWeill added enhancement New feature or request @jupyter-ai/magics labels Nov 6, 2023
@JasonWeill JasonWeill added the project:learn-ask /learn and /ask commands, discoverability label Nov 6, 2023
@MarcSkovMadsen
Copy link

To expand I would think it would be very, very powerful if the backend vector store could be used across applications.

I would like to be able to provide the foundation to 30 diverse users. Some users would be using notebooks on our Jupyter hub, some via vs code or pycharm. Some our interactive dashboards.

I think your UI close to the code and data is very powerful. And I'm totally blown away by your /read implementation. And I would like to tap into that process such that my users do not have to provide those documents again and again in other applications.

An example of a CLi for interacting with a vector store would be https://github.com/simonw/llm

For context I've been contributing to the chat components of HoloViz Panel including https://holoviz-topics.github.io/panel-chat-examples/. And I would also love to build applications on top of the Jupyter-ai vector store.

@krassowski
Copy link
Member

Since jupyter-ai chat package already inherits from JupyterApp it could quite easily provide a jupyter ai command (in the same way as jupyterlab providers jupyter lab and jupyter labextension white jupyter-server provides jupyter server.

@JasonWeill
Copy link
Collaborator Author

#638 suggests making /generate available in magic commands as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request @jupyter-ai/magics project:learn-ask /learn and /ask commands, discoverability
Projects
None yet
Development

No branches or pull requests

3 participants