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 7 months ago
0
Follow
Hello, I have pretty simple doubt that I
Hello, I have pretty simple doubt that I
Inactive
0
Follow
S
SansV2
7 months ago
Β·
Hello, I have pretty simple doubt that I couldnt figure out how to do it. I am building RAG based chatbot using llama index and I created vector store but now I have to add new docs in that vector store. How can I do that?
L
S
7 comments
Share
Open in Discord
L
Logan M
7 months ago
index.insert(document)
L
Logan M
7 months ago
or
index.insert_nodes(nodes)
if you already parsed into nodes
S
SansV2
7 months ago
documents2 will be data from pdf files
S
SansV2
7 months ago
documents2 = SimpleDirectoryReader(
input_dir="dir"
).load_data()
parser = SimpleNodeParser.from_defaults()
nodes = parser.get_nodes_from_documents(documents2)
index is existing vector index
index.insert_nodes(nodes)
S
SansV2
7 months ago
will this work?
L
Logan M
7 months ago
yuo that works!
S
SansV2
7 months ago
thanks for the help man.
Add a reply
Sign up and join the conversation on Discord
Join on Discord