The Ingestion API docs require creating a connector with source=file and
pushing documents with from_ingestion_api=true so they are indexed under a
recognizable DocumentSource that Onyx's chat UI can filter and search.
Previously we used source=ingestion_api / input_type=poll. Documents were
indexed (visible in the admin panel) but were not searchable in Onyx's
default chat because ingestion_api is absent from the chat filter UI.
Connector changes:
- onyx_client.py: create connector as source=file, input_type=load_state,
connector_specific_config.file_locations=[] (avoids LocalFileConnector
health-check errors since we push via API, not disk crawl)
- sync.py: set source=file and from_ingestion_api=true on every document
and index payload so Onyx treats them as API-ingested File docs
UI overlay changes (branding/smb/smb-ui.patch):
- Replace document.source_type === ValidSources.IngestionApi with
document.metadata?.smb_source
- This keeps the broken-preview suppression and logical-path clipboard
copy working for SMB docs, while leaving normal File uploads untouched
Result: SMB documents now surface in default chat under the File filter,
the connector stays "Up to Date" without dummy-file errors, and the
Phase 2 click-to-copy behavior continues to work.
1. Optional Onyx group per connector. Set SMB_SOURCE_<N>_GROUPS (or
"groups" in SMB_SOURCES JSON, or SMB_DEFAULT_GROUP_IDS as a fallback)
to a list of Onyx user-group ids. The connector is then created
PRIVATE and restricted to those groups; empty stays PUBLIC. Applied
only at connector creation, as requested. Needs the Business licence.
2. Standalone deployment. New docker-compose.standalone.yml runs the
connector as its own Compose project next to Onyx (no -f injection),
joining Onyx's network (onyx_default, override via ONYX_NETWORK) to
reach the API by service name. Suits Compose management tools that
cannot handle multiple injected compose files. The legacy injected
compose still works.
Verified: group-id parsing across all three source styles, the
private+groups vs public payload, standalone compose config, and the
full index/sync simulation (still green).
Four items from client feedback:
1. Stuck 'Initial Indexing' status. Root cause (by design in Onyx):
docprocessing/utils.py never runs a classic index attempt for INGESTION_API
connectors — documents are pushed via the API, not polled — so
last_finished_status stays null and the badge is stuck even though the docs
are indexed and searchable (also why it's safe: no risk of re-index deleting
the pushed docs). Two-part fix:
- Connector now sets each cc_pair ACTIVE after provisioning (set_cc_pair_active),
which fixes the connector detail page + 'Active Connectors' count.
- Frontend overlay (branding/smb/smb-ui.patch): the Ingestion table shows the
real cc_pair_status for ingestion_api connectors instead of forcing
'Initial Indexing'. Verified live: new cc_pair comes up ACTIVE.
2. Connector name now configurable: ONYX_CONNECTOR_NAME_PREFIX (default 'AIDO SMB').
3. HTTP timeout now configurable: ONYX_HTTP_TIMEOUT (default 60), for large embeds.
4. (Phase 2 already delivered in ab64692 — the preview/path overlay.)
Verified live against running Onyx: provisioning sets ACTIVE, custom prefix
'Livtec Docs - Sales' applied, timeout honoured, ä-filename still indexed. Full
overlay apply green, no conflict markers, connector modules parse.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>