mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-26 20:44:00 +00:00
020fe6d3bdea8836563efdbbc7cafdfbde2aff70
3
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
d605943e9b |
feat(python): add Bedrock image embeddings (#5190)
Continues #2320. Thank you @qingyuan18 for starting this work! ## Summary Adds the `bedrock-image` (`BedrockImage`) embedding function for AWS Bedrock image embeddings, exports it from `lancedb.embeddings`, updates the AWS Bedrock docs, and extracts shared Bedrock runtime client setup into `_BedrockEmbeddingFunction`. - **Models**: - `amazon.titan-embed-image-v1` (default, 1024 dims): PNG and JPEG source images. - `cohere.embed-v4:0` (1536 dims): PNG, JPEG, WebP, and GIF source images (`search_document` for ingestion, `search_query` for queries). Cohere v3 models remain text-only under `bedrock-text`. - **Input & search**: Source columns accept encoded image `bytes` or local file paths (`str`), with format detected from decoded bytes via Pillow and `None` entries yielding `None` embeddings. Queries accept text (`str`) or `PIL.Image.Image` (converted to RGB PNG); `AsyncTable.search` requires `query_type="vector"` for Pillow image queries. - **Credentials**: `bedrock-image` uses `boto3.Session()`'s default credential chain (e.g., `AWS_PROFILE` or the application's IAM role) and rejects `profile_name`, `assumed_role`, and `role_session_name` on both `create()` and metadata restore. `bedrock-text` retains its released `profile_name`, `assumed_role`, and `role_session_name` settings. ## Validation - Local Python tests cover the public `get_registry()` API, Arrow table creation and ingestion (`bytes` and local path sources), table reopen from persisted Arrow metadata, sync text and `PIL.Image` search, async `query_type="vector"` `PIL.Image` search, credential-option rejection on `bedrock-image` create/restore, and `bedrock-text` credential-setting restoration and Cohere v3 text requests. - SDK requests and payloads were validated at the `boto3`/`botocore` `bedrock-runtime` client boundary using `botocore.stub.Stubber`. No live AWS Bedrock service calls were run, so live IAM/STS credential resolution, region model availability, and Bedrock service-side validation are not covered. |
||
|
|
de95ed3f6d |
docs: overhaul curation, feature engineering, security and deployment guides (#4748)
A broad documentation pass across the areas LanceDB Enterprise and Embedded diverge on most: **Data Curation** -- GPU Function execution, Slurm scheduling (and what Slurm is, for readers new to it), blob late materialization as its own page, joins, aggregation/profiling, sampling, near-duplicate detection, chunking, distributed shuffle, and IVF-partition clustering. **Feature Engineering** -- computed columns and materialized views, restructured to lead with the Function-based path and show the SQL form side by side with Python throughout; a single Auto Refresh page instead of duplicating scheduling details on every refresh page; adaptive execution; checkpointing; GPU and Slurm placement for refresh workers; a Training Cache page for the PyTorch data loader's automatic cache benefit. **Security & Governance** -- an Audit Log reference (schema, access, grants), Secrets promoted to an ordinary catalog object with their own SQL DDL and a vending/rotation guide, and privilege-table fixes verified against the authorization source. **Deployment & Maintenance** -- Horizontal Scaling and OpenTelemetry moved into a real Deployment area; Automated Cleanup folded into Intelligent Auto-Maintenance (every other maintenance decision already lived there); RTE Compaction and Advanced Conflict Resolution documented in depth. **Landing page** -- the Enterprise feature comparison table reorganized (several redundant or stale rows removed, several new areas added), and the "why Enterprise" bullets replaced with ones tied to a concrete page (Performance, Scale, Fault tolerance, Multicloud deployment, Simplify operations) instead of vague promises. Plus a full pass addressing lancedb-gatekeeper's review: a real test-safety bug (a quickstart test could silently overwrite and delete a deployment's own `frames` table), a fabricated SQL statement with no backing implementation, an actual dedup-guarantee bug in `take_row_ids`, and dozens of documentation-accuracy fixes verified against source rather than taken on faith -- each either fixed, or left with an explicit note on why it needs a feature or deployment owner's sign-off instead of being guessed at. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_018PXMCbRH6i5w47TsjeEUMT --------- Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com> |
||
|
|
47b7babc08 |
docs: bring the open-source documentation into this repository (#4122)
Move the public website pages into `docs/web` beside the SDK, with
shared navigation and executable example sources in `docs/web-tests`.
The combined website is assembled by
[lancedb/docs#355](https://github.com/lancedb/docs/pull/355), with six
Enterprise replacements from
[lancedb/sophon#7681](https://github.com/lancedb/sophon/pull/7681).
This includes Function guidance, runnable Quickstarts, regenerated
snippets, production contact/demo fixes, the legacy SQL route, and the
LeRobot redirect. LeRobot remains attributed to Geneva; all 34 Geneva
pages remain in the docs repository until Function officially launches.
Materialized-view guidance follows the full rebuild refresh introduced
by #4373: local refresh writes the complete result, has no `full`
argument, supports `source_version`, and no longer requires stable row
IDs. Deployment SQL refresh options and stable-ID setup are qualified by
version/configuration. Function input guidance distinguishes ordinary
stored columns from computed inputs supported by newer deployments.
**Validation:** independently accepted local checks include 95 Python
tests (real Enterprise excluded), eight TypeScript tests, Rust
Quickstart, snippet parity, typos, deterministic assembly, Mint
validation and links/anchors/redirects. The combined baseline retains
all 181 production routes and 17 legacy redirects. Examples ran locally
against source-built Python SDK 0.40.0b13; existing GitHub workflows do
not run `docs/web-tests`. New main at `069b2f7d` is 0.41.0b0 and adds
computed Function inputs; that SDK was not exercised by the accepted
tests. Latest prose corrections receive focused site validation.
**Merge/rollout:** merge this and #7681 before #355's combined CI, which
reads producer `main`. This is migration infrastructure: section
overlays, source-owned skills and automatic versioned paired releases
remain follow-ups. The current manual publisher is transitional. Hosted
validation, a supported SDK/Enterprise release pair and a real
Enterprise walkthrough remain pending.
Production Mintlify watches `lancedb/docs:deploy-freeze`, directory
`docs`; preserve that source through review. The separate SDK GitHub
Pages reference workflow rebuilds on main merges.
**Updated-head CI (
|