Use app.db.count() instead of app.count()
🐛 Describe the bug
Following code snippet gives a warning
from embedchain import App
app = App()
app.count()
[root] [WARNING] DEPRECATION WARNING: Please use `app.db.count()` instead of `app.count()`.
Count function counts the number of chunks in the database. We need to update and fix this warning.
Can I work on this issue?
Can I work on this issue?
go for it, the change is very easy.
@th-shristi : assigned it to you.
in which file this code exist? @taranjeet can you drop the path?
Hey @th-shristi ,
so you will have to remove the function count() located in embedchain/embedchain.py.
You will have to make sure that everything works after removing this function - all tests, code should work.
@taranjeet have to remove the whole count function? Instead of need to do some other changes or it's done?
Could you assign it to me for the record as it has now been solved? Thanks!
@sandrasgg thanks for your contribution. Assigned it to you as well.
I would love to chat to know more about you. See if you can find some time here: https://embedchain.ai/cal