Replies: 1 comment 1 reply
-
To do that, you need to add the meta data manually. If you are completing this tutorial https://haystack.deepset.ai/tutorials/03_scalable_qa_system. Modify indexing_pipeline.run_batch(file_paths=files_to_index) to |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm modifying the Haystack tutorial notebook in Colab to make a basic extractive QA system with my own text files. Everything works great, but now I want to link each answer back to its original .txt file.
In the Preparing Documents section, the TextIndexingPipeline processes a list of file paths into a
DocumentStore
, splitting the files into smaller chunks, but the resultingDocument
objects don't have any metadata. Can I modify the pipeline to add the original file path to each document's metadata?Beta Was this translation helpful? Give feedback.
All reactions