nlux icon indicating copy to clipboard operation
nlux copied to clipboard

Add content outside of the response textbox

Open marklysze opened this issue 1 year ago β€’ 1 comments

Is it possible to add extra elements around the response box?

For me specifically, boxes for each of the sources that I'm getting back in my response would be great to present to the user.

As an example, LangChain's chatbot (chat.langchain.com) shows the sources in a response as separate boxes at the top of the response text, and these can be clicked on to access the source webpages.

I am planning to concatenate the sources to LangChain's response, e.g.: "... response from LLM ... ["Source 1", "Document Name and link"] ["Source 2", "Document Name and link"] "

I can put these as links in the response text, though it would be nice to be able to beautify these boxes with things like thumbnails, titles, and text.

marklysze avatar Feb 05 '24 10:02 marklysze

Just to add to this, happy to have the content in the box itself (I could put it in the box after the text

marklysze avatar Feb 07 '24 02:02 marklysze

@marklysze β€”Β this is now possible thanks to Custom Response Renderers

Example here: https://docs.nlkit.com/nlux/examples/custom-response-renderers

I hope this matches the feature request. If so, I'll go ahead and close this issue.

salmenus avatar May 31 '24 16:05 salmenus