open-notebook icon indicating copy to clipboard operation
open-notebook copied to clipboard

Is there an API to start a chat session based on a specific notebook?

Open FelipeVeiga opened this issue 5 months ago • 2 comments

Hi! I’ve successfully installed the project and everything is working correctly.

I’d like to know if there is an API available to start a new chat session based on a specific notebook, send questions, and receive answers in the context of that notebook and session.

My goal would be something like:

Select or create a specific notebook

Start a new chat session attached to it

Send questions programmatically via API

Receive responses in the context of that notebook

Does this functionality already exist, or is it planned for the future?

Thanks in advance!

FelipeVeiga avatar Aug 06 '25 19:08 FelipeVeiga

It's been built as we speak for new front-end. How do you envision selecting documents for context? Let the LLM decide or specify doc ids?

lfnovo avatar Aug 09 '25 14:08 lfnovo

Hi lfnovo, I think the context/knowledge base to the API asked for FelipeVeiga will be all the docs of the notebook selected. I was trying to do a "multitenancy" interface (each group of users can access only a notebook) and this will be fantastic if implemented.

gsdantas71 avatar Sep 04 '25 20:09 gsdantas71