typesense-python icon indicating copy to clipboard operation
typesense-python copied to clipboard

Python client for Typesense: https://github.com/typesense/typesense

Results 40 typesense-python issues
Sort by recently updated
recently updated
newest added

## Change Summary Use pytest's `tmp_path` instead of `/tmp`. The previous behavior seemed to cause the test to fail in some environments and is generally bad practice. ## PR Checklist...

## Change Summary ## PR Checklist - [ ] I have read and signed the [Contributor License Agreement](https://forms.gle/PZyiY5N2GDQU8GsV9).

I tried to use multi-search with "Union" type on `typesense==1.1.1`. Snippet: ```python for model, collection in model_and_collection: query.append( { "collection": collection.schema_name, "query_by": collection.query_by_fields, "q": q, } ) results = client.multi_search.perform(...

The `stem_dictionary` field is supported when creating a Collection, but the field is missing from the CollectionFieldSchema: https://github.com/typesense/typesense-python/blob/master/src/typesense/types/collection.py#L52 I did notice tests that assert the behavior functions as expected, but...

The `verify` parameter in the `Configuration` https://github.com/typesense/typesense-python/blob/9777059d77dfd15a554c9584200050c6f1783f1e/src/typesense/configuration.py#L70 https://github.com/typesense/typesense-python/blob/9777059d77dfd15a554c9584200050c6f1783f1e/src/typesense/configuration.py#L91 is passed to `requests`, but `requests` accepts a `bool | str`. https://github.com/psf/requests/blob/420d16bc7ef326f7b65f90e4644adc0f6a0e1d44/src/requests/api.py#L39-L41 ``` :param verify: (optional) Either a boolean, in which case...

I would like to know how to implement both a conversational agent and a search agent using the Python client. Are there any sample implementations or recommended best practices for...

### TLDR Added generic type parameters to API key, override, and document schemas for better type flexibility. ## Change Summary #### Code Changes: 1. **In `src/typesense/types/key.py`**: - Added `_ActionT` type...

## Change Summary - add `round_robin_hosts` config option to `ConfigDict` typed dict - implement random shuffling of healthy nodes in `NodeManager.get_node()` - add test to verify shuffling behavior with round-robin...

i'm using the typings and there is some features missing as of the current v28 (SearchParameters for instance seems to miss stopwords and rerank_hybrid_matches)

Hi, I got an error when upgrading Typesense from version 0.21.0 to 1.0.3 ` _SequenceTypes = typing.Union[\nAttributeError: module 'typing_extensions' has no attribute 'Union'\n", "path": "/webapps/project/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", "syspath": ["/tmp/ansible_community.general.django_manage_payload_2wkzk7x5/ansible_community.general.django_manage_payload.zip", "/usr/lib/python310.zip", "/usr/lib/python3.10", "/usr/lib/python3.10/lib-dynload",...