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

Retain only metadata of document #651

Open
soichisumi opened this issue Jan 25, 2025 · 2 comments
Open

Retain only metadata of document #651

soichisumi opened this issue Jan 25, 2025 · 2 comments

Comments

@soichisumi
Copy link
Contributor

Is there a way to keep only metadata without keeping a copy of the document?

From the implementation, it seems that only the metadata of the document is always needed, so it would be nice to reduce the amount of space consumed by lightrag if it is not needed.

@ParisNeo
Copy link
Contributor

I don't see why it wouldn't be opssible. In fact If you remove the document from the input folder I think it stays in the graph.

@soichisumi
Copy link
Contributor Author

lightrag saves the loaded documents as kv_store_full_docs.json.
My understanding is that lightrag also stores document metadata in kv_store_full_docs.json, so deleting it would cause problems.

Also, since deleting this file would be manual, I still think it would be better to have an option to delete it after loading, even the file is deletable.

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

No branches or pull requests

2 participants