Skip to content

Spreadsheet support: .xlsx and .csv #58

Description

@Phantom-VK

Problem

Users working with data often want to count tokens in spreadsheets. Currently refused.

Design question

How a sheet becomes text changes the token count: cell-by-cell, row-joined, or Markdown tables. Whatever is picked should be documented, since the number depends on it.

Implementation

  • parsing.py needs a _read_xlsx handler using openpyxl
  • CSV can use the existing _read_text (already works)
  • Decision: how to flatten the sheet, then update docs/DATA_SOURCES.md to explain it

Scope

Two separate files, two separate PRs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:parsingcore/parsing.py — PDF/PPTX/DOCX/TXT extractionenhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions