Skip to content

Conversation

Maef
Copy link
Contributor

@Maef Maef commented Mar 22, 2025

Ensure short documents still receive a hash. Documents with content shorter than maxlength would not be hashed.

Simple test:

$documents = StringDataLoader::for('test')->getDocuments();
print_r($documents);
Array
(
    [0] => NeuronAI\RAG\Document Object
        (
            [embedding] => 
            [sourceType] => manual
            [sourceName] => manual
            [hash] => 
            [chunkNumber] => 0
            [content] => test
        )

)

…ments with content shorter than maxlength would not be hashed.
@ilvalerione ilvalerione merged commit 845c8a8 into neuron-core:main Mar 22, 2025
@ilvalerione
Copy link
Contributor

Thank you for the contribution!

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

Successfully merging this pull request may close these issues.

2 participants