Open
Conversation
added 4 commits
March 17, 2026 20:45
…nput component and backend database migration.
Author
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.

📌 Tổng quan tính năng (Overview)
Tính năng này cho phép người dùng đính kèm các trường dữ liệu tùy chỉnh (Custom Metadata) dưới dạng Key-Value (ví dụ:
author: "John Doe",category: "Finance",year: "2023") ngay tại thời điểm upload tài liệu lên hệ thống NexusRAG. Dữ liệu này được lưu trữ trong Database (PostgreSQL) và toàn bộ các chunks trong Vector Database (ChromaDB).🚀 Các lợi ích cốt lõi (Key Benefits)
1. Nâng cao độ chính xác của RAG thông qua Filter (Hybrid Search)
{"year": "2023", "category": "finance"}.2. Tổ chức và quản lý tài liệu linh hoạt (Document Organization)
3. Tối ưu hiệu năng truy xuất (Performance Optimization)
4. Mở đường cho các tính năng nâng cao trong tương lai
access_level: "confidential") để lọc quyền truy cập dữ liệu của từng User/Agent.💻 UX/UI
🔌 Tích hợp API (API Integration)
Tính năng hỗ trợ Custom Metadata thông qua endpoint Upload Document hiện tại:
POST /api/v1/documents/upload/{workspace_id}custom_metadata(List các objects gồmkeyvàvalue).Example cURL Upload:
Hỗ trợ truy vấn và lọc Metadata Filtering qua các endpoint Query và Chat:
POST /api/v1/query/{workspace_id}POST /api/v1/chat/{workspace_id}metadata_filter(dưới dạng JSON object chứa các điều kiện lọc Key-Value).whereclause trong ChromaDB), thu gọn không gian tìm kiếm trước khi trả về kết quả cho LLM.Example cURL Query: