Writing to the API

The write method allows you to send text to be vectorized by the FastVecAPI:

words = [
    "I like to eat apples",
    "I like to eat pears",
    "I like to eat bananas",
    "I like to eat oranges",
]

# write them to the API
for word in words:
    resp = api.write(word)
    print(resp)

The write method returns a response object which contains the status and message of the operation.