dimagi / open-chat-studio

A web based platform for building Chatbots backed by Large Language Models
BSD 3-Clause "New" or "Revised" License
16 stars 7 forks source link

Optional citations #825

Closed SmittieC closed 2 weeks ago

SmittieC commented 2 weeks ago

resolves #820

Description

We simply replace citations with empty strings when it is disabled and allow normal flow when enabled,

User Impact

In the "Advanced" tab when an assistant bot type is selected, the user will see a new "citations enabled" setting.

Demo

image

Docs

https://dimagi.atlassian.net/wiki/spaces/OCS/pages/2694807589/Toggle+citations+in+bot+responses

codecov-commenter commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 92.30769% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
apps/service_providers/llm_service/runnables.py 87.50% 1 Missing :warning:
Additional details and impacted files

:loudspeaker: Thoughts on this report? Let us know!