Skip to main content

letsearch-client

A Python client for letsearch — the vector DB so easy, even your grandparents can build a RAG system 😁.

❓ What is this?

letsearch-client provides an easy-to-use Python interface to interact with a running letsearch server. With this client, you can programmatically manage collections, perform health checks, and run searches without worrying about HTTP requests or JSON parsing.

⚠️ Note: The main letsearch- project and this client are still under active development. Rapid changes may occur as letsearch evolves.


🖼️ Features

  • Perform health checks on your letsearch server.
  • List and retrieve collection information.
  • Run searches on indexed collections.
  • Automatically handle errors and raise exceptions when needed.

🏎️ Installation

Install letsearch-client via uv (recommended) or pip:

uv add letsearch-client

or:

pip install letsearch-client

If you want to convert models to use with letsearch, you need to install additional conversion-related dependencies:

pip install letsearch-client[conversion]

🚀 Quickstart

Here’s how you can use the LetsearchClient to interact with a running letsearch instance:

Setup

from letsearch_client import LetsearchClient

# Initialize the client
client = LetsearchClient(letsearch_url="http://localhost:7898", raise_for_status=True)

# Always remember to close the client or use it in a context manager
client.close()

Alternatively, use a context manager to ensure proper cleanup:

from letsearch_client import LetsearchClient

with LetsearchClient(letsearch_url="http://localhost:7898") as client:
    health = client.healthcheck()
    print(health)

Example Usage

Health Check

response = client.healthcheck()
print(response)  # Outputs server health status and version

List Collections

collections = client.get_collections()
print(collections)  # Outputs a list of available collections

Retrieve Collection Info

collection_info = client.get_collection("example_collection")
print(collection_info)  # Outputs details about the specified collection

Search in a Collection

results = client.search(
    collection_name="example_collection",
    column_name="content",
    query="example query",
    limit=5
)
print(results)  # Outputs search results

🧭 Roadmap

The roadmap of the letsearch project can be found in its repository. This client is intended to be a thin wrapper around the functionality of letsearch, and it will continue to implement new features as letsearch evolves.


🌡️ Tests

Run the client’s test suite using:

pytest

Metadata

Release files for letsearch-client 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for letsearch-client 0.1.1
File Size Uploaded Provenance
letsearch_client-0.1.1.tar.gz 6.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for letsearch-client 0.1.1
File Interpreter ABI Platform
letsearch_client-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.9 kB

Release files / letsearch_client-0.1.1.tar.gz

Download URL letsearch_client-0.1.1.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0ede79ed048d0417c8177f8bd07ab3297b6534e9a0640854037ffc3c28641252
BLAKE2b-256 checksum
How to use checksums
7f0a7d6cae93d7bfafe52a946ab066cc33a6046fb366dbfb19901c804f2df105
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.5

Release files / letsearch_client-0.1.1-py3-none-any.whl

Download URL letsearch_client-0.1.1-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
88b9e8877999f676a308f5fc785ef27195e8bc67caaf73b9ae1010e010514e78
BLAKE2b-256 checksum
How to use checksums
c8fff0b893779826f22e3b3844b1e254ab09d605f12a75420f8e1052d73a1118
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.5

Security for letsearch-client 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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