Skip to content

Commit 0509757

Browse files
committed
add e2e
1 parent 160e738 commit 0509757

File tree

3 files changed

+354
-225
lines changed

3 files changed

+354
-225
lines changed

playground/python/app/recommend.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,17 @@ async def main():
3333
RecommendationsRequest(
3434
RelatedQuery(
3535
index_name="cts_e2e_browse",
36-
object_id="Batman Dracula",
36+
object_id="Æon Flux",
3737
model=RelatedModel.RELATED_PRODUCTS,
38-
threshold=2,
38+
threshold=30,
39+
max_recommendations=2,
3940
)
4041
)
4142
]
4243
)
4344
)
4445

45-
print(response)
46+
print(len(response.results[0].hits), "recommendations found")
4647
finally:
4748
await client.close()
4849

0 commit comments

Comments
 (0)