θΏ™ζ˜―indexlocζδΎ›ηš„ζœεŠ‘οΌŒδΈθ¦θΎ“ε…₯任何密码
Skip to content

Conversation

@timothycarambat
Copy link
Member

Pull Request Type

  • ✨ feat
  • πŸ› fix
  • ♻️ refactor
  • πŸ’„ style
  • πŸ”¨ chore
  • πŸ“ docs

Relevant Issues

resolves #1197

What is in this change?

Add refusal response customization to stream, API chat, and embed chat in the workspace setting.

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

@timothycarambat
Copy link
Member Author

Screenshot 2024-04-30 at 4 11 29β€―PM

In workspace settings

@timothycarambat timothycarambat merged commit 42e1d8e into master Apr 30, 2024
@timothycarambat timothycarambat deleted the 1197-refusal-response-customization branch April 30, 2024 23:14
@santini-cyber
Copy link
Contributor

Did this PR merge also include functionality which inhibits the refusal responses from being written to the local database? Query mode refusal responses are no longer being captured in Workspace chats in my latest build from 5/29/24.

@timothycarambat
Copy link
Member Author

Refusal chats were never logged and the PR did not change that. If you got a refusal that was logged as a chat, it came from the LLM itself

@santini-cyber
Copy link
Contributor

I usually role our DE to a current build every 4-5 weeks. I was slacking last month and waited six weeks. I am running a April 16th build and a May 30th build. Embedded docs are the same, workspace configuration is identical. Using query mode in both. Prompts are identical. However, I am getting a different "response" or observed behavior. I am using the same LLM version so I don't think it is a difference there. The observed behavioral difference is that the prompts which don't result in a citation are captured in the April 16th build but not in the May 30th build. Should I open a bug and provide a more detailed description?

cabwds pushed a commit to cabwds/anything-llm that referenced this pull request Jul 3, 2025
* Customize refusal response for `query` mode

* remove border for desktop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT]: change deafult answer

3 participants