Upgrade to Onyx v4.8.2; drop dead badge fix; refresh connector docs
- Pin upstream to v4.8.2 (better official translations). Branding overlay re-verified: logos, favicon, Onyx->AIDO codemod (incl. the official next-intl catalogs, now 9 locales with Arabic), notification-hide, and de/en language limiting all apply clean and type-check. - Re-sync smb-ui.patch onto v4.8.2 and remove the "Initial Indexing" badge hunk: connectors now ingest as the File source, which reports status correctly on its own, so the hunk was dead. The patch is now two files (chat citation + licensed Search), keyed on metadata.smb_source. - Refresh the SMB connector docs to the current design: File-source ingestion (chat-searchable), the full extension set, the per-source index document and per-connector group access, and the UI overlay that copies the full path. Fix stale ingestion_api / v4.5.2 references and a trailing-whitespace nit in the connector payload. DHI is a no-op on v4.8.2 (Dockerfile defaults to public node images).
This commit is contained in:
parent
9d5ee01217
commit
01be9421df
5 changed files with 58 additions and 57 deletions
|
|
@ -9,11 +9,11 @@
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"$comment": "Pin the exact Onyx release tag this overlay is authored against. `make setup` checks this out. Locked to a release NUMBER (e.g. v4.7.2), not a raw commit. As of v4.7.2 Onyx ships OFFICIAL i18n (next-intl, incl. German), so the temporary i18n backport is disabled (i18n.enabled=false) and the codemod rebrands Onyx->AIDO inside the official message catalogs instead. To move to a newer Onyx: re-sync the smbUi patch onto the new tag (targeted patches in apply-branding.mjs are string-based and usually survive), then bump this.",
|
"$comment": "Pin the exact Onyx release tag this overlay is authored against. `make setup` checks this out. Locked to a release NUMBER (e.g. v4.7.2), not a raw commit. As of v4.7.2 Onyx ships OFFICIAL i18n (next-intl, incl. German), so the temporary i18n backport is disabled (i18n.enabled=false) and the codemod rebrands Onyx->AIDO inside the official message catalogs instead. To move to a newer Onyx: re-sync the smbUi patch onto the new tag (targeted patches in apply-branding.mjs are string-based and usually survive), then bump this.",
|
||||||
"repo": "https://github.com/onyx-dot-app/onyx",
|
"repo": "https://github.com/onyx-dot-app/onyx",
|
||||||
"pinnedCommit": "v4.7.2",
|
"pinnedCommit": "v4.8.2",
|
||||||
"webSrcRoot": "web"
|
"webSrcRoot": "web"
|
||||||
},
|
},
|
||||||
"i18n": {
|
"i18n": {
|
||||||
"$comment": "DISABLED as of the v4.7.2 upgrade. This was a TEMPORARY end-user i18n backport of Onyx PR #12558 (react-i18next) used on v4.5.2 before Onyx shipped official i18n. v4.7.2 has official next-intl i18n (German included), so this whole overlay is off. Kept here only for reference/rollback; the patch and dictionaries are no longer applied. Language limiting to de+en and the codemod rebrand of the official catalogs are handled directly in apply-branding.mjs (steps 2b + 3c-official). Do not re-enable against v4.7+.",
|
"$comment": "DISABLED since the v4.7.2 upgrade. This was a TEMPORARY end-user i18n backport of Onyx PR #12558 (react-i18next) used on v4.5.2 before Onyx shipped official i18n. v4.7.2 has official next-intl i18n (German included), so this whole overlay is off. Kept here only for reference/rollback; the patch and dictionaries are no longer applied. Language limiting to de+en and the codemod rebrand of the official catalogs are handled directly in apply-branding.mjs (steps 2b + 3c-official). Do not re-enable against v4.7+. (Now pinned to v4.8.2.)",
|
||||||
"enabled": false,
|
"enabled": false,
|
||||||
"patch": "branding/i18n/end-user-i18n.patch",
|
"patch": "branding/i18n/end-user-i18n.patch",
|
||||||
"baseCommit": "v4.5.2",
|
"baseCommit": "v4.5.2",
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
"$dictionaries_comment": "Client-editable source dictionaries. After the patch is applied, apply-branding.mjs copies dictionaries/<lang>.json over web/public/locales/<lang>/common.json — so edits here PERSIST across `make setup` (they're the source of truth, not the patch). Edit branding/i18n/locales/de.json to add/refine German (see MISSING-de.md for untranslated keys), then `make apply && make build`."
|
"$dictionaries_comment": "Client-editable source dictionaries. After the patch is applied, apply-branding.mjs copies dictionaries/<lang>.json over web/public/locales/<lang>/common.json — so edits here PERSIST across `make setup` (they're the source of truth, not the patch). Edit branding/i18n/locales/de.json to add/refine German (see MISSING-de.md for untranslated keys), then `make apply && make build`."
|
||||||
},
|
},
|
||||||
"smbUi": {
|
"smbUi": {
|
||||||
"$comment": "Phase 2 of the SMB connector (smb-connector/): a tiny frontend overlay so documents synced from SMB/network shares (source=ingestion_api) don't present a broken, dead file-preview. Clicking a cited SMB document copies its logical network path (\\\\company\\share\\...) to the clipboard instead, so the user can open it on the share. The same patch also fixes the connector status badge (ingestion_api never runs the classic indexer, so it would stay stuck on 'Initial Indexing'). Applied before the branding codemod; re-synced onto v4.7.2. Independent of the connector itself; set enabled=false to drop it.",
|
"$comment": "SMB connector UI overlay (smb-connector/): a tiny frontend overlay so documents synced from SMB/network shares don't present a broken, dead file-preview. SMB documents are detected by metadata.smb_source (they are ingested as the `file` source, so they show in Default Chat and the source filters). Clicking a cited SMB document copies its full logical network path (\\\\company\\share\\...) from metadata.logical_path to the clipboard instead, so the user can open it on the share. Covers both the chat citation view and the licensed Search view. (The earlier 'Initial Indexing' badge fix was dropped: File connectors report status correctly on their own.) Applied before the branding codemod; re-synced onto v4.8.2. Independent of the connector itself; set enabled=false to drop it.",
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"patch": "branding/smb/smb-ui.patch"
|
"patch": "branding/smb/smb-ui.patch"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,5 @@
|
||||||
diff --git a/web/src/app/admin/indexing/status/CCPairIndexingStatusTable.tsx b/web/src/app/admin/indexing/status/CCPairIndexingStatusTable.tsx
|
|
||||||
index 0f61ede9..2dcb8e7e 100644
|
|
||||||
--- a/web/src/app/admin/indexing/status/CCPairIndexingStatusTable.tsx
|
|
||||||
+++ b/web/src/app/admin/indexing/status/CCPairIndexingStatusTable.tsx
|
|
||||||
@@ -179,7 +179,13 @@ function ConnectorRow({
|
|
||||||
<TableCell>
|
|
||||||
<CCPairStatus
|
|
||||||
ccPairStatus={
|
|
||||||
- ccPairsIndexingStatus.last_finished_status !== null
|
|
||||||
+ // AIDO: ingestion-API connectors (e.g. the SMB sync) are never run
|
|
||||||
+ // through Onyx's classic indexer — documents are pushed via the API —
|
|
||||||
+ // so last_finished_status stays null and the badge would otherwise be
|
|
||||||
+ // stuck on "Initial Indexing" even though the docs are indexed. Show
|
|
||||||
+ // the real connector status for them instead.
|
|
||||||
+ ccPairsIndexingStatus.last_finished_status !== null ||
|
|
||||||
+ ccPairsIndexingStatus.source === ValidSources.IngestionApi
|
|
||||||
? ccPairsIndexingStatus.cc_pair_status
|
|
||||||
: ccPairsIndexingStatus.last_status == "not_started"
|
|
||||||
? ConnectorCredentialPairStatus.SCHEDULED
|
|
||||||
diff --git a/web/src/ee/sections/SearchCard.tsx b/web/src/ee/sections/SearchCard.tsx
|
diff --git a/web/src/ee/sections/SearchCard.tsx b/web/src/ee/sections/SearchCard.tsx
|
||||||
index 42fb3bd8..5ee25228 100644
|
index 71b5255d..9b76cbe5 100644
|
||||||
--- a/web/src/ee/sections/SearchCard.tsx
|
--- a/web/src/ee/sections/SearchCard.tsx
|
||||||
+++ b/web/src/ee/sections/SearchCard.tsx
|
+++ b/web/src/ee/sections/SearchCard.tsx
|
||||||
@@ -10,6 +10,7 @@ import { ValidSources } from "@/lib/types";
|
@@ -10,6 +10,7 @@ import { ValidSources } from "@/lib/types";
|
||||||
|
|
@ -29,14 +10,14 @@ index 42fb3bd8..5ee25228 100644
|
||||||
import Truncated from "@/refresh-components/texts/Truncated";
|
import Truncated from "@/refresh-components/texts/Truncated";
|
||||||
import { timeAgo } from "@opal/time";
|
import { timeAgo } from "@opal/time";
|
||||||
import { useMemo } from "react";
|
import { useMemo } from "react";
|
||||||
@@ -37,6 +38,27 @@ export default function SearchCard({
|
@@ -39,6 +40,27 @@ export default function SearchCard({
|
||||||
document.is_internet || document.source_type === ValidSources.Web;
|
document.is_internet || document.source_type === ValidSources.Web;
|
||||||
|
|
||||||
function handleClick() {
|
function handleClick() {
|
||||||
+ // AIDO: documents synced from SMB/network shares (ingestion API) have no
|
+ // AIDO: documents synced from SMB/network shares have no browsable link and
|
||||||
+ // browsable link and no stored file to preview — the preview pane would just
|
+ // no stored file to preview — the preview pane would just fail. Copy the
|
||||||
+ // fail. Copy the logical path to the clipboard so the user can open the file
|
+ // logical path to the clipboard so the user can open the file directly on the
|
||||||
+ // directly on the share. Mirrors openDocument() used by the chat view.
|
+ // share. Mirrors openDocument() used by the chat view.
|
||||||
+ if (document.metadata?.smb_source) {
|
+ if (document.metadata?.smb_source) {
|
||||||
+ // The full network path is in metadata.logical_path (the search result does
|
+ // The full network path is in metadata.logical_path (the search result does
|
||||||
+ // not always carry `link`); semantic_identifier is only the file name.
|
+ // not always carry `link`); semantic_identifier is only the file name.
|
||||||
|
|
@ -58,7 +39,7 @@ index 42fb3bd8..5ee25228 100644
|
||||||
window.open(document.link, "_blank", "noopener,noreferrer");
|
window.open(document.link, "_blank", "noopener,noreferrer");
|
||||||
return;
|
return;
|
||||||
diff --git a/web/src/lib/search/utils.ts b/web/src/lib/search/utils.ts
|
diff --git a/web/src/lib/search/utils.ts b/web/src/lib/search/utils.ts
|
||||||
index ce7eab36..6e4baff3 100644
|
index ce7eab36..ebddf26b 100644
|
||||||
--- a/web/src/lib/search/utils.ts
|
--- a/web/src/lib/search/utils.ts
|
||||||
+++ b/web/src/lib/search/utils.ts
|
+++ b/web/src/lib/search/utils.ts
|
||||||
@@ -1,5 +1,6 @@
|
@@ -1,5 +1,6 @@
|
||||||
|
|
@ -72,10 +53,10 @@ index ce7eab36..6e4baff3 100644
|
||||||
document: OnyxDocument,
|
document: OnyxDocument,
|
||||||
updatePresentingDocument?: (document: MinimalOnyxDocument) => void
|
updatePresentingDocument?: (document: MinimalOnyxDocument) => void
|
||||||
) => {
|
) => {
|
||||||
+ // AIDO: documents synced from SMB/network shares (ingestion API) have no
|
+ // AIDO: documents synced from SMB/network shares have no browsable link and no
|
||||||
+ // browsable link and no stored file to preview — a normal preview click would
|
+ // stored file to preview — a normal preview click would just fail. Instead,
|
||||||
+ // just fail. Instead, surface the logical path by copying it to the clipboard
|
+ // surface the logical path by copying it to the clipboard so the user can open
|
||||||
+ // so the user can open the file directly on the share.
|
+ // the file directly on the share.
|
||||||
+ if (document.metadata?.smb_source) {
|
+ if (document.metadata?.smb_source) {
|
||||||
+ // The full network path is in metadata.logical_path (the citation object
|
+ // The full network path is in metadata.logical_path (the citation object
|
||||||
+ // does not always carry `link`); semantic_identifier is only the file name.
|
+ // does not always carry `link`); semantic_identifier is only the file name.
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,30 @@
|
||||||
# AIDO SMB → Onyx Connector (Phase 1)
|
# AIDO SMB → Onyx Connector
|
||||||
|
|
||||||
Syncs files from one or more **SMB/CIFS shares** into Onyx via the public
|
Syncs files from one or more **SMB/CIFS shares** into Onyx via the public
|
||||||
**Ingestion API**, with full production behaviour the POC was missing:
|
**Ingestion API**:
|
||||||
|
|
||||||
- **Update & delete sync** — changed files are re-indexed in place; files removed
|
- **Update & delete sync** — changed files are re-indexed in place; files removed
|
||||||
from a share are deleted from Onyx (reconciled every cycle).
|
from a share are deleted from Onyx (reconciled every cycle).
|
||||||
- **Self-provisioning** — creates/reuses the Onyx **API key** and one **connector
|
- **Self-provisioning** — creates/reuses the Onyx **API key** and one **File
|
||||||
(cc_pair)** per source automatically; idempotent across restarts.
|
connector (cc_pair)** per source automatically; idempotent across restarts.
|
||||||
|
Documents are pushed in as the `file` source, so they are searchable in Default
|
||||||
|
Chat and appear in the source filters like any other connector.
|
||||||
- **Multi-source via Docker config** — any number of shares, defined purely in env.
|
- **Multi-source via Docker config** — any number of shares, defined purely in env.
|
||||||
- **Logical path mapping** — each document is labelled with the path users
|
- **Logical path mapping** — each document is labelled with the path users
|
||||||
recognise (`\\company\share\…`), mapped from the local mount via config.
|
recognise (`\\company\share\…`), mapped from the local mount via config.
|
||||||
|
- **Per-source index document** — an optional table-of-contents document per share
|
||||||
|
so the assistant is aware of the full document set (see `SMB_WRITE_INDEX`).
|
||||||
|
- **Per-connector group access** — restrict a connector to Onyx user groups (see
|
||||||
|
`SMB_SOURCE_<N>_GROUPS`).
|
||||||
|
|
||||||
It runs as a **sidecar container** and touches **no Onyx source code** — only the
|
It runs as its **own container** and touches **no Onyx source code** — only the
|
||||||
public ingestion + admin APIs — so it survives Onyx upgrades.
|
public ingestion + admin APIs — so it survives Onyx upgrades.
|
||||||
|
|
||||||
> Phase 2 (separate) hides the broken file-preview for these SMB documents in the
|
> A small white-label UI overlay (`branding/smb/smb-ui.patch`) improves how these
|
||||||
> Onyx UI and shows the logical path instead, via the white-label overlay.
|
> documents behave in the Onyx UI: the citation shows the short file name, and a
|
||||||
|
> click copies the full network path to the clipboard instead of opening a dead
|
||||||
|
> preview (SMB files have no browsable link). This applies to both the chat
|
||||||
|
> citation view and the licensed Search view.
|
||||||
|
|
||||||
## How it works
|
## How it works
|
||||||
|
|
||||||
|
|
@ -105,7 +114,7 @@ CIFS-mounted a second time — `_MOUNT` then just points at the bind-mounted pat
|
||||||
| `SMB_SOURCE_<N>_UNC` (or `_SERVER`+`_SHARE`) | In-container CIFS mount: the share to mount at `_MOUNT` |
|
| `SMB_SOURCE_<N>_UNC` (or `_SERVER`+`_SHARE`) | In-container CIFS mount: the share to mount at `_MOUNT` |
|
||||||
| `SMB_SOURCE_<N>_USERNAME/_PASSWORD/_DOMAIN/_VERS` | CIFS credentials + dialect (default `3.0`); omit user for guest |
|
| `SMB_SOURCE_<N>_USERNAME/_PASSWORD/_DOMAIN/_VERS` | CIFS credentials + dialect (default `3.0`); omit user for guest |
|
||||||
| `INGESTION_INTERVAL_SECONDS` | Reconcile interval (default 300) |
|
| `INGESTION_INTERVAL_SECONDS` | Reconcile interval (default 300) |
|
||||||
| `INCLUDE_EXTENSIONS` | File types to ingest (default pdf,docx,txt,md,csv,xlsx,html) |
|
| `INCLUDE_EXTENSIONS` | File types to ingest. Default covers office + web + many text/IT formats (pdf, docx, xlsx, csv, txt, md, html, plus yaml, json, xml, ini, conf, cfg, sh, bash, ps1, py, sql, log, dockerfile, properties, toml, rst, mjs, patch, tsx) |
|
||||||
| `MAX_FILE_MB` | Skip files larger than this (default 50) |
|
| `MAX_FILE_MB` | Skip files larger than this (default 50) |
|
||||||
| `SMB_WRITE_INDEX` | Write a per-source index (table-of-contents) document listing every file, so the assistant is aware of the full set (default on; `0`/`false` to disable) |
|
| `SMB_WRITE_INDEX` | Write a per-source index (table-of-contents) document listing every file, so the assistant is aware of the full set (default on; `0`/`false` to disable) |
|
||||||
| `SMB_SOURCE_<N>_GROUPS` | Onyx user-group ids (comma-separated) allowed to access this connector. Set → connector created **private** and restricted to those groups; empty → **public**. Applied only at connector creation. Needs the Onyx Business licence. In `SMB_SOURCES` JSON use `"groups": [id, …]`. |
|
| `SMB_SOURCE_<N>_GROUPS` | Onyx user-group ids (comma-separated) allowed to access this connector. Set → connector created **private** and restricted to those groups; empty → **public**. Applied only at connector creation. Needs the Onyx Business licence. In `SMB_SOURCES` JSON use `"groups": [id, …]`. |
|
||||||
|
|
@ -116,17 +125,23 @@ State (manifest + cached key/cc_pair) lives in the mounted `/app/state` volume.
|
||||||
|
|
||||||
## Notes / scope
|
## Notes / scope
|
||||||
|
|
||||||
- **Extraction** is the light set (PDF, DOCX, XLSX, CSV, TXT/MD, HTML). Legacy
|
- **Extraction** covers office, web, and common text/IT formats (see
|
||||||
`.doc`/`.xls` and scanned-image PDFs are skipped (no OCR) — Phase-1 scope.
|
`INCLUDE_EXTENSIONS`). Legacy `.doc`/`.xls` and scanned-image PDFs are skipped
|
||||||
|
(no OCR). Add or remove types via `INCLUDE_EXTENSIONS`.
|
||||||
|
- **Connector type**: documents are ingested as the `file` source (a first-class,
|
||||||
|
chat-searchable connector), so they appear in Default Chat and the source
|
||||||
|
filters. The connector is created once, then documents are pushed via the
|
||||||
|
Ingestion API (`from_ingestion_api`), not polled from a file location.
|
||||||
- **Auth for provisioning**: creating the API key/connectors needs one admin
|
- **Auth for provisioning**: creating the API key/connectors needs one admin
|
||||||
credential the first time. At steady state only the cached API key is used.
|
credential the first time. At steady state only the cached API key is used.
|
||||||
- **API-key auto-creation requires `LICENSE_ENFORCEMENT_ENABLED=false`** on the Onyx
|
- **API-key auto-creation requires `LICENSE_ENFORCEMENT_ENABLED=false`** on the Onyx
|
||||||
deployment (verified against v4.5.2): the `/admin/api-key` endpoint is EE-tier-gated
|
deployment: the `/admin/api-key` endpoint is EE-tier-gated and returns HTTP 402
|
||||||
and returns HTTP 402 when enforcement is on (the default). CE/white-label deployments
|
when enforcement is on (the default). CE/white-label deployments run with it off,
|
||||||
run with it off, so this is fine — and if you'd rather not rely on it, just supply a
|
so this is fine — and if you'd rather not rely on it, just supply a pre-made
|
||||||
pre-made `ONYX_API_KEY`. Connector/cc_pair creation and the ingestion API itself are
|
`ONYX_API_KEY`. Connector/cc_pair creation and the ingestion API itself are
|
||||||
**not** tier-gated and work on plain CE.
|
**not** tier-gated and work on plain CE.
|
||||||
- **Document ids are URL-safe** (`smb_<source>_<hash>`), matching how Onyx stores/returns
|
- **Document ids are URL-safe** (`smb_<source>_<hash>`), matching how Onyx stores/returns
|
||||||
them, so update and delete reconcile reliably (verified end-to-end).
|
them, so update and delete reconcile reliably (verified end-to-end).
|
||||||
- **`smb://` links** can't open from a browser; the logical path is stored for
|
- **`smb://` links** can't open from a browser; the full network path is stored in
|
||||||
display (Phase 2 surfaces it in the UI and hides the dead preview).
|
the document metadata, and the UI overlay copies it to the clipboard on click
|
||||||
|
(see `branding/smb/smb-ui.patch`).
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
"""Thin, typed client for the Onyx public + admin APIs used by the connector.
|
"""Thin, typed client for the Onyx public + admin APIs used by the connector.
|
||||||
|
|
||||||
Endpoints (verified against Onyx v4.5.2):
|
Endpoints (stable across Onyx v4.5–v4.8):
|
||||||
POST /onyx-api/ingestion upsert a document (by DocumentBase.id)
|
POST /onyx-api/ingestion upsert a document (by DocumentBase.id)
|
||||||
DELETE /onyx-api/ingestion/{document_id} remove a document entirely
|
DELETE /onyx-api/ingestion/{document_id} remove a document entirely
|
||||||
GET /onyx-api/connector-docs/{cc_pair_id} list docs for a cc_pair (reconcile)
|
GET /onyx-api/connector-docs/{cc_pair_id} list docs for a cc_pair (reconcile)
|
||||||
|
|
@ -152,8 +152,13 @@ class OnyxClient:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def provision_cc_pair(self, name: str, group_ids: list[int] | None = None) -> int:
|
def provision_cc_pair(self, name: str, group_ids: list[int] | None = None) -> int:
|
||||||
"""Create an ingestion-API connector + mock credential + cc_pair. Returns
|
"""Create a File connector + mock credential + cc_pair. Returns the
|
||||||
the cc_pair id. Idempotent: reuses an existing one with the same name.
|
cc_pair id. Idempotent: reuses an existing one with the same name.
|
||||||
|
|
||||||
|
The connector is a File connector (documents are pushed in via the
|
||||||
|
Ingestion API with from_ingestion_api=True). File is a first-class,
|
||||||
|
chat-searchable source, so the documents show up in Default Chat and
|
||||||
|
the source filters; the older ingestion_api source is hidden there.
|
||||||
|
|
||||||
When ``group_ids`` is given, the connector is created PRIVATE and
|
When ``group_ids`` is given, the connector is created PRIVATE and
|
||||||
restricted to those Onyx user groups (needs the Business licence).
|
restricted to those Onyx user groups (needs the Business licence).
|
||||||
|
|
@ -170,7 +175,7 @@ class OnyxClient:
|
||||||
"source": "file",
|
"source": "file",
|
||||||
"input_type": "load_state",
|
"input_type": "load_state",
|
||||||
"connector_specific_config": {
|
"connector_specific_config": {
|
||||||
"file_locations": []
|
"file_locations": []
|
||||||
},
|
},
|
||||||
"refresh_freq": None,
|
"refresh_freq": None,
|
||||||
"prune_freq": None,
|
"prune_freq": None,
|
||||||
|
|
@ -202,9 +207,9 @@ class OnyxClient:
|
||||||
return int(cc)
|
return int(cc)
|
||||||
|
|
||||||
def set_cc_pair_active(self, cc_pair_id: int) -> None:
|
def set_cc_pair_active(self, cc_pair_id: int) -> None:
|
||||||
"""Mark the cc_pair ACTIVE. Onyx never runs a classic index attempt for
|
"""Mark the cc_pair ACTIVE so the connector is enabled and its documents
|
||||||
ingestion-API connectors (docs are pushed via the API, not polled), so
|
are searchable. Documents are pushed via the Ingestion API rather than
|
||||||
without this they sit in SCHEDULED/INITIAL_INDEXING forever. Best-effort."""
|
polled from a file location. Best-effort."""
|
||||||
try:
|
try:
|
||||||
resp = self._request(
|
resp = self._request(
|
||||||
"PUT",
|
"PUT",
|
||||||
|
|
|
||||||
|
|
@ -104,7 +104,7 @@ def _build_document(
|
||||||
"semantic_identifier": filename,
|
"semantic_identifier": filename,
|
||||||
"title": filename,
|
"title": filename,
|
||||||
# The full logical network path. smb://Z:\... won't open in a browser; the
|
# The full logical network path. smb://Z:\... won't open in a browser; the
|
||||||
# Phase 2 UI overlay copies this to the clipboard on click instead.
|
# AIDO UI overlay copies this to the clipboard on click instead.
|
||||||
"link": f"file://{logical}",
|
"link": f"file://{logical}",
|
||||||
"sections": [{"text": text, "link": None}],
|
"sections": [{"text": text, "link": None}],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue