Skip to content

Add reader for excel files #1959

Open
Open
@Rajkumar-jangid725

Description

@Rajkumar-jangid725

Description
When attempting to run the pnpm run generate Excel command, the process fails with the following error message:

`developer4@Fairlogs-developer4:~/moxie.ts.ai.v3$ pnpm run generate Excel

moxie@0.1.0 generate /home/developer4/moxie.ts.ai.v3
node ./scripts/generate.mjs "Excel"

(node:45230) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
directory /home/developer4/moxie.ts.ai.v3/datasources/Excel 0
file /home/developer4/moxie.ts.ai.v3/datasources/Excel/API List Moxie AI v3.xlsx 0
file /home/developer4/moxie.ts.ai.v3/datasources/Excel/API List Moxie AI v3.xlsx 1
file /home/developer4/moxie.ts.ai.v3/datasources/Excel/Payment.xlsx 0
file /home/developer4/moxie.ts.ai.v3/datasources/Excel/Payment.xlsx 1
directory /home/developer4/moxie.ts.ai.v3/datasources/Excel 1
{
status: 'error',
message: 'invalid byte sequence for encoding "UTF8": 0x00'
}
 ELIFECYCLE  Command failed with exit code 1.`

Expected Behavior:
The script should generate indexes for Excel without any errors related to encoding and save them to the Postgres database.

Actual Behavior:
The process fails with an error related to an invalid byte sequence for encoding "UTF8".

Desktop:
OS: [ Linux]
JS Runtime / Framework
Node.js: v22.11.0
Next.js: 14.2.18

Additional context
The current @llamaindex/reader module has no reader for Excel files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions