generalbots/bottemplates/ai-search.gbai/ai-search.gbkb/docs/sheetlib.md
Rodrigo Rodriguez 749b340cec Fix #498: XLSX and XLS files must be correctly indexed
- Changed extract_xlsx_text() to use open_workbook() instead of open_workbook_from_rs()
- Changed extract_xls_text() to use open_workbook() instead of open_workbook_from_rs()
- The calamine 0.26 API uses open_workbook(path) for direct file access
- This matches the pattern used in import_export.rs and vectordb.rs
- Updated AGENTS.md to clarify bots are stored as MinIO buckets
- Added test start.bas with USE KB "sheetlib" for testing KB injection

Root cause: open_workbook_from_rs() is not the correct API for calamine 0.26
Impact: XLSX and XLS files in .gbkb folders were failing to index into vector DB
Fix: Use standard open_workbook() API that accepts file path directly
2026-04-29 20:38:52 -03:00

647 B

SheetLib Knowledge Base

Overview

SheetLib is a spreadsheet processing library for General Bots.

Features

  • Create and edit spreadsheets
  • Import/export Excel files (XLSX, XLS)
  • Formula calculations
  • Cell formatting
  • Multiple sheets support

Usage Examples

Create a Spreadsheet

CREATE SHEET "Sales Report"

Add Data

SET CELL "A1" = "Product"
SET CELL "B1" = "Price"
SET CELL "A2" = "Widget"
SET CELL "B2" = 99.99

Export

EXPORT SHEET TO "report.xlsx"

Testing KB Injection

If you can read this, the KB injection is working correctly! The sheetlib knowledge base has been successfully loaded.