langchain-ai / langchain

🦜🔗 Build context-aware reasoning applications
https://python.langchain.com
MIT License
93.05k stars 14.95k forks source link

Issue: what are all dependencies need to install for fetching confluence attachments #14706

Closed deepak-habilelabs closed 6 months ago

deepak-habilelabs commented 9 months ago

Issue you'd like to raise.

below is my dependencies installed till now django==4.0 django-rest-framework langchain==0.0.349 pdf2image chromadb unstructured openai pypdf tiktoken django-cors-headers django-environ pytesseract==0.3.10 beautifulsoup4==4.12.2 atlassian-python-api==3.38.0 tiktoken==0.4.0 lxml==4.9.2 what else dependencies need to install for fetching confluence attachments.

Suggestion:

No response

dosubot[bot] commented 9 months ago

🤖

Hey there @deepak-habilelabs! Good to cross paths with you again in the world of code. Trust you're doing well!

Based on the context provided, it seems you have most of the necessary dependencies installed for fetching and processing Confluence attachments with LangChain. However, there are a few additional dependencies that you might need:

  1. markdownify: This is used to convert HTML content to Markdown format when keep_markdown_format is set to True.
  2. docx2txt: This is used to process Microsoft Word documents (.docx).
  3. xlrd: This is used to process Excel files (.xls).
  4. pandas: This is used to process CSV files when encountered in Excel processing.
  5. reportlab: This is used for rendering SVGs to images before OCR.
  6. svglib: This is used for converting SVG content to a format that can be rendered to an image.

You can install these dependencies using pip:

pip install markdownify docx2txt xlrd pandas reportlab svglib

These dependencies are used in the Confluence document loader in LangChain, as seen in the confluence.py file.

Also, please note that you have langchain==0.0.349 installed, but the latest version of LangChain is v0.0.350. It might be beneficial to update to the latest version to ensure compatibility and benefit from the latest features and bug fixes. You can do this with the following command:

pip install --upgrade langchain

I hope this helps! If you have any other questions or run into any issues, feel free to ask.

Sources


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.