Skip to content

Add CSV and JSON document loaders #4

Closed

Description

@AmitoVrito

Description

Add loaders for CSV and JSON files, so users can ingest structured data into RAG pipelines.

Details

  • Add src/synapsekit/loaders/csv_loader.py — CSVLoader that reads a CSV and returns each row (or group of rows) as a text chunk
  • Add src/synapsekit/loaders/json_loader.py — JSONLoader that extracts text from specified JSON keys
  • Both should follow the pattern in src/synapsekit/loaders/pdf.py and web.py
  • Use only stdlib (csv, json) — no extra dependencies
  • Export from src/synapsekit/loaders/__init__.py
  • Add tests in tests/loaders/

Example usage

from synapsekit.loaders import CSVLoader

loader = CSVLoader("data.csv", text_columns=["title", "body"])
documents = loader.load()

Activity

  1. added
    enhancement
    good first issue
    on Mar 12, 2026
  2. zeel2104 commented on Mar 12, 2026

    @zeel2104

    I would like to work on this issue. Can you please assign it to me?

  3. AmitoVrito commented on Mar 12, 2026

    @AmitoVrito
    CollaboratorAuthor

    Thanks for your interest! I've assigned this to you. Before you start, could you give the repo a ⭐? It really helps with visibility for a new project. Looking forward to your PR!

  4. AmitoVrito commented on Mar 12, 2026

    @AmitoVrito
    CollaboratorAuthor

    Thanks for your interest! I will assign it to you. Before you start, could you give the repo a ⭐? It really helps with visibility for a new project. Looking forward to your PR!

  5. AmitoVrito commented on Mar 19, 2026

    @AmitoVrito
    CollaboratorAuthor

    Done — CSVLoader and JSONLoader shipped in v0.5.0.

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

Metadata

Metadata

Assignees

Labels

enhancementgood first issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions