Skip to content

Unused variable doc assigned but not being returned. Proper chunked data not being processed #11

@robhitt

Description

@robhitt

In LLM Generic APP > test.ipynb in the method chunk_data it is currently returning docs and should return doc. In its current form, doc is an unused variable.

Currently this function doesn't do anything other than pass through the original docs argument .

See below where doc is currently being unused:

def chunk_data(docs,chunk_size=800,chunk_overlap=50):
    text_splitter=RecursiveCharacterTextSplitter(chunk_size=chunk_size,chunk_overlap=chunk_overlap)
    doc=text_splitter.split_documents(docs)  # <-- doc unused
    return docs  # <-- returning initial docs argument

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions