private-gpt icon indicating copy to clipboard operation
private-gpt copied to clipboard

eml support

Open peterchanws opened this issue 2 years ago • 5 comments

I had issue ingest eml files. #290 pseudotensor kindly have written code for that https://github.com/h2oai/h2ogpt#readme https://github.com/h2oai/h2ogpt/blob/main/gpt_langchain.py#L364-L375 . I don't know how to integrate the code into privateGPT. Could someone merge the code to privateGPT? Thanks

peterchanws avatar May 18 '23 20:05 peterchanws

Check if https://github.com/mdeweerd/privateGPT/pull/new/elm_extended works for you and comment on PR ~#295~ #299

mdeweerd avatar May 18 '23 23:05 mdeweerd

@mdeweerd You meant #299?

PulpCattel avatar May 18 '23 23:05 PulpCattel

Yes, sorry for the typo.

mdeweerd avatar May 18 '23 23:05 mdeweerd

Sorry, I am not a coder. Could someone help to review? Thanks.

peterchanws avatar May 19 '23 03:05 peterchanws

I used ChatGPT to review the code and I got "Overall, the code seems to implement a fallback mechanism to handle cases where the default loading method for UnstructuredEmailLoader fails to find HTML content in an email."

peterchanws avatar May 19 '23 14:05 peterchanws