Skip to content

Optional caching #12

@bensialih

Description

@bensialih

First of all, thank you for your hard work on this library.

Secondly, when using the library, I noticed that once the KnowledgeBase is loaded into memory,

  1. after adding facts,
  2. making a query
  3. then adding more facts

After making a second query that is the same as the first, it returns the cached results and not the updated results.
Ideally, this should be something that is optional.
The user should be able to add new entries and get the updated entries without hitting the cache.

I have created a PR to fix this.
Screenshot 2024-12-29 at 11 29 07

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