﻿# CrewAI recognizes JSONL for RAG selection while remote fetching remains separate

Test JSONL type discovery, loader input scope and record boundaries independently; recognizing an extension does not establish remote-fetch support.

Author: Retrivium team
Updated: 2026-11-15
Canonical URL: https://retrivium.ai/journal/week46-agent-crewai-jsonl-rag-discovery-local-scope/
Language: en

CrewAI 1.15.40, released on November 11, wires the existing JSONL loader into RAG type selection and extension discovery, including ndjson paths. The implementation distinguishes recognizing a URL’s extension from fetching remote content. Ingestion acceptance should therefore inspect the selected loader and resulting records before assuming a newly recognized address is an end-to-end supported source.

## Discovery chooses a parser, not a complete pipeline

Use a local synthetic jsonl file and an ndjson counterpart with known records. Compare automatic discovery with explicit enum and string selection. Assert the same loader and output records where supported. Then inspect a URL-shaped input separately. The PR’s tests recognize URL extensions without fetching them, so a successful type decision cannot stand for network access, authentication or remote content validation.

## Line boundaries carry record meaning

Include nested objects, arrays and scalar JSON values in a small deterministic fixture. Compare record order and chunk boundaries after ingestion. A parser can accept every line while a later chunker merges unrelated records or drops useful source identity. Use fake embeddings for the first check so failures identify ingestion behavior rather than a model change, then evaluate retrieval with the embedding configuration intended for the application.

## Malformed input is an ingestion outcome

Exercise an empty file, a malformed middle line and a nonexistent local path. Record accepted items and error behavior without quietly treating partial ingestion as complete. Directory ingestion needs its own case with mixed file types. The release connects existing components rather than introducing a new universal parser, so preserve the loader’s actual supported values and the application’s chosen response to a damaged source.

## Retrieve a known record before claiming coverage

After structural checks, query a fact that appears only in the last synthetic record and inspect the cited source identity. This verifies usable retrieval rather than only successful ingestion status. Report the selected type, local or inline input mode and embedding setup. The practical benefit is reliable discovery for supported JSONL inputs; it does not establish every URL transport or every extension-case normalization feature outside the shipped change.

## Sources

- [CrewAI 1.15.40 release notes](https://github.com/crewAIInc/crewAI/releases/tag/1.15.40)
- [CrewAI implementation and review #8754](https://github.com/crewAIInc/crewAI/pull/8754)

## Related reading

- [Mosaic Streaming: resume the data position with the model checkpoint](/journal/data-guide-mosaic-mds-shard-replay/)
- [Search meeting recordings: preserve speaker turns and audio evidence](/journal/meeting-search-transcript-speaker-evidence/)
