aido-onyx/smb-connector/app
livdebus d4cb8dcb99 fix(smb): ingest as File source so docs appear in default chat; update UI patch
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.
2026-09-24 20:34:31 +02:00
..
__init__.py SMB connector Phase 1: sync + self-provisioning + multi-source (E2E-verified) 2026-09-01 23:18:33 +05:00
config.py SMB connector: per-connector group access + standalone Docker mode 2026-09-24 14:20:39 +05:00
extract.py feat: migrate LiteLLM config to env vars and expand file handlers 2026-09-23 22:16:18 +02:00
main.py SMB connector: fix stuck 'Initial Indexing', configurable name prefix + timeout 2026-09-10 23:14:28 +05:00
onyx_client.py fix(smb): ingest as File source so docs appear in default chat; update UI patch 2026-09-24 20:34:31 +02:00
state.py SMB connector: per-source index document + filename citation labels 2026-09-23 18:51:34 +05:00
sync.py fix(smb): ingest as File source so docs appear in default chat; update UI patch 2026-09-24 20:34:31 +02:00