pg_deeplake
Deeplake is AI Data Runtime for Agents. It provides serverless postgres with a multimodal datalake, enabling scalable retrieval and training.
pg_deeplake · Deeplake is AI Data Runtime for Agents. It provides serverless postgres with a multimodal datalake, enabling scalable retrieval and training.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101532 | pg_deeplake | pg_deeplake | 1.0 | RAG | Apache-2.0 | C++ |
Usage
Sources:
- Official upstream README
- Official extension control file (pg_deeplake.control)
- Official extension SQL (pg_deeplake–1.0.sql)
pg_deeplake — PostgreSQL extension for vector similarity search, full-text search, and hybrid search using DeepLake. Use it for the corresponding vector, model, or retrieval workflow. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Important Objects
array_ndims(anyarray)is an extension function and returnsint.contains(col text, search text)is an extension function and returnsboolean.create_deeplake_table(tablename TEXT, path TEXT)is an extension function and returnsvoid.deeplake_bm25_cmp(text, text)is an extension function and returnsint4.deeplake_bm25_similarity(text, text)is an extension function and returnsfloat4.deeplake_cosine_similarity(float4[], float4[])is an extension function and returnsfloat4.deeplake_hybrid_cmp(deeplake_hybrid_record, deeplake_hybrid_record_weighted)is an extension function and returnsint4.deeplake_hybrid_record(embedding float4[], text_value text)is an extension function and returnsdeeplake_hybrid_record_weighted.deeplake_hybrid_record(embedding float4[], text_value text, embedding_weight float8, text_weight float8)is an extension function and returnsdeeplake_hybrid_record_weighted.deeplake_hybrid_record_to_weighted(deeplake_hybrid_record)is an extension function and returnsdeeplake_hybrid_record_weighted.deeplake_hybrid_record_weighted_to_simple(deeplake_hybrid_record_weighted)is an extension function and returnsdeeplake_hybrid_record.deeplake_hybrid_search(deeplake_hybrid_record, deeplake_hybrid_record_weighted)is an extension function and returnsfloat4.deeplake_index_handler(INTERNAL)is an extension function and returnsindex_am_handler.deeplake_maxsim(float4[][], float4[][])is an extension function and returnsfloat4.
Requirements and Caveats
- The reviewed control file declares default version
1.0. - The control file marks the extension as relocatable.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.