Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fact_store's lifecycle? #2971

Open
guillaume-duong-bib opened this issue May 2, 2024 · 3 comments
Open

fact_store's lifecycle? #2971

guillaume-duong-bib opened this issue May 2, 2024 · 3 comments
Labels

Comments

@guillaume-duong-bib
Copy link

guillaume-duong-bib commented May 2, 2024

I'm still trying to figure out #2930, and I noticed that every fact I ever created, directly through a Fact Source, or indirectly through a link's parser, is stored in fact_store (after some tests, only the facts that have been "loaded", e.g. through an operation, are in this case).
Even though 99% of the "sources" of these facts, i.e. either operations or Fact Sources, have been deleted since.

I see no call to _delete_fact from base_knowledge_svc.py, so it makes sense that they remain, but I would expect these facts to disappear when their source disappears, e.g. when I delete a Fact Source or an operation.

Is this a desired behavior, or an oversight? If this is desired, what are the reasons for it?

@clenk
Copy link
Contributor

clenk commented May 6, 2024

It looks like an oversight to me.

@guillaume-duong-bib
Copy link
Author

Thanks for your answer.
So can I work on a PR for the issue on #2930 plus these, assuming that:

  • deleting a Fact Source should delete all the facts originating from that Source from the fact_store? (I'll check again that they are indeed not removed already)
  • deleting an operation should delete all the learned facts of that operation from the fact_store? (same note)

@guillaume-duong-bib
Copy link
Author

(And while you're there, any idea on whether #2930 is a mistake on my end or indeed a bug of the same kind?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants