Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. LibreChat
  3. Cloudron dockerfile for LibreChat is missing tools needed for RAG and OCR

Cloudron dockerfile for LibreChat is missing tools needed for RAG and OCR

Scheduled Pinned Locked Moved LibreChat
3 Posts 2 Posters 57 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • msproutM Offline
    msproutM Offline
    msprout
    wrote last edited by msprout
    #1

    hi there. i have been using the librechat experimental app for a few days and i gotta say, i love how elegant it is compared to OpenWebUI and its' graveyard of semi-working scripts and functions.

    i did notice that the system as deployed by Cloudron right now cannot do OCR for uploaded files, nor can it handle its expected RAG functionality because it seems the way the dockerfile is written for the Cloudron deployment currently does not include the server locally that the app requires to handle all of that. i have an ollama endpoint that i run elsewhere on my tailnet that i would like to use.

    this seems to be supported, but you still need the rag server running. i had little to no success getting it deployed on another server and pointing the cloudron to it over tailscale.

    for the sake of cognitive ease, here is the server's github:

    • http://ghcr.io/danny-avila/librechat-rag-api-dev:latest

    additionally, here is the documentation for the OCR stuff:

    • https://www.librechat.ai/docs/features/ocr
    • https://www.librechat.ai/docs/configuration/librechat_yaml/object_structure/ocr

    i think the ideal state would be to maybe have cloudron use a locally-hosted ollama server preloaded with one of the lightweight embedding models, like:

    • nomic-embed-text
    • mxbai-embed-large
    • all-minilm.

    here is the page i found where they describe what that server is and how to add it:

    • https://www.librechat.ai/docs/configuration/rag_api

    it might be helpful as well to ship default env and librechat.yaml files that have every possibility on this page pre-populated but commented out by prepending # to each line:

    • https://www.librechat.ai/docs/configuration/dotenv

    i would be happy to put together a default or example env and librechat.yaml for use by the cloudron team if that is something y'all want. i have been soaked in the documentation for a bit now and think i could aggregate something. seems not even the upstream docs have that.

    1 Reply Last reply
    4
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote last edited by
      #2

      I think we can bundle the rag api server with the app itself. I have created an internal task for this and @vladimir.d should get to it at some point .

      1 Reply Last reply
      4
      • msproutM Offline
        msproutM Offline
        msprout
        wrote last edited by
        #3

        Wonderful as always Girish and team. 🙂 Thank you.

        1 Reply Last reply
        1
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Bookmarks
        • Search