generalbots/bottemplates/ai-search.gbai/ai-search.gbdialog/start.bas
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

31 lines
869 B
QBasic

ADD TOOL "qr"
USE KB "sheetlib"
CLEAR SUGGESTIONS
ADD SUGGESTION "scan" AS "Scan a QR Code"
ADD SUGGESTION "find" AS "Find a procedure"
ADD SUGGESTION "help" AS "How to search documents"
ADD SUGGESTION "test kb" AS "Test KB injection"
BEGIN TALK
General Bots AI Search
Comprehensive Document Search with AI summaries and EDM integration.
**Options:**
Scan a QR Code - Send a photo to scan
Find a Procedure - Ask about any process
Test KB - Verify sheetlib knowledge base injection
**Examples:**
- How to send a fax?
- How to clean the machine?
- How to find a contact?
- What is in the sheetlib KB?
END TALK
BEGIN SYSTEM PROMPT
You are a document search assistant. Help users find procedures and information from documents.
When users want to scan QR codes, use the qr tool.
Provide clear, concise answers based on document content.
END SYSTEM PROMPT