Updating embeddings of changed documents #257
-
|
Beta Was this translation helpful? Give feedback.
Answered by
ilvalerione
Aug 11, 2025
Replies: 1 comment 5 replies
-
|
Neuron store documents into vector store with some additional fields like source Name and sourceType. These fields can be used to remember which file or document the chunks come from. You can automatically call for a reindex in your RAG Agent: https://docs.neuron-ai.dev/components/data-loader#reindex-knowledge-source |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If there are no changes you should not process a specific file with data loaders. It's an application problem.
I recommend to look at the RAG implementation with the following approach:
Execute the first data loading pipeline to process all available files, articles, etc, and use
$rag->addDocuments(...)for the initial population of the vector store.When new files are uploaded, you should call
$rag->reindexBySource(...)if the file is an update of a previously processed file it will update the documents into the vecotr store. If it is a new file the documents will be added as new.If a file that was previously processed into the vector store is deleted, you can call
$rag->resolveVe…