Add pinned conda environments for arm64 and x86

- envs/environment-docling.yml (arm64, Python 3.12) and envs/environment-local_rag.yml
  (x86_64, Python 3.10) with exact pip versions and create commands in the header
- README and EINSTIEG: how to create the environments; x86 tested for chat, search and
  indexing (search about 2.3 s under Rosetta)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-26 07:49:17 +01:00
co-authored by Claude Opus 5.5
parent ce9a863a87
commit 9d7670f8ad
4 changed files with 313 additions and 6 deletions
+6 -4
View File
@@ -11,7 +11,7 @@ A short German quick start is in [EINSTIEG.md](EINSTIEG.md).
| Conda env | Architecture | Use |
|---|---|---|
| `docling` | arm64 (Apple Silicon), Python 3.12, torch 2.14 | Default. Also needed for Docling (`prepare_corpus.py`). |
| `local_rag` | x86_64 (Intel Mac or Rosetta), Python 3.10, torch 2.2.2 | Alternative for x86. Chat and search work; Docling does not. Search is slower under Rosetta (about 5 s instead of about 1 s). |
| `local_rag` | x86_64 (Intel Mac or Rosetta), Python 3.10, torch 2.2.2 | Alternative for x86. Chat, search and indexing tested; Docling does not run. Search is slower under Rosetta (about 2.3 s instead of about 1 s). |
**bge-m3 on x86**
@@ -20,15 +20,17 @@ A short German quick start is in [EINSTIEG.md](EINSTIEG.md).
**New environment**
[envs/](envs/) holds one file per environment with exact versions, exported from the working environments. The header of each file has the exact commands.
```bash
conda create -n local_rag python=3.10 -y
CONDA_SUBDIR=osx-arm64 conda env create -f envs/environment-docling.yml
```
```bash
conda activate local_rag && pip install -r requirements.txt
CONDA_SUBDIR=osx-64 conda env create -f envs/environment-local_rag.yml
```
For the arm64 env on Apple Silicon, create it with `CONDA_SUBDIR=osx-arm64` so that conda does not fall back to x86 packages.
`CONDA_SUBDIR` forces the architecture; without it, conda on Apple Silicon may pick the wrong one. [requirements.txt](requirements.txt) lists only the direct dependencies, without versions.
**Ollama**