text stringlengths 19 585k | label stringclasses 2
values | category stringclasses 2
values | language stringclasses 14
values | repo stringclasses 932
values | sha stringlengths 40 40 |
|---|---|---|---|---|---|
@@ -951,6 +951,155 @@ object Main extends ZIOAppDefault {
```
+## Caching and Memoization
+
+Memoization caches the result of an effect or function computation, preventing redundant calculations when the same input is requested multiple times. ZIO provides two memoization strategies: `ZIO#memoize` for effects and ... | bad | review | zio/zio | 8c786e7470cae71f8a065ede1dc8dc9faefba0b7 | |
diff --git a/docs/reference/core/zio/zio.md b/docs/reference/core/zio/zio.md
index 49867635cda6..50490e1e3859 100644
--- a/docs/reference/core/zio/zio.md
+++ b/docs/reference/core/zio/zio.md
@@ -951,6 +951,155 @@ object Main extends ZIOAppDefault {
```
+## Caching and Memoization
+
+Memoization caches the result o... | good | review_fixed | zio/zio | 8c786e7470cae71f8a065ede1dc8dc9faefba0b7 | |
@@ -115,12 +115,18 @@ static DecoderResult decode(int[] codewords, String ecLevel) throws FormatExcept
codeIndex = byteCompaction(code, codewords, codeIndex, result);
break;
case MODE_SHIFT_TO_BYTE_COMPACTION_MODE:
+ if (codeIndex >= count) { | bad | review | java | zxing/zxing | aa34787482335ee506a7e1d66ab147fd45b507c8 |
diff --git a/core/src/main/java/com/google/zxing/pdf417/decoder/DecodedBitStreamParser.java b/core/src/main/java/com/google/zxing/pdf417/decoder/DecodedBitStreamParser.java
index 49a1412a54..f0778e9b63 100644
--- a/core/src/main/java/com/google/zxing/pdf417/decoder/DecodedBitStreamParser.java
+++ b/core/src/main/java/c... | good | review_fixed | java | zxing/zxing | aa34787482335ee506a7e1d66ab147fd45b507c8 |
@@ -249,7 +249,9 @@ public static Mode chooseMode(String content) {
* if it is Shift_JIS, and the input is only double-byte Kanji, then we return {@link Mode#KANJI}.
*/
private static Mode chooseMode(String content, Charset encoding) {
- if (StringUtils.SHIFT_JIS_CHARSET != null &&
+ if (encoding != nu... | bad | review | java | zxing/zxing | c1ff3345388ec273242bbad5e038000b17c292da |
diff --git a/core/src/main/java/com/google/zxing/qrcode/encoder/Encoder.java b/core/src/main/java/com/google/zxing/qrcode/encoder/Encoder.java
index 97f316dddc..ad02a5829b 100644
--- a/core/src/main/java/com/google/zxing/qrcode/encoder/Encoder.java
+++ b/core/src/main/java/com/google/zxing/qrcode/encoder/Encoder.java
@... | good | review_fixed | java | zxing/zxing | c1ff3345388ec273242bbad5e038000b17c292da |
@@ -133,4 +136,55 @@ public void testRegressionTest() throws Exception {
"renderer-test-01.png");
}
+ @Test
+ public void renderResultScalesNothing() {
+ final int expected_size = 33; // Original Size (25) + quietZone | bad | review | java | zxing/zxing | 8e20b8c60e85482d38a719fc10e845f7e5b665ec |
diff --git a/core/src/test/java/com/google/zxing/qrcode/QRCodeWriterTestCase.java b/core/src/test/java/com/google/zxing/qrcode/QRCodeWriterTestCase.java
index c16d2957c8..0b82430ffe 100644
--- a/core/src/test/java/com/google/zxing/qrcode/QRCodeWriterTestCase.java
+++ b/core/src/test/java/com/google/zxing/qrcode/QRCodeW... | good | review_fixed | java | zxing/zxing | 8e20b8c60e85482d38a719fc10e845f7e5b665ec |
@@ -174,16 +174,15 @@ static String encodeHighLevel(String msg, Compaction compaction, Charset encodin
if (msg.isEmpty()) {
throw new WriterException("Empty message not allowed");
}
+
+ if (Compaction.TEXT == compaction) {
+ checkCharset(msg,127,"Consider specifying Compaction.AUTO instead ... | bad | review | java | zxing/zxing | 434763d029094765b2000cd67b3b521dc9d62b5a |
diff --git a/core/src/main/java/com/google/zxing/pdf417/encoder/PDF417HighLevelEncoder.java b/core/src/main/java/com/google/zxing/pdf417/encoder/PDF417HighLevelEncoder.java
index 564d7c968c..8ac202b9db 100644
--- a/core/src/main/java/com/google/zxing/pdf417/encoder/PDF417HighLevelEncoder.java
+++ b/core/src/main/java/c... | good | review_fixed | java | zxing/zxing | 434763d029094765b2000cd67b3b521dc9d62b5a |
@@ -27,19 +35,97 @@
* Tests {@link PDF417HighLevelEncoder}.
*/
public final class PDF417EncoderTestCase extends Assert {
-
+ private static final String PDF417PFX = "\u039f\u001A\u0385"; | bad | review | java | zxing/zxing | 434763d029094765b2000cd67b3b521dc9d62b5a |
diff --git a/core/src/test/java/com/google/zxing/pdf417/encoder/PDF417EncoderTestCase.java b/core/src/test/java/com/google/zxing/pdf417/encoder/PDF417EncoderTestCase.java
index f0c9aa5abd..2f582b9019 100644
--- a/core/src/test/java/com/google/zxing/pdf417/encoder/PDF417EncoderTestCase.java
+++ b/core/src/test/java/com/... | good | review_fixed | java | zxing/zxing | 434763d029094765b2000cd67b3b521dc9d62b5a |
@@ -35,22 +33,59 @@ def register_broker(mode: str, provider: BrokerProvider) -> None:
_PROVIDERS[mode] = provider
+class BrokerInstanceRegistry:
+
+ _settings: Settings
+ _instances: dict[str, BlockingPublisher | None]
+
+ def __init__(self, settings: Settings) -> None:
+ self._settings = setti... | bad | review | python | zylon-ai/private-gpt | 2e5beca89cd65234e5219f7362f3461ad656c14b |
diff --git a/private_gpt/components/broker/broker_component.py b/private_gpt/components/broker/broker_component.py
index 05a277a7e..eb3d33609 100644
--- a/private_gpt/components/broker/broker_component.py
+++ b/private_gpt/components/broker/broker_component.py
@@ -1,11 +1,13 @@
+import atexit
import logging
+import th... | good | review_fixed | python | zylon-ai/private-gpt | 2e5beca89cd65234e5219f7362f3461ad656c14b |
@@ -1,13 +1,16 @@
+import atexit
import logging
+import threading
from collections.abc import Callable
import pika
from injector import inject, singleton
from private_gpt.components.broker.blocking_publisher import BlockingPublisher
-from private_gpt.settings.settings import Settings
+from private_gpt.settings... | bad | review | python | zylon-ai/private-gpt | 2e5beca89cd65234e5219f7362f3461ad656c14b |
diff --git a/private_gpt/components/broker/broker_component.py b/private_gpt/components/broker/broker_component.py
index 05a277a7e..eb3d33609 100644
--- a/private_gpt/components/broker/broker_component.py
+++ b/private_gpt/components/broker/broker_component.py
@@ -1,11 +1,13 @@
+import atexit
import logging
+import th... | good | review_fixed | python | zylon-ai/private-gpt | 2e5beca89cd65234e5219f7362f3461ad656c14b |
@@ -115,7 +115,12 @@ def publish(self, exchange: str, routing_key: str, body: bytes) -> None:
job = PublishJob(exchange, routing_key, body)
self._publish_queue.put(job)
+ def drain(self) -> None:
+ """Wait for all queued messages to be published without stopping the thread."""
+ ... | bad | review | python | zylon-ai/private-gpt | 2e5beca89cd65234e5219f7362f3461ad656c14b |
diff --git a/private_gpt/components/broker/blocking_publisher.py b/private_gpt/components/broker/blocking_publisher.py
index acce38307..dcb5878b6 100644
--- a/private_gpt/components/broker/blocking_publisher.py
+++ b/private_gpt/components/broker/blocking_publisher.py
@@ -115,7 +115,12 @@ def publish(self, exchange: st... | good | review_fixed | python | zylon-ai/private-gpt | 2e5beca89cd65234e5219f7362f3461ad656c14b |
@@ -1,21 +1,20 @@
from pathlib import Path
-from private_gpt.constants import PROJECT_ROOT_PATH
+from private_gpt.constants import PGPT_HOME, PROJECT_ROOT_PATH
from private_gpt.settings.settings import settings
-def _absolute_or_from_project_root(path: str) -> Path:
- if path.startswith("/"):
- return... | bad | review | python | zylon-ai/private-gpt | acbbd7719894cee90b4eb75994dff1f02aa7c0ce |
diff --git a/private_gpt/paths.py b/private_gpt/paths.py
index 57ebff06b..1e7021e7b 100644
--- a/private_gpt/paths.py
+++ b/private_gpt/paths.py
@@ -1,21 +1,21 @@
from pathlib import Path
-from private_gpt.constants import PROJECT_ROOT_PATH
+from private_gpt.constants import PGPT_HOME, PROJECT_ROOT_PATH
from privat... | good | review_fixed | python | zylon-ai/private-gpt | acbbd7719894cee90b4eb75994dff1f02aa7c0ce |
@@ -1,21 +1,20 @@
from pathlib import Path
-from private_gpt.constants import PROJECT_ROOT_PATH
+from private_gpt.constants import PGPT_HOME, PROJECT_ROOT_PATH
from private_gpt.settings.settings import settings
-def _absolute_or_from_project_root(path: str) -> Path:
- if path.startswith("/"):
- return... | bad | review | python | zylon-ai/private-gpt | acbbd7719894cee90b4eb75994dff1f02aa7c0ce |
diff --git a/private_gpt/paths.py b/private_gpt/paths.py
index 57ebff06b..1e7021e7b 100644
--- a/private_gpt/paths.py
+++ b/private_gpt/paths.py
@@ -1,21 +1,21 @@
from pathlib import Path
-from private_gpt.constants import PROJECT_ROOT_PATH
+from private_gpt.constants import PGPT_HOME, PROJECT_ROOT_PATH
from privat... | good | review_fixed | python | zylon-ai/private-gpt | acbbd7719894cee90b4eb75994dff1f02aa7c0ce |
@@ -17,7 +18,7 @@ class BackendConfig(BaseModel):
def _local_backend() -> BackendConfig:
- return BackendConfig(url="db+sqlite:///celery_backend.db")
+ return BackendConfig(url=f"db+sqlite:///{local_data_path / 'celery_backend.db'}") | bad | review | python | zylon-ai/private-gpt | acbbd7719894cee90b4eb75994dff1f02aa7c0ce |
diff --git a/private_gpt/celery/backend_config.py b/private_gpt/celery/backend_config.py
index cd00ded05..b7e3ab456 100644
--- a/private_gpt/celery/backend_config.py
+++ b/private_gpt/celery/backend_config.py
@@ -3,6 +3,7 @@
from pydantic import BaseModel, Field
+from private_gpt.paths import local_data_path
from... | good | review_fixed | python | zylon-ai/private-gpt | acbbd7719894cee90b4eb75994dff1f02aa7c0ce |
@@ -18,7 +19,7 @@
class SQLiteClient:
def __init__(self, local_path: str, database: str) -> None:
- self._local_path = Path(local_path).joinpath(f"{database}.db")
+ self._local_path = resolve_data_path(local_path) / f"{database}.db"
Path(self._local_path).parent.mkdir(parents=True, exist_... | bad | review | python | zylon-ai/private-gpt | acbbd7719894cee90b4eb75994dff1f02aa7c0ce |
diff --git a/private_gpt/components/sqlite/sqlite_client.py b/private_gpt/components/sqlite/sqlite_client.py
index 4ac535dce..80f269abd 100644
--- a/private_gpt/components/sqlite/sqlite_client.py
+++ b/private_gpt/components/sqlite/sqlite_client.py
@@ -3,6 +3,7 @@
from importlib.util import find_spec
from pathlib imp... | good | review_fixed | python | zylon-ai/private-gpt | acbbd7719894cee90b4eb75994dff1f02aa7c0ce |
@@ -47,7 +47,7 @@ make wipe
```
<Warning>
- This deletes everything in `local_data/` including the vector store. It cannot be undone.
+ This deletes everything under `PGPT_HOME` (default `~/.local/share/private-gpt/`) including the vector store. It cannot be undone.
</Warning> | bad | review | zylon-ai/private-gpt | acbbd7719894cee90b4eb75994dff1f02aa7c0ce | |
diff --git a/fern/docs/pages/api-guide/ingestion.mdx b/fern/docs/pages/api-guide/ingestion.mdx
index 1fcd5d502..2065dac43 100644
--- a/fern/docs/pages/api-guide/ingestion.mdx
+++ b/fern/docs/pages/api-guide/ingestion.mdx
@@ -47,7 +47,7 @@ make wipe
```
<Warning>
- This deletes everything in `local_data/` including... | good | review_fixed | zylon-ai/private-gpt | acbbd7719894cee90b4eb75994dff1f02aa7c0ce | |
@@ -138,9 +140,13 @@ def _get_thinking_content(self) -> str:
)
return self._thinking_content
- def _get_citation_guidelines_content(self) -> str:
+ def _get_citation_guidelines_content(
+ self, documents: list[Document] | None = None
+ ) -> str:
if self._citation_guideli... | bad | review | python | zylon-ai/private-gpt | 3d6c6a73dcba03758a06f2b6353499b774d01e54 |
diff --git a/private_gpt/server/chat/interceptors/platform_guidelines_interceptor.py b/private_gpt/server/chat/interceptors/platform_guidelines_interceptor.py
index 2332f75e9..0a9d9acd0 100644
--- a/private_gpt/server/chat/interceptors/platform_guidelines_interceptor.py
+++ b/private_gpt/server/chat/interceptors/platfo... | good | review_fixed | python | zylon-ai/private-gpt | 3d6c6a73dcba03758a06f2b6353499b774d01e54 |
@@ -14,13 +14,13 @@ permissions:
jobs:
update-openapi:
runs-on: ubuntu-latest
- if: github.head_ref == 'release-please--branches--main' || github.ref_name == 'release-please--branches--main'
+ if: github.head_ref == 'release-please--branches--main' | bad | review | zylon-ai/private-gpt | 9a48c0e91ce04867c7ce7391ebdf2f8f44b58798 | |
diff --git a/.github/workflows/post-release-please.yml b/.github/workflows/post-release-please.yml
index edb39fd33..8749cac1c 100644
--- a/.github/workflows/post-release-please.yml
+++ b/.github/workflows/post-release-please.yml
@@ -20,7 +20,7 @@ jobs:
uses: actions/checkout@v4
with:
ref: $... | good | review_fixed | zylon-ai/private-gpt | 9a48c0e91ce04867c7ce7391ebdf2f8f44b58798 | |
@@ -14,13 +14,13 @@ permissions:
jobs:
update-openapi:
runs-on: ubuntu-latest
- if: github.head_ref == 'release-please--branches--main' || github.ref_name == 'release-please--branches--main'
+ if: github.head_ref == 'release-please--branches--main'
steps:
- name: Checkout repository
... | bad | review | zylon-ai/private-gpt | 9a48c0e91ce04867c7ce7391ebdf2f8f44b58798 | |
diff --git a/.github/workflows/post-release-please.yml b/.github/workflows/post-release-please.yml
index edb39fd33..8749cac1c 100644
--- a/.github/workflows/post-release-please.yml
+++ b/.github/workflows/post-release-please.yml
@@ -20,7 +20,7 @@ jobs:
uses: actions/checkout@v4
with:
ref: $... | good | review_fixed | zylon-ai/private-gpt | 9a48c0e91ce04867c7ce7391ebdf2f8f44b58798 | |
@@ -42,13 +42,13 @@ jobs:
update-uv-lock:
runs-on: ubuntu-latest
- if: github.head_ref == 'release-please--branches--main' || github.ref_name == 'release-please--branches--main'
+ if: github.head_ref == 'release-please--branches--main' | bad | review | zylon-ai/private-gpt | 9a48c0e91ce04867c7ce7391ebdf2f8f44b58798 | |
diff --git a/.github/workflows/post-release-please.yml b/.github/workflows/post-release-please.yml
index edb39fd33..8749cac1c 100644
--- a/.github/workflows/post-release-please.yml
+++ b/.github/workflows/post-release-please.yml
@@ -20,7 +20,7 @@ jobs:
uses: actions/checkout@v4
with:
ref: $... | good | review_fixed | zylon-ai/private-gpt | 9a48c0e91ce04867c7ce7391ebdf2f8f44b58798 | |
@@ -42,13 +42,13 @@ jobs:
update-uv-lock:
runs-on: ubuntu-latest
- if: github.head_ref == 'release-please--branches--main' || github.ref_name == 'release-please--branches--main'
+ if: github.head_ref == 'release-please--branches--main'
steps:
- name: Checkout repository
uses: action... | bad | review | zylon-ai/private-gpt | 9a48c0e91ce04867c7ce7391ebdf2f8f44b58798 | |
diff --git a/.github/workflows/post-release-please.yml b/.github/workflows/post-release-please.yml
index edb39fd33..8749cac1c 100644
--- a/.github/workflows/post-release-please.yml
+++ b/.github/workflows/post-release-please.yml
@@ -20,7 +20,7 @@ jobs:
uses: actions/checkout@v4
with:
ref: $... | good | review_fixed | zylon-ai/private-gpt | 9a48c0e91ce04867c7ce7391ebdf2f8f44b58798 | |
@@ -1253,6 +1253,27 @@ def normalize_model(cls, value: str | None) -> str:
return "default"
return value
+ @model_validator(mode="after")
+ def extract_system_messages(self) -> "MessagesInputBase":
+ """Extract role=system messages and append them to the system list."""
+ sys... | bad | review | python | zylon-ai/private-gpt | ba5f9bd4b0caa5c2fbeb9eecd33b8fc02cdad676 |
diff --git a/private_gpt/chat/input_models.py b/private_gpt/chat/input_models.py
index 62cf6e6ac..ccf5f8bab 100644
--- a/private_gpt/chat/input_models.py
+++ b/private_gpt/chat/input_models.py
@@ -340,7 +340,7 @@ class OutputConfigInput(BaseModel):
class MessageInput(BaseModel):
"""Input message for AI conversati... | good | review_fixed | python | zylon-ai/private-gpt | ba5f9bd4b0caa5c2fbeb9eecd33b8fc02cdad676 |
@@ -63,13 +63,31 @@ Tested against `private-gpt` on 2026-05-27.
```
</Step>
+ <Step title="Configure your model">
+ Open the model configuration panel and add a custom model entry with the following values:
+
+ | Field | Value |
+ |---|---|
+ | Model Discoverability | **Disabled** |
+ | Model ... | bad | review | zylon-ai/private-gpt | ba5f9bd4b0caa5c2fbeb9eecd33b8fc02cdad676 | |
diff --git a/fern/docs/pages/integrations/claude-desktop.mdx b/fern/docs/pages/integrations/claude-desktop.mdx
index 505a64902..d0211dc96 100644
--- a/fern/docs/pages/integrations/claude-desktop.mdx
+++ b/fern/docs/pages/integrations/claude-desktop.mdx
@@ -4,7 +4,7 @@ description: "Connect Claude Desktop (Cowork) to yo... | good | review_fixed | zylon-ai/private-gpt | ba5f9bd4b0caa5c2fbeb9eecd33b8fc02cdad676 | |
@@ -11,14 +11,37 @@ concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
+ changes:
+ runs-on: ubuntu-latest
+ outputs:
+ run_ci: ${{ steps.filter.outputs.run_ci }}
+ steps:
+ - uses: actions/checkout@v4
+ - uses: dorny/paths-filter@v3
+ id: filter
+ ... | bad | review | zylon-ai/private-gpt | a6b11d9b732ffcaa7ed22414a9cca4464e2425b0 | |
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 82f2b8a1b..5ce6b9b7d 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -5,20 +5,22 @@ on:
branches:
- main
pull_request:
+ paths:
+ - 'private_gpt/**'
+ - 'tests/**'
+ - 'scripts/**'... | good | review_fixed | zylon-ai/private-gpt | a6b11d9b732ffcaa7ed22414a9cca4464e2425b0 | |
@@ -60,8 +84,15 @@ jobs:
all_checks_passed:
# Used to easily force requirements checks in GitHub
needs:
+ - changes
- checks
- test
+ if: always()
runs-on: ubuntu-latest
steps:
- - run: echo "All checks passed"
+ - run: |
+ if [ "${{ github.event_name }}" ... | bad | review | zylon-ai/private-gpt | a6b11d9b732ffcaa7ed22414a9cca4464e2425b0 | |
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 82f2b8a1b..5ce6b9b7d 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -5,20 +5,22 @@ on:
branches:
- main
pull_request:
+ paths:
+ - 'private_gpt/**'
+ - 'tests/**'
+ - 'scripts/**'... | good | review_fixed | zylon-ai/private-gpt | a6b11d9b732ffcaa7ed22414a9cca4464e2425b0 | |
@@ -3214,7 +3214,7 @@ <h3>Features</h3>
<script>
const STORAGE_KEY = "privategpt-workbench-state-v1";
- const DEFAULT_BASE_URL = "http://127.0.0.1:8080";
+ const DEFAULT_BASE_URL = window.location.origin; | bad | review | zylon-ai/private-gpt | 834b00247d04354400cf79060738da5e1cea1a0c | |
diff --git a/ui/index.html b/ui/index.html
index 8736e37c4..e3614e049 100644
--- a/ui/index.html
+++ b/ui/index.html
@@ -3114,7 +3114,7 @@ <h2>Connection</h2>
<div class="form-grid">
<div class="field">
<label for="onboardingBaseUrl">PrivateGPT base URL</label>
- ... | good | review_fixed | zylon-ai/private-gpt | 834b00247d04354400cf79060738da5e1cea1a0c | |
@@ -3214,7 +3214,7 @@ <h3>Features</h3>
<script>
const STORAGE_KEY = "privategpt-workbench-state-v1";
- const DEFAULT_BASE_URL = "http://127.0.0.1:8080";
+ const DEFAULT_BASE_URL = window.location.origin; | bad | review | zylon-ai/private-gpt | 834b00247d04354400cf79060738da5e1cea1a0c | |
diff --git a/ui/index.html b/ui/index.html
index 8736e37c4..e3614e049 100644
--- a/ui/index.html
+++ b/ui/index.html
@@ -3114,7 +3114,7 @@ <h2>Connection</h2>
<div class="form-grid">
<div class="field">
<label for="onboardingBaseUrl">PrivateGPT base URL</label>
- ... | good | review_fixed | zylon-ai/private-gpt | 834b00247d04354400cf79060738da5e1cea1a0c | |
@@ -155,11 +159,14 @@ RUN --mount=type=cache,target=/root/.cache/uv \
uv pip install --system $locked_packages; \
fi; \
if [ "$resolved_download_nltk" = "1" ]; then \
- python3 -c "import nltk; nltk.download('punkt_tab', download_dir='models/nltk_cache'); nltk.download('stopwords', download_dir='m... | bad | review | zylon-ai/private-gpt | 7e9378b75b375193317d7a9a5fd41e53c7fa0461 | |
diff --git a/Dockerfile b/Dockerfile
index 4a8a6249a..855c91d59 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -122,12 +122,16 @@ ARG PGPT_DOWNLOAD_PLAYWRIGHT
COPY pyproject.toml uv.lock ./
-RUN mkdir -p models/nltk_cache .local-browsers tiktoken_cache encodings
+ENV HF_HOME=local_data
+ENV PLAYWRIGHT_BROWSERS_PATH=/... | good | review_fixed | zylon-ai/private-gpt | 7e9378b75b375193317d7a9a5fd41e53c7fa0461 | |
@@ -155,11 +159,14 @@ RUN --mount=type=cache,target=/root/.cache/uv \
uv pip install --system $locked_packages; \
fi; \
if [ "$resolved_download_nltk" = "1" ]; then \
- python3 -c "import nltk; nltk.download('punkt_tab', download_dir='models/nltk_cache'); nltk.download('stopwords', download_dir='m... | bad | review | zylon-ai/private-gpt | 7e9378b75b375193317d7a9a5fd41e53c7fa0461 | |
diff --git a/Dockerfile b/Dockerfile
index 4a8a6249a..855c91d59 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -122,12 +122,16 @@ ARG PGPT_DOWNLOAD_PLAYWRIGHT
COPY pyproject.toml uv.lock ./
-RUN mkdir -p models/nltk_cache .local-browsers tiktoken_cache encodings
+ENV HF_HOME=local_data
+ENV PLAYWRIGHT_BROWSERS_PATH=/... | good | review_fixed | zylon-ai/private-gpt | 7e9378b75b375193317d7a9a5fd41e53c7fa0461 | |
@@ -196,6 +203,8 @@ RUN chmod +x scripts/worker_entrypoint
COPY --chown=worker version.txt version.txt
COPY --chown=worker settings.yaml settings.yaml
+RUN uv pip install --python /home/worker/app/.venv/bin/python --no-deps . | bad | review | zylon-ai/private-gpt | 7e9378b75b375193317d7a9a5fd41e53c7fa0461 | |
diff --git a/Dockerfile b/Dockerfile
index 4a8a6249a..855c91d59 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -122,12 +122,16 @@ ARG PGPT_DOWNLOAD_PLAYWRIGHT
COPY pyproject.toml uv.lock ./
-RUN mkdir -p models/nltk_cache .local-browsers tiktoken_cache encodings
+ENV HF_HOME=local_data
+ENV PLAYWRIGHT_BROWSERS_PATH=/... | good | review_fixed | zylon-ai/private-gpt | 7e9378b75b375193317d7a9a5fd41e53c7fa0461 | |
@@ -36,6 +36,34 @@ jobs:
run: |
git config user.email "ci@zylon.ai"
git config user.name "Zylon CI"
- git add docs/openapi/openapi.json
+ git add fern/openapi/openapi.json
git diff --staged --quiet || git commit -m "docs: update OpenAPI spec for ${{ steps.upda... | bad | review | zylon-ai/private-gpt | b5dcc197d1e52ca8fbb7c174fb90e4208ceaf6a5 | |
diff --git a/.github/workflows/post-release-please.yml b/.github/workflows/post-release-please.yml
index 17637f603..edb39fd33 100644
--- a/.github/workflows/post-release-please.yml
+++ b/.github/workflows/post-release-please.yml
@@ -36,6 +36,34 @@ jobs:
run: |
git config user.email "ci@zylon.ai"
... | good | review_fixed | zylon-ai/private-gpt | b5dcc197d1e52ca8fbb7c174fb90e4208ceaf6a5 | |
@@ -36,6 +36,34 @@ jobs:
run: |
git config user.email "ci@zylon.ai"
git config user.name "Zylon CI"
- git add docs/openapi/openapi.json
+ git add fern/openapi/openapi.json
git diff --staged --quiet || git commit -m "docs: update OpenAPI spec for ${{ steps.upda... | bad | review | zylon-ai/private-gpt | b5dcc197d1e52ca8fbb7c174fb90e4208ceaf6a5 | |
diff --git a/.github/workflows/post-release-please.yml b/.github/workflows/post-release-please.yml
index 17637f603..edb39fd33 100644
--- a/.github/workflows/post-release-please.yml
+++ b/.github/workflows/post-release-please.yml
@@ -36,6 +36,34 @@ jobs:
run: |
git config user.email "ci@zylon.ai"
... | good | review_fixed | zylon-ai/private-gpt | b5dcc197d1e52ca8fbb7c174fb90e4208ceaf6a5 | |
@@ -350,6 +350,10 @@ class AzureOpenAISettings(BaseModel):
class UISettings(BaseModel):
enabled: bool
path: str
+ default_mode: str = Field(
+ "RAG",
+ description="The default mode.",
+ ) | bad | review | python | zylon-ai/private-gpt | f89be62e2c159228b0d29bcb876d600c2f430b51 |
diff --git a/private_gpt/settings/settings.py b/private_gpt/settings/settings.py
index 4cf192a3e0..0dbef9e2ca 100644
--- a/private_gpt/settings/settings.py
+++ b/private_gpt/settings/settings.py
@@ -350,6 +350,10 @@ class AzureOpenAISettings(BaseModel):
class UISettings(BaseModel):
enabled: bool
path: str
+ ... | good | review_fixed | python | zylon-ai/private-gpt | f89be62e2c159228b0d29bcb876d600c2f430b51 |
@@ -25,21 +25,23 @@ data:
ui:
enabled: true
path: /
+ # "RAG", "Search", "Basic", or "Summarize"
+ default_mode: "Summarize" | bad | review | zylon-ai/private-gpt | f89be62e2c159228b0d29bcb876d600c2f430b51 | |
diff --git a/settings.yaml b/settings.yaml
index f030604a30..eda1af8601 100644
--- a/settings.yaml
+++ b/settings.yaml
@@ -25,21 +25,23 @@ data:
ui:
enabled: true
path: /
+ # "RAG", "Search", "Basic", or "Summarize"
+ default_mode: "RAG"
default_chat_system_prompt: >
- You are a helpful, respectful and h... | good | review_fixed | zylon-ai/private-gpt | f89be62e2c159228b0d29bcb876d600c2f430b51 | |
@@ -144,6 +144,23 @@ def __init__(self, settings: Settings) -> None:
api_key=settings.gemini.api_key,
model_name=settings.gemini.embedding_model,
)
+ case "mistral": | bad | review | python | zylon-ai/private-gpt | 4b74aa47665538048d0ead361713e69452b55734 |
diff --git a/private_gpt/components/embedding/embedding_component.py b/private_gpt/components/embedding/embedding_component.py
index 5d3e997491..b55cef8738 100644
--- a/private_gpt/components/embedding/embedding_component.py
+++ b/private_gpt/components/embedding/embedding_component.py
@@ -144,6 +144,23 @@ def __init__... | good | review_fixed | python | zylon-ai/private-gpt | 4b74aa47665538048d0ead361713e69452b55734 |
@@ -273,6 +273,15 @@ class GeminiSettings(BaseModel):
)
+class MistralSettings(BaseModel):
+ api_key: str
+ endpoint: str
+ model: str | bad | review | python | zylon-ai/private-gpt | 4b74aa47665538048d0ead361713e69452b55734 |
diff --git a/private_gpt/settings/settings.py b/private_gpt/settings/settings.py
index 4cf192a3e0..9b4238dd55 100644
--- a/private_gpt/settings/settings.py
+++ b/private_gpt/settings/settings.py
@@ -197,7 +197,14 @@ class HuggingFaceSettings(BaseModel):
class EmbeddingSettings(BaseModel):
mode: Literal[
- ... | good | review_fixed | python | zylon-ai/private-gpt | 4b74aa47665538048d0ead361713e69452b55734 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.