sudo pamac install mongodb-bin
sudo systemctl enable mongodb.service
sudo systemctl restart mongodb.service
mongosh 'mongodb://localhost:27017'
sudo pacman -S meilisearch redis
sudo systemctl enable redis
sudo systemctl restart redis
sudo systemctl enable meilisearch
sudo systemctl restart meilisearch
git clone https://github.com/danny-avila/LibreChat.git --depth=1
cd LibreChat
cp .env.example .env
nano .env
RAG_API_URL=http://127.0.0.1:11434/v1/
EMBEDDINGS_PROVIDER=ollama
OLLAMA_BASE_URL=http://127.0.0.1:11434/v1/
EMBEDDINGS_MODEL=mxbai-embed-large:latest
DEBUG_RAG_API=true
mv librechat.example.yaml librechat.yaml
custom:
  - name: "Ollama"
    apiKey: "ollama"
    baseURL: "http://127.0.0.1:11434/v1/"
    
    models:
      default: [
        "llama3.1:8b"
        ]
      fetch: true
    titleConvo: true
    titleModel: "current_model"
fileConfig:
  endpoints:
    custom:
      fileLimit: 5
      fileSizeLimit: 10  
      totalSizeLimit: 50  
      supportedMimeTypes:
        - "image/.*"
        - "application/pdf"
        - "application/text"
        - "application/x-sh"
        - "application/json"
        - "application/javascript"
        - "application/x-yaml"
        - "application/x-shellscript"
        - "application/text-plain"
        - "text/plain"
    default:
      totalSizeLimit: 20
      supportedMimeTypes:
        - "image/.*"
        - "application/pdf"
        - "application/text"
        - "application/x-sh"
        - "application/json"
        - "application/javascript"
        - "application/x-yaml"
        - "application/x-shellscript"
        - "application/text-plain"
        - "text/plain"
  serverFileSizeLimit: 100  
  avatarSizeLimit: 2  
npm ci
npm run frontend
npm run backend