Bỏ qua để đến nội dung

Knowledge Vault

Knowledge Vault biến document tham khảo local thành excerpt có thể search và citation. Document nằm trong CaberOS storage và chỉ retrieve khi user, operator hoặc agent được phép search.

Dùng Vault cho manual, project note, specification, report và spreadsheet. Dùng memory cho preference, decision và conversational continuity.

Mở Knowledge Vault để thấy:

  • Shared Knowledge: mọi agent có document capability đều có thể search.
  • Agent-private scope: document chỉ hiển thị cho document tool của agent đó.

Mỗi card báo document count và indexed-chunk count. Chọn scope để upload, xem status, re-index, xóa hoặc preview retrieval. Scope là retrieval boundary, không phải external access-control; local operator vẫn quản lý được mọi scope.

Format Extraction
Markdown (.md, .markdown) Paragraph và heading path.
Text (.txt) Plain-text paragraph.
PDF (.pdf) Text theo page và PDF outline nếu có.
Word (.docx) Paragraph, heading, table và embedded-image reference.
CSV (.csv) Lưu typed row và column metadata cho query chính xác, kèm text để discovery.
Excel (.xlsx) Lưu sheet, row, cell và source location; không thực thi formula.

Excel cũ .xls chưa được hỗ trợ; hãy chuyển sang .xlsx hoặc .csv.

Giới hạn upload 250 MB/document. Image-only OCR chưa được hỗ trợ; scanned PDF có thể index ít text hoặc không có useful text nếu thiếu text layer.

  1. Mở Knowledge Vault.
  2. Chọn Shared Knowledge hoặc agent.
  3. Drop file hoặc dùng file picker.
  4. Chờ status thành indexed.
  5. Review chunk và structure count.
  6. Dùng Retrieval preview với query thực tế.

File nhận storage name nội bộ nhưng giữ display/source name. CaberOS lưu content hash để nhận diện content đã ingest.

Index tạo local chunk và giữ heading path, PDF page, spreadsheet sheet, table/image identifier, source range/location và original source path. Dashboard hiển thị status, size, chunk, section, page, table và image. Extraction fail sẽ hiện error.

Query tốt dùng term user thật sẽ hỏi. Nếu excerpt mong đợi không xuất hiện:

  1. Kiểm tra document indexed, không pending/failed.
  2. Thử keyword đặc trưng trong source.
  3. Kiểm tra file có text extract được.
  4. Re-index.
  5. Chuyển document tới đúng Shared hoặc agent-private scope.

Search nhận tối đa 1.000 query character và 20 excerpt; agent tool mặc định ít hơn để giữ context nhỏ.

Mở chunk inspector của document để xem parent/child tree, chunk kind, source location nếu có, token count và text có giới hạn. Child được load theo nhu cầu qua paginated API. Đây là corpus đã lưu, không phải model prompt được dựng lại hay snapshot lịch sử của mọi index generation.

Cấp doc_query_rows tại Agent Settings → Capabilities. Dùng doc_list hoặc doc_search tìm document, rồi query row cho câu hỏi count, filter hoặc sum. Top-k excerpt không đủ chứng minh tổng của toàn spreadsheet.

Query dùng filter/aggregate trong allowlist và trả tối đa 200 row/page. Count và aggregate tính trên toàn bộ matching set, không thay đổi theo pagination. Result giữ sheet/row provenance; không nhận raw SQL hoặc thực thi formula.

CSV chuyển canonical numeric value thành number; ID như 007 và text có dạng số không hữu hạn như 1e309 vẫn là text. Column có thể là mixed.

Giới hạn parse: 32 sheet, 50.000 data row/sheet và 200 column. Cell text giới hạn 2.000 ký tự kèm warning; XLSX decompressed content tối đa 256 MiB. File vượt structural limit bị từ chối, không âm thầm coi bảng đã cắt là đầy đủ.

Agent cần doc_list, doc_search và doc_inspect cho PDF page hoặc DOCX image với vision model. Cấu hình trong Agent Settings → Capabilities; dùng Always khi retrieval là trung tâm, On demand khi thỉnh thoảng.

Thêm doc_query_rows để filter, count hoặc aggregate row CSV/XLSX đã lưu.

doc_search kết hợp Shared Knowledge với private scope của agent hiện tại, không search private scope agent khác.

Search the Knowledge Vault for the release rollback procedure.
Summarize the steps and cite the source page or section.

Agent nên gọi doc_search trước khi trả lời. Retrieved excerpt có source metadata và conversation gắn source với response. Retrieval không đảm bảo factual correctness; hãy verify claim quan trọng.

doc_inspect trả image content của PDF page hoặc embedded DOCX image cho model có vision. Dùng doc_search để tìm document/page trước.

API có thể copy file từ workspace vào Shared Knowledge rồi index. Bản copy trong Vault độc lập với file workspace; workspace sửa sau đó cần import/replacement lại.

Re-index dùng khi extraction rule đổi, chunk thiếu hoặc cần rebuild metadata. Nó đọc file đã lưu trong Vault, không fetch external source.

Delete xóa Vault file, database record và indexed chunk nhưng không xóa original workspace file. Đây là hành động không thể hoàn tác nếu không có backup.

Storage/index đều local. Nếu agent dùng hosted model, excerpt từ doc_search hoặc visual content từ doc_inspect trở thành một phần provider request. Dùng local endpoint như Ollama nếu muốn giữ retrieved content trên máy. Xem local-first.

Unsupported format: convert sang Markdown, text, PDF có text layer, DOCX, CSV hoặc XLSX; .xls cũ cần chuyển định dạng. Tabular parse failure: kiểm tra sheet/row/column/decompression limit. Upload rejected: kiểm tra filename, extension và 250 MB limit. PDF empty: có thể là image scan không có text layer. Agent không thấy document: kiểm tra indexed, doc_search grant và retrieval preview. Private document của agent khác không thấy được vì scope isolation.