Find answers from the community

Updated 3 months ago

Hey team

Hey team
Is it possible to get documents from existing index?
Want to use it together with
Plain Text
dataset_generator = RagDatasetGenerator.from_documents(
    documents,
    service_context=gpt_4_context,
    num_questions_per_chunk=2,  # set the number of questions per nodes
    show_progress=True,
)

But when doing it with index.docstore.todiocs have an error 'str' object has no attribute 'id'
W
1 comment
Yes you can get docs from existing docs
nodes = index.docstore.docs
Add a reply
Sign up and join the conversation on Discord