Skip to content

[Feature Request] JSON Export Tool for Query Results #220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jlmaoju opened this issue May 8, 2025 · 1 comment
Open

[Feature Request] JSON Export Tool for Query Results #220

jlmaoju opened this issue May 8, 2025 · 1 comment

Comments

@jlmaoju
Copy link

jlmaoju commented May 8, 2025

Problem
Current large query results are sent entirely to LLMs, causing:

  • Token waste
  • Performance issues
  • No reusable outputs for downstream workflows

Solution
Add export_to_json tool that:

  1. Streams results directly to filesystem
  2. Returns only minimal metadata to LLM:
    {
      "success": true,
      "file_path": "/exports/query_12345.json",
      "count": 15000,
      "sample": [first_3_docs]
    }
  3. Preserves data for:
    • Visualization tools
    • Subsequent MCP processing
    • Human verification
@nirinchev
Copy link
Collaborator

Hey, sorry for the slow response here - I think your suggestion definitely makes sense and we'll try to find the best way to incorporate it into a future release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants