Reading mongodb docs into a DocumentStore #2934
Replies: 1 comment 2 replies
-
Hi @predoctech at this moment we do not have any plans to support Mongodb as a data source. However, what you proposed is something that could be accomplished by writing a custom node (custom node explanation here: https://haystack.deepset.ai/pipeline_nodes/custom-nodes) in a style similar to the Crawler node (https://haystack.deepset.ai/docs/latest/apicrawlermd) which crawls text from websites and converts that into Haystack documents which can then be used within Haystack document stores. So the idea would be to write a custom node that reads stuff from Mongodb, does any kind of postprocessing, and creates Haystack documents that could be sent to a document store node. Please let me know if this helps you get started :) |
Beta Was this translation helpful? Give feedback.
-
Tracking previous discussions on this forum it is surprising to see very few discussions about accessing documents on Mongodb as a datasource. On surface this seems doable utilizing pymongo as the connector, but I hope someone can provide some sample codes to see how this can be done. Say I have FAQ pairs stored in Mongodb and wish to read them into a Haystack Documentstore, and start my FAQPipeline from there. Some pointers to what a typical script in that regard would look like will be much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions