Skip to content

[BUG]: RAG feature returning incorrect count of records from uploaded input file #4275

@punk1234567

Description

@punk1234567

How are you running AnythingLLM?

Running Anything LLM executable version on my laptop locally.

What happened?

Describe the bug
When exploring the RAG feature of Anything LLM with my local documents, the response is incorrect.
Example: I upload a .md document containing 102 records and ask: How many records or projects are listed in the input document?" The RAG system returns "4", which is inaccurate.

Expected behavior
The correct number of records or projects from the source document should be returned (102 in this case).

Environment

OS: Windows 11

Embedding Model: Default
Vector database: Default
LLM Model Provider: Mistral Large
Other settings: All default
I experimented using other LLM models and file format as input, but still the same result.

Are there known steps to reproduce?

To Reproduce

Add .md documents to the Knowledge Base (document contains 102 records).
Go to Chat.
Select the uploaded file in the Knowledge Collection.
Ask: "How many records in the input?"
Observed result: Returns "4" records.
Expected result: Should return "102" records.

Metadata

Metadata

Assignees

No one assigned

    Labels

    possible bugBug was reported but is not confirmed or is unable to be replicated.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions