[PR #758] [MERGED] Enable ability to do full-text query on documents #3484

Closed
opened 2026-02-22 18:33:52 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/758
Author: @timothycarambat
Created: 2/19/2024
Status: Merged
Merged: 2/21/2024
Merged by: @timothycarambat

Base: masterHead: 729-document-pinning


📝 Commits (4)

  • 9c85760 Enable ability to do full-text query on documents
  • b5bc5e6 typo and copy update
  • bf54c7f simplify spread of context and sources
  • d237faf Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into 729-document-pinning

📊 Changes

17 files changed (+592 additions, -153 deletions)

View changed files

📝 frontend/src/components/Modals/MangeWorkspace/Documents/Directory/index.jsx (+4 -2)
📝 frontend/src/components/Modals/MangeWorkspace/Documents/WorkspaceDirectory/WorkspaceFileRow/index.jsx (+103 -12)
📝 frontend/src/components/Modals/MangeWorkspace/Documents/WorkspaceDirectory/index.jsx (+138 -67)
📝 frontend/src/components/Modals/MangeWorkspace/Documents/index.jsx (+1 -1)
📝 frontend/src/models/workspace.js (+19 -0)
📝 frontend/src/utils/constants.js (+1 -0)
📝 server/endpoints/workspaces.js (+27 -0)
📝 server/models/documents.js (+54 -3)
server/prisma/migrations/20240219211018_init/migration.sql (+2 -0)
📝 server/prisma/schema.prisma (+1 -0)
📝 server/utils/AiProviders/openAi/index.js (+9 -5)
server/utils/DocumentManager/index.js (+72 -0)
📝 server/utils/chats/embed.js (+43 -20)
📝 server/utils/chats/index.js (+42 -19)
📝 server/utils/chats/stream.js (+42 -19)
📝 server/utils/files/index.js (+5 -0)
📝 server/utils/helpers/chat/index.js (+29 -5)

📄 Description

Show alert modal on first pin for client
Add ability to use pins in stream/chat/embed

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #729
resolves #310

What is in this change?

Enable the ability for the user to "pin" documents to the workspace. This does a full-text context injection into the prompt + vector-searching to ensure that important documents are always attached to a context window. This can resolve almost any relevancy problems depending on the model being used + the document content.

Additional Information

Add any other context about the Pull Request here that was not captured above.

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

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/758 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 2/19/2024 **Status:** ✅ Merged **Merged:** 2/21/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `729-document-pinning` --- ### 📝 Commits (4) - [`9c85760`](https://github.com/Mintplex-Labs/anything-llm/commit/9c857602dac7e4c9103b8f2ff78230911676de7c) Enable ability to do full-text query on documents - [`b5bc5e6`](https://github.com/Mintplex-Labs/anything-llm/commit/b5bc5e6c0f01b8ade04cba919b815b1899e8e68e) typo and copy update - [`bf54c7f`](https://github.com/Mintplex-Labs/anything-llm/commit/bf54c7f1c5e6425019485a11519315644baa225a) simplify spread of context and sources - [`d237faf`](https://github.com/Mintplex-Labs/anything-llm/commit/d237faf0771ca245726595397572abf6d14c1017) Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into 729-document-pinning ### 📊 Changes **17 files changed** (+592 additions, -153 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/Modals/MangeWorkspace/Documents/Directory/index.jsx` (+4 -2) 📝 `frontend/src/components/Modals/MangeWorkspace/Documents/WorkspaceDirectory/WorkspaceFileRow/index.jsx` (+103 -12) 📝 `frontend/src/components/Modals/MangeWorkspace/Documents/WorkspaceDirectory/index.jsx` (+138 -67) 📝 `frontend/src/components/Modals/MangeWorkspace/Documents/index.jsx` (+1 -1) 📝 `frontend/src/models/workspace.js` (+19 -0) 📝 `frontend/src/utils/constants.js` (+1 -0) 📝 `server/endpoints/workspaces.js` (+27 -0) 📝 `server/models/documents.js` (+54 -3) ➕ `server/prisma/migrations/20240219211018_init/migration.sql` (+2 -0) 📝 `server/prisma/schema.prisma` (+1 -0) 📝 `server/utils/AiProviders/openAi/index.js` (+9 -5) ➕ `server/utils/DocumentManager/index.js` (+72 -0) 📝 `server/utils/chats/embed.js` (+43 -20) 📝 `server/utils/chats/index.js` (+42 -19) 📝 `server/utils/chats/stream.js` (+42 -19) 📝 `server/utils/files/index.js` (+5 -0) 📝 `server/utils/helpers/chat/index.js` (+29 -5) </details> ### 📄 Description Show alert modal on first pin for client Add ability to use pins in stream/chat/embed ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [ ] ✨ feat - [x] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #729 resolves #310 ### What is in this change? Enable the ability for the user to "pin" documents to the workspace. This does a full-text context injection into the prompt + vector-searching to ensure that important documents are always attached to a context window. This can resolve almost any relevancy problems depending on the model being used + the document content. ### Additional Information Add any other context about the Pull Request here that was not captured above. ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:33:52 -05:00
yindo closed this issue 2026-02-22 18:33:52 -05:00
yindo changed title from [PR #758] Enable ability to do full-text query on documents to [PR #758] [MERGED] Enable ability to do full-text query on documents 2026-06-05 15:13:39 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#3484