Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Inactive
Updated 11 months ago
0
Follow
My Requirement is : When updating RAG,
My Requirement is : When updating RAG,
Inactive
0
Follow
A
AmitKhandey
11 months ago
Β·
My Requirement is : When updating RAG, only generate embeddings for newly added documents rather than regenerating embeddings for all documents in chroma db using llamaindex.
W
A
L
4 comments
Share
Open in Discord
W
WhiteFang_Jr
11 months ago
How are you currently adding new docs?
You can insert new docs using insert method that will only create embedding for the newly inserted docs.
Sample code would look like
Plain Text
Copy
docs = newly created documents for doc in docs: index.insert(doc)
A
AmitKhandey
11 months ago
Can I remove a doc ?
L
Logan M
11 months ago
yes --
index.delete_ref_doc(ref_doc_id)
L
Logan M
11 months ago
will delete all nodes associated with that ref doc id
Add a reply
Sign up and join the conversation on Discord
Join on Discord