feat(kb-tags-filtering): filter kb docs using pre-set tags#648
Merged
waleedlatif1 merged 10 commits intostagingfrom Jul 10, 2025
Merged
feat(kb-tags-filtering): filter kb docs using pre-set tags#648waleedlatif1 merged 10 commits intostagingfrom
waleedlatif1 merged 10 commits intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
Contributor
There was a problem hiding this comment.
PR Summary
Major update to knowledge base system implementing tag-based filtering with dedicated database schema changes and UI components.
- Replaced generic metadata with 7 structured tag columns in both
documentandembeddingtables with optimized btree indexes for querying - Added new
TagInputcomponent in/workspace/[workspaceId]/knowledge/components/tag-input/tag-input.tsxfor managing document tags with collapsible UI - Implemented case-insensitive tag filtering in
/api/knowledge/search/route.tswith parallel and single query strategies - Updated knowledge block configuration to support tag parameters in both search and document creation operations
- Migration
0053_gigantic_gabe_jones.sqlremoves metadata column from embeddings table, requiring data migration
18 files reviewed, 27 comments
Edit PR Review Bot Settings | Greptile
apps/sim/app/workspace/[workspaceId]/knowledge/[id]/[documentId]/document.tsx
Show resolved
Hide resolved
apps/sim/app/workspace/[workspaceId]/knowledge/components/tag-input/tag-input.tsx
Show resolved
Hide resolved
apps/sim/app/workspace/[workspaceId]/knowledge/components/tag-input/tag-input.tsx
Show resolved
Hide resolved
|
✅ No security or compliance issues detected. Reviewed everything up to 2647d7e. Security Overview
Detected Code ChangesThe diff is too large to display a summary of code changes. Reply to this PR with |
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
added 2 commits
July 9, 2025 13:52
arenadeveloper02
pushed a commit
to arenadeveloper02/p2-sim
that referenced
this pull request
Sep 19, 2025
…ai#648) * feat(knowledge-base): tag filtering * fix lint * remove migrations * fix migrations * fix lint * Update apps/sim/app/api/knowledge/search/route.ts Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * fix lint * fix lint * UI --------- Co-authored-by: Vikhyath Mondreti <vikhyathmondreti@Vikhyaths-Air.attlocal.net> Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> Co-authored-by: Waleed Latif <walif6@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Can filter by tags for knowledge base chunks.
Type of change
How Has This Been Tested?
Screen.Recording.2025-07-09.at.3.11.00.PM.mov
Checklist:
bun run test)Security Considerations: