Skip to content

MemoryStoreManager.invoke() runs the same search twice #189

Description

@jiangwu25

When I call MemoryStoreManager.invoke() without a query_model, it runs the same search twice.

I tested this on main with one message and query_limit=5:

  • The first search uses a limit of 10.
  • The second search uses a limit of 5.
  • The code only keeps the result from the second search.

The two searches are here.

Can I remove the first search and add a test for this case?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions