File tree Expand file tree Collapse file tree 5 files changed +34
-6
lines changed
Expand file tree Collapse file tree 5 files changed +34
-6
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,13 @@ and the project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.
77
88## [ Unreleased]
99
10+ ## [ 1.2.3] - 2025-12-03
11+
12+ ### Fixed
13+ - Pinned Ollama to v0.11.0 in Dockerfiles to avoid embedding bugs in 0.12.x/0.13.x (see [ ollama #13054 ] ( https://github.com/ollama/ollama/issues/13054 ) )
14+ - Added missing ` num_ctx ` option to batch embedding API call (` /api/embed ` )
15+ - Restored ` max_tokens ` in config.yaml to 2048 (nomic-embed-text context limit)
16+
1017## [ 1.2.2] - 2025-12-03
1118
1219### Added
Original file line number Diff line number Diff line change @@ -36,8 +36,18 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
3636 ca-certificates \
3737 && rm -rf /var/lib/apt/lists/*
3838
39- # Install Ollama
40- RUN curl -fsSL https://ollama.ai/install.sh | sh
39+ # Install Ollama - pinned to v0.11.0 to avoid embedding bugs in 0.12.x/0.13.x
40+ # See: https://github.com/ollama/ollama/issues/13054
41+ ENV OLLAMA_VERSION=0.11.0
42+ RUN ARCH=$(uname -m) && \
43+ if [ "$ARCH" = "aarch64" ] || [ "$ARCH" = "arm64" ]; then \
44+ OLLAMA_ARCH="arm64" ; \
45+ else \
46+ OLLAMA_ARCH="amd64" ; \
47+ fi && \
48+ curl -fsSL "https://github.com/ollama/ollama/releases/download/v${OLLAMA_VERSION}/ollama-linux-${OLLAMA_ARCH}.tgz" | \
49+ tar -xz -C /usr/local && \
50+ chmod +x /usr/local/bin/ollama
4151
4252# Install Qdrant (standalone binary - architecture aware)
4353RUN ARCH=$(uname -m) && \
Original file line number Diff line number Diff line change @@ -44,8 +44,18 @@ ENV PATH="${JAVA_HOME}/bin:${PATH}"
4444# Tika JAR path (set after pre-download, used by lib/tika_check.py)
4545ENV TIKA_JAR_PATH=/tmp/tika-server.jar
4646
47- # Install Ollama
48- RUN curl -fsSL https://ollama.ai/install.sh | sh
47+ # Install Ollama - pinned to v0.11.0 to avoid embedding bugs in 0.12.x/0.13.x
48+ # See: https://github.com/ollama/ollama/issues/13054
49+ ENV OLLAMA_VERSION=0.11.0
50+ RUN ARCH=$(uname -m) && \
51+ if [ "$ARCH" = "aarch64" ] || [ "$ARCH" = "arm64" ]; then \
52+ OLLAMA_ARCH="arm64"; \
53+ else \
54+ OLLAMA_ARCH="amd64"; \
55+ fi && \
56+ curl -fsSL "https://github.com/ollama/ollama/releases/download/v${OLLAMA_VERSION}/ollama-linux-${OLLAMA_ARCH}.tgz" | \
57+ tar -xz -C /usr/local && \
58+ chmod +x /usr/local/bin/ollama
4959
5060# Install Qdrant (standalone binary - architecture aware)
5161RUN ARCH=$(uname -m) && \
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ chunking:
1616 default : semantic
1717 chunk_size : 512
1818 overlap : 50
19- max_tokens : 8192
19+ max_tokens : 2048
2020
2121embedding :
2222 provider : ollama
Original file line number Diff line number Diff line change @@ -124,7 +124,8 @@ def get_embeddings_batch(
124124 f"{ OLLAMA_URL } /api/embed" ,
125125 json = {
126126 "model" : EMBEDDING_MODEL ,
127- "input" : valid_texts
127+ "input" : valid_texts ,
128+ "options" : {"num_ctx" : MAX_TOKENS }
128129 },
129130 timeout = timeout
130131 )
You can’t perform that action at this time.
0 commit comments