Skip to main content

Llamaindex Superlinked Retriever

image

A LlamaIndex retriever integration for Superlinked, mirroring the structure of official LlamaIndex retriever packages.

Superlinked is a Python framework that let's you build full stack scalable AI search and recommendation apps by creating metadata aware embeddings and getting better use of your vector dbs. Superlinked uses an approach of mixture of encoders, where specalised encoders are used for different data types leading to more accurate retrieval.

Installation

Option A (standalone dev):

python -m venv .venv && source .venv/bin/activate
pip install -U pip
pip install -e .
pip install pytest

Option B (monorepo): Add this directory under llama-index-integrations/retrievers and install with the monorepo tooling.

Note: Examples require Python 3.10–3.12 (Superlinked does not support Python 3.9).

References and resources

Usage

from llama_index.retrievers.superlinked import SuperlinkedRetriever
from llama_index.core import QueryBundle

retriever = SuperlinkedRetriever(
    sl_client=app,  # Superlinked App
    sl_query=query_descriptor,  # Superlinked QueryDescriptor
    page_content_field="text",
    query_text_param="query_text",
    metadata_fields=None,
    top_k=4,
)

nodes = retriever.retrieve("What is a landmark in Paris?")

Development

  • Follows LlamaIndex contribution guidelines.
  • Run tests: pytest -q.

Testing without Superlinked

Tests use mocks for the superlinked imports so they can run without the dependency installed.

Example

An end-to-end example is provided in examples/steam_games_example.py.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_retrievers_superlinked-0.2.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file llama_index_retrievers_superlinked-0.2.0.tar.gz.

File metadata

  • Download URL: llama_index_retrievers_superlinked-0.2.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_retrievers_superlinked-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f0498ccfb7c57718ef84cf4abda9b4294fe871196bd584fa1b9c73c283c3f9bb
MD5 57b52b5e1fae59ada785bdb2d321c2da
BLAKE2b-256 1a0a16f35187c725632edbdde0baf39bc86dc571593dba1f70b31318b397d793

See more details on using hashes here.

File details

Details for the file llama_index_retrievers_superlinked-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: llama_index_retrievers_superlinked-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_retrievers_superlinked-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b2ee796d30688a3c25be672f71a142eb3c0d01618f977373ff1e36debbef8ec8
MD5 5c023cd20aca64322fab4269779a29ad
BLAKE2b-256 692213e5d6e622c1c51d7891f4ac07bd808d8472a60a9cf5b5121941a4f7eb64

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.2

2 files

0.1.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page