Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.3.0"
".": "1.3.1"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 11
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/turbopuffer-benesch%2Fturbopuffer-bacff0c1b1374c574a35bceee4a27f9b16648c7a6da3b410c5084d44664b1a4b.yml
openapi_spec_hash: e9db6f14662071b7b3d6d3bd8d52f0e6
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/turbopuffer-benesch%2Fturbopuffer-3427ced847d677ce0e14695a611429e61f23e537a69f9dd0a99b6f5cfd44b20b.yml
openapi_spec_hash: 02894103ee3f46df8ae1ad8dd36dee24
config_hash: a31fec3e293600dd17e128d578ed68cd
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.3.1 (2025-10-06)

Full Changelog: [v1.3.0...v1.3.1](https://github.com/turbopuffer/turbopuffer-python/compare/v1.3.0...v1.3.1)

### Documentation

* hint_cache_warm also update header and openapi ([2088d85](https://github.com/turbopuffer/turbopuffer-python/commit/2088d8564c13541a52887bb872194527dfc2eede))

## 1.3.0 (2025-09-24)

Full Changelog: [v1.2.0...v1.3.0](https://github.com/turbopuffer/turbopuffer-python/compare/v1.2.0...v1.3.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "turbopuffer"
version = "1.3.0"
version = "1.3.1"
description = "The official Python library for the turbopuffer API"
dynamic = ["readme"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion scripts/gen
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

cd "$(dirname "$0")/.."

apigen_image=ghcr.io/turbopuffer/turbopuffer-apigen:e932946cf468628299aa55c51a8e69f9cffc1d8e
apigen_image=ghcr.io/turbopuffer/turbopuffer-apigen:845afe6694c1f6c76af2abd586ca8747859ea5a5

apigen() {
if [[ "$TURBOPUFFER_DEV_APIGEN" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion src/turbopuffer/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "turbopuffer"
__version__ = "1.3.0" # x-release-please-version
__version__ = "1.3.1" # x-release-please-version
4 changes: 2 additions & 2 deletions src/turbopuffer/resources/namespaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def hint_cache_warm(
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> NamespaceHintCacheWarmResponse:
"""
Warm the cache for a namespace.
Signal turbopuffer to prepare for low-latency requests.

Args:
extra_headers: Send extra headers
Expand Down Expand Up @@ -782,7 +782,7 @@ async def hint_cache_warm(
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> NamespaceHintCacheWarmResponse:
"""
Warm the cache for a namespace.
Signal turbopuffer to prepare for low-latency requests.

Args:
extra_headers: Send extra headers
Expand Down
4 changes: 2 additions & 2 deletions src/turbopuffer/types/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
Tuple[str, Literal["BM25"], Sequence[str], Bm25ClauseParams],
Tuple[Literal["Sum"], Sequence["RankByText"]],
Tuple[Literal["Max"], Sequence["RankByText"]],
Tuple[Literal["Product"], Tuple[float, "RankByText"]],
Tuple[Literal["Product"], Tuple["RankByText", float]],
Tuple[Literal["Product"], float, "RankByText"],
Tuple[Literal["Product"], "RankByText", float],
]
RankByAttributeOrder = Union[Literal["asc"], Literal["desc"]]
RankByAttribute = Tuple[str, RankByAttributeOrder]
Expand Down
20 changes: 9 additions & 11 deletions tests/custom/test_bm25.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,26 +135,24 @@ def test_bm25_product_operator(tpuf: Turbopuffer):

# Try out a bunch of query variations
queries: list[RankBy] = [
("Product", (0.5, ("title", "BM25", "quick brown"))),
("Product", (("title", "BM25", "quick brown"), 0.5)),
("Product", 0.5, ("title", "BM25", "quick brown")),
("Product", ("title", "BM25", "quick brown"), 0.5),
(
"Sum",
[
("Product", (0.5, ("title", "BM25", "quick brown"))),
("Product", 0.5, ("title", "BM25", "quick brown")),
("content", "BM25", "brown"),
],
),
(
"Product",
0.5,
(
0.5,
(
"Sum",
[
("Product", (0.5, ("title", "BM25", "quick brown"))),
("content", "BM25", "brown"),
],
),
"Sum",
[
("Product", 0.5, ("title", "BM25", "quick brown")),
("content", "BM25", "brown"),
],
),
),
]
Expand Down