[PR #2567] [MERGED] Add header static class for metadata assembly #4038

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/2567
Author: @timothycarambat
Created: 11/1/2024
Status: Merged
Merged: 11/4/2024
Merged by: @timothycarambat

Base: masterHead: 2430-text-splitter-header-chunks


📝 Commits (4)

  • ad29a6c Add header static class for metadata assembly
  • b31b229 update comments
  • ede6ecd Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into 2430-text-splitter-header-chunks
  • c706ad6 patch header parsing for links

📊 Changes

9 files changed (+93 additions, -36 deletions)

View changed files

📝 server/utils/TextSplitter/index.js (+85 -4)
📝 server/utils/vectorDbProviders/astra/index.js (+1 -4)
📝 server/utils/vectorDbProviders/chroma/index.js (+1 -4)
📝 server/utils/vectorDbProviders/lance/index.js (+1 -4)
📝 server/utils/vectorDbProviders/milvus/index.js (+1 -4)
📝 server/utils/vectorDbProviders/pinecone/index.js (+1 -4)
📝 server/utils/vectorDbProviders/qdrant/index.js (+1 -4)
📝 server/utils/vectorDbProviders/weaviate/index.js (+1 -4)
📝 server/utils/vectorDbProviders/zilliz/index.js (+1 -4)

📄 Description

Pull Request Type

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

Relevant Issues

resolves #2430

What is in this change?

  • Use TextSplitter to pluck the ideal key metadata from a document and apply non-null values to the document chunk to improve LLM context and recall for chunks

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

🔄 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/2567 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 11/1/2024 **Status:** ✅ Merged **Merged:** 11/4/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `2430-text-splitter-header-chunks` --- ### 📝 Commits (4) - [`ad29a6c`](https://github.com/Mintplex-Labs/anything-llm/commit/ad29a6cbe7eba219de7862df2f93b3d033387213) Add header static class for metadata assembly - [`b31b229`](https://github.com/Mintplex-Labs/anything-llm/commit/b31b229ed12cae220299366bf9ef86a4bb3dbca6) update comments - [`ede6ecd`](https://github.com/Mintplex-Labs/anything-llm/commit/ede6ecddb36f933c99b8efd05f1b16d83b4d5235) Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into 2430-text-splitter-header-chunks - [`c706ad6`](https://github.com/Mintplex-Labs/anything-llm/commit/c706ad63c7c104c1e5a4a1d5316a2da740719dca) patch header parsing for links ### 📊 Changes **9 files changed** (+93 additions, -36 deletions) <details> <summary>View changed files</summary> 📝 `server/utils/TextSplitter/index.js` (+85 -4) 📝 `server/utils/vectorDbProviders/astra/index.js` (+1 -4) 📝 `server/utils/vectorDbProviders/chroma/index.js` (+1 -4) 📝 `server/utils/vectorDbProviders/lance/index.js` (+1 -4) 📝 `server/utils/vectorDbProviders/milvus/index.js` (+1 -4) 📝 `server/utils/vectorDbProviders/pinecone/index.js` (+1 -4) 📝 `server/utils/vectorDbProviders/qdrant/index.js` (+1 -4) 📝 `server/utils/vectorDbProviders/weaviate/index.js` (+1 -4) 📝 `server/utils/vectorDbProviders/zilliz/index.js` (+1 -4) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [x] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #2430 ### What is in this change? - Use `TextSplitter` to pluck the ideal key metadata from a document and apply non-`null` values to the document chunk to improve LLM context and recall for chunks <!-- Describe the changes in this PR that are impactful to the repo. --> ### 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:35:00 -05:00
yindo closed this issue 2026-02-22 18:35:00 -05:00
yindo changed title from [PR #2567] Add header static class for metadata assembly to [PR #2567] [MERGED] Add header static class for metadata assembly 2026-06-05 15:16:29 -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#4038