Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Add asynchronous methods #5

Open
uezo opened this issue Oct 12, 2023 · 0 comments
Open

Add asynchronous methods #5

uezo opened this issue Oct 12, 2023 · 0 comments

Comments

@uezo
Copy link
Owner

uezo commented Oct 12, 2023

Calling Embeddings API blocks the thread internally.🙃

uezo added a commit that referenced this issue Oct 13, 2023
```python
vss = VSSLite(YOUR_API_KEY)

# sync
vss.add("Body you want to embed")

# Async
await vss.aadd("Body you want to embed")
```

- search -> asearch
- add -> aadd
- update -> aupdate
- get -> aget (awaitable but sync internally)
- delete -> adelete (awaitable but sync internally)
- delete_all -> adelete_all (awaitable but sync internally)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant