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

Conversation

@shatfield4
Copy link
Collaborator

Pull Request Type

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

Relevant Issues

resolves #1218

What is in this change?

  • Add a check to make sure we do not give the query refusal message if there is a pinned document
  • Would previously ignore the pinned document when in query mode if no other documents were embedded

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

@shatfield4 shatfield4 requested a review from timothycarambat May 1, 2024 20:45
@timothycarambat timothycarambat added the PR:needs review Needs review by core team label May 1, 2024
@timothycarambat timothycarambat removed the PR:needs review Needs review by core team label May 2, 2024
@timothycarambat timothycarambat merged commit d02013f into master May 2, 2024
@timothycarambat timothycarambat deleted the 1218-document-pinning-does-not-count branch May 2, 2024 17:27
cabwds pushed a commit to cabwds/anything-llm that referenced this pull request Jul 3, 2025
* if document is pinned, do not give queryRefusalResponse message

* forgot embed.js patch

---------

Co-authored-by: timothycarambat <rambat1010@gmail.com>
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.

[BUG]: Document Pinning does not count in query mode.

3 participants